网站以前正常运行很长时间了,最近也没有动过。但是今天突然访问速度很慢了,重启Tomcat后可以正常访问,但是一会儿之后就又非常慢了,而且catalina.2006-06-13.log文件能到上百兆!
环境为:windows+tomcat5.5+iis,我将iis和tomcat集成起来了。
catalina.2006-06-13.log文件中的错误为:
2006-6-13 15:48:54 org.apache.jk.core.MsgContext action
警告: Error sending end packet
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:508)
at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)
at org.apache.jk.core.MsgContext.action(MsgContext.java:293)
at org.apache.coyote.Response.action(Response.java:182)
at org.apache.coyote.Response.finish(Response.java:304)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:204)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:744)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:674)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
2006-6-13 15:48:54 org.apache.jk.common.ChannelSocket processConnection
警告: processCallbacks status 2
------解决方法--------------------------------------------------------
可能的情况是端口被病毒、木马占用或防火墙限制,使的连接池不能工作