Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Tomcat: Connection reset by peer: socket write error

Boemio, Neil (IT, FGIC)

2004-01-07


My W2K, Apache 2.0.47, Tomcat 4.1.27, JK2 2.0.43 setup works fine ..... for a while. After an hour, a few hours, maybe minutes (I don't really see a pattern), my JSP pages will hang. When I restart the Tomcat service, everything is fine again until the next hang.

Here's the sequence:

About every minute in the jk2.log, I get this set or errors over and over again. This doesn't seem to be directly related to my problem because this happens even when everything is OK .... but I thought I would include it as well:

[Wed Jan 07 14:19:27 2004] (error ) [jk_channel_socket.c (557)] channelSocket.receive(): Error receiving message body -1 0
[Wed Jan 07 14:19:27 2004] (error ) [jk_workerEnv.c (482)] workerEnv.processCallbacks() Error reading reply
[Wed Jan 07 14:19:27 2004] (error ) [jk_worker_ajp13.c (416)] ajp13.service() ajpGetReply recoverable error 120000
[Wed Jan 07 14:19:49 2004] (error ) [jk_channel_socket.c (557)] channelSocket.receive(): Error receiving message body -1 0
[Wed Jan 07 14:19:49 2004] (error ) [jk_workerEnv.c (482)] workerEnv.processCallbacks() Error reading reply
[Wed Jan 07 14:19:49 2004] (error ) [jk_worker_ajp13.c (416)] ajp13.service() ajpGetReply recoverable error 120000

When the problem occurs, I get this in the Tomcat Error Log:

Jan 7, 2004 2:21:25 PM org.apache.jk.server.JkCoyoteHandler action
SEVERE: Error in action code
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:407)
 at org.apache.jk.common.ChannelSocket.invoke (ChannelSocket.java:599)
 at org.apache.jk.server.JkCoyoteHandler.action (JkCoyoteHandler.java:385)
 at org.apache.coyote.Response.action (Response.java:222)
 at org.apache.coyote.Response.finish (Response.java:343)
 at org.apache.jk.server.JkCoyoteHandler.invoke (JkCoyoteHandler.java:268)
 at org.apache.jk.common.HandlerRequest.invoke (HandlerRequest.java:360)
 at org.apache.jk.common.ChannelSocket.invoke (ChannelSocket.java:604)
 at org.apache.jk.common.ChannelSocket.processConnection (ChannelSocket.java:562)
 at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
 at java.lang.Thread.run(Unknown Source)

Then at about the same time as the error, I get this in the jk2.log:

[Wed Jan 07 14:21:25 2004] (error ) [jk_handler_response.c (200)] Error ajp_process_callback - write failed
[Wed Jan 07 14:21:25 2004] (error ) [jk_worker_ajp13.c (416)] ajp13.service() ajpGetReply recoverable error 3
[Wed Jan 07 14:21:25 2004] (error ) [jk_handler_response.c (200)] Error ajp_process_callback - write failed
[Wed Jan 07 14:21:25 2004] (error ) [jk_worker_ajp13.c (416)] ajp13.service() ajpGetReply recoverable error 3
[Wed Jan 07 14:21:25 2004] (error ) [jk_worker_ajp13.c (512)] ajp13.service() Error forwarding ajp13:localhost:8009 1 0
[Wed Jan 07 14:21:25 2004] (error ) [mod_jk2.c (678)] mod_jk.handler() Error connecting to tomcat 3

Any ideas?

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.