Socket Exception

Hi,

In my application, tomcat is going to down frequently. And in the logs, we are seeing following exception.

Sep 17, 2006 10:25:44 AM org.apache.coyote.http11.Http11Protocol pause

INFO: Pausing Coyote HTTP/1.1 on http-5702

Sep 17, 2006 10:25:44 AM org.apache.jk.common.ChannelSocket acceptConnections

WARNING: Exception executing accept

java.net.SocketException: Connection reset by peer

at java.net.PlainSocketImpl.socketSetOption(Native Method)

at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)

at java.net.Socket.setTcpNoDelay(Socket.java:771)

at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:304)

at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:638)

at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:847)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

at java.lang.Thread.run(Thread.java:552)

Could any body give some solution to solve this problem.

Thanks

Mohan

[1088 byte] By [mohangupta_chegua] at [2007-10-3 5:16:39]
# 1
The client has connected and disconnected very rapidly. This is a 'normal' condition, not a problem. If there is a problem it is at the client end.
ejpa at 2007-7-14 23:23:19 > top of Java-index,Core,Core APIs...
# 2
Thanks for your immediate response, But if tomcat goes down frequently in production, it will be problem to us. Can we get any solution to solve this problemThanksMohan
mohangupta_chegua at 2007-7-14 23:23:19 > top of Java-index,Core,Core APIs...
# 3
According to the source at http://www.docjar.com/html/api/org/apache/jk/common/ChannelSocket.java.html this only causes a log warning. It shouldn't be the cause of your crash, or pause, or whatever it is. Look elsewhere.
ejpa at 2007-7-14 23:23:19 > top of Java-index,Core,Core APIs...
# 4

> Sep 17, 2006 10:25:44 AM

> org.apache.coyote.http11.Http11Protocol pause

> INFO: Pausing Coyote HTTP/1.1 on http-5702

> Sep 17, 2006 10:25:44 AM

> org.apache.jk.common.ChannelSocket acceptConnections

> WARNING: Exception executing accept

> java.net.SocketException: Connection reset by peer

**********************HERE IS THE REPLY************************************

Hi,

Things are not very clear from wht u have written...

The error says....SocketException

This is cause bcoz ... there is an error in the underlying protocol, such as a TCP error..

It could be better if u had given more details.

d.suhasa at 2007-7-14 23:23:19 > top of Java-index,Core,Core APIs...
# 5

The error is indeed a SocketException. If you had read thecode I pointed you to you would have seen that it catches the exception and logs a warning message. It doesn't do anything else, such as closing the socket (which it should IMO) or pausing the protocol or exiting the server.

Hence there is no reason to believe that the pause is caused by the exception.

ejpa at 2007-7-14 23:23:19 > top of Java-index,Core,Core APIs...