You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Serdar BOZDAĞ <se...@softhome.net> on 2002/08/14 11:34:50 UTC

tomcat stops randomly. why??

Hi All,

I have installed Apache Tomcat 4.0.4 web server to my computer. Tomcat is running as a service on this NT machine. But sometimes it does not respond. I have no explanation for it. 
I looked at the log files to find out sth. The only thing that I found is in the localhost_examples_log.2002-08-13.txt file. There is a recurring error. But the time that the error occur at is not the time that the server is unreacheable.
(In the services window it is seemed as working properly.)

What may the reason for this problem?
--The following error
--NT machine
--High Load(In fact load is not so high)
--Or what ???

Thanks in advance,

Serdar

By the way the error is that is in localhost_examples_log.2002-08-13.txt :

<!--StartFragment-->2002-08-13 20:58:36 StandardWrapperValve[default]: Servlet.service() for servlet default threw exception
java.net.SocketException: Connection aborted by peer: socket write error
	at java.net.SocketOutputStream.socketWrite(Native Method)
	at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
	at org.apache.catalina.connector.ResponseBase.flushBuffer(ResponseBase.java:674)
	at org.apache.catalina.connector.HttpResponseBase.flushBuffer(HttpResponseBase.java:764)
	at org.apache.catalina.connector.ResponseBase.write(ResponseBase.java:647)
	at org.apache.catalina.connector.ResponseStream.write(ResponseStream.java:312)
	at org.apache.catalina.connector.http.HttpResponseStream.write(HttpResponseStream.java:189)
	at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1903)
	at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1652)
	at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1197)
	at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
	at java.lang.Thread.run(Thread.java:484)


Re: tomcat stops randomly. why??

Posted by Remy Maucherat <re...@apache.org>.
Serdar BOZDAĞ wrote:
> Hi All,
> 
> I have installed Apache Tomcat 4.0.4 web server to my computer. Tomcat is running as a service on this NT machine. But sometimes it does not respond. I have no explanation for it. 
> I looked at the log files to find out sth. The only thing that I found is in the localhost_examples_log.2002-08-13.txt file. There is a recurring error. But the time that the error occur at is not the time that the server is unreacheable.
> (In the services window it is seemed as working properly.)
> 
> What may the reason for this problem?
> --The following error
> --NT machine
> --High Load(In fact load is not so high)
> --Or what ???

It's not the error you mention, that's for sure. (that one only means a 
client disconnected while a request was processed)

I have no idea what could cause your Tomcat to stop working. You could 
try to see if it's a memory problem, or if the VM just crashes.

You could try the Tomcat 4.1.x betas and see if it helps.
4.1.8 Beta: 
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.8-beta/
4.1.9 Test: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/test/v4.1.9/

Remy


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: tomcat stops randomly. why??

Posted by Dan Lipofsky <da...@nuserve.com>.
> I have a similar but different problem.
>
> Running 4.0.3 on solaris 8 standalone with jdk 1.4
>
> Occasionally, tomcat dies with no error message in any log file. It is as
if
> someone has kill -9'ed the jvm.
>
> Has anyone seen anything like this?
>
> People here are getting very wary of tomcat. I need some resolution to
this.

I had something similar.  The cause was an infinite JSP forward loop.
Some magic caused the loop to break after 100 cycles, but sometimes
the JVM experienced a seg fault instead.  With a seg fault there is no
chance to write anything to the log files, of course, but an error is
printed
to STDERR or STDOUT - we have output redirected to a file using nohup.
Under Unix a core file is generated unless you turn that off (I don't know
if Windows has core files) - make sure you have core file generation turned
on.
We are running tomcat3.2.4/jdk1.3.1 on Solaris.
- Dan



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


re: tomcat stops randomly. why??

Posted by Mark O'Driscoll <ma...@eircom.net>.
I have a similar but different problem.

Running 4.0.3 on solaris 8 standalone with jdk 1.4

Occasionally, tomcat dies with no error message in any log file. It is as if
someone has kill -9'ed the jvm.

Has anyone seen anything like this?

People here are getting very wary of tomcat. I need some resolution to this.




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>