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"/>