butterfly报错日志分析

1.EOFException(java.net.SocketException: Connection reset by peer: socket write error)

Connection reset by peer的原因:
经常出现的Connection reset by peer: 原因可能是多方面的,不过更常见的原因是:
①:服务器的并发连接数超过了其承载量,服务器会将其中一些连接Down掉;
②:客户关掉了浏览器,而服务器还在给客户端发送数据;
③:浏览器端按了Stop
很多人都说是客户端造成的,没有办法控制,是个比较郁闷的问题。

2. EVENT  LOW ON THREADS ((100-95+4)<10) on SocketListener@0.0.0.0:7080


For you config, you will get low on thread warnings when you have
 >270 connections and you will get out of thread warnings when you
hit 300 threads.

It is non fatal, it is just telling you that it is making some
users wait for a connection and that they may time out.

If you box is not stressing, then you can increase the maxThreads
to avoid this.

regards
butterfly解决此问题的方法:

09:39:32.227 EVENT LOW ON THREADS ((100-100+9)<10) on SocketListener@0.0.0.0:7080

说明jetty的工作线程数特别在早上的时候很紧张

建议修改:

Hansky\HBP\Server\rsrc\webserver.xml文件中的

<property name= "thread.min" value="10"/> <property name= "thread.max" value="100"/>

修改为

<property name= "thread.min" value="30"/> <property name= "thread.max" value="200"/>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值