?
Solved

Apache Tomcat 5.5 Regularly Crashes (about 4-8 hours between crashes)

Posted on 2011-10-04
2
Medium Priority
?
601 Views
Last Modified: 2012-05-12
Running on W2K Server 2003

Logs below, Experts please advise.




Sep 30, 2011 8:45:51 AM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 30, 2011 8:45:52 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 30, 2011 8:45:53 AM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Sep 30, 2011 8:45:53 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
Sep 30, 2011 8:47:20 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System
Sep 30, 2011 8:47:20 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 30, 2011 8:47:20 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 687 ms
Sep 30, 2011 8:47:20 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 30, 2011 8:47:20 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Sep 30, 2011 8:47:20 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 30, 2011 8:47:32 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 30, 2011 8:47:32 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 30, 2011 8:47:32 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Sep 30, 2011 8:47:32 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Sep 30, 2011 8:47:32 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 12125 ms
Sep 30, 2011 11:36:20 AM org.apache.coyote.http11.Http11Processor process
SEVERE: Error processing request
java.lang.OutOfMemoryError: Java heap space
Sep 30, 2011 11:36:26 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError: Java heap space) executing org.apache.tomcat.util.net.LeaderFollowerWorkerThread@abfb0c, terminating thread
Sep 30, 2011 11:36:29 AM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
Sep 30, 2011 11:36:41 AM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
Sep 30, 2011 11:36:57 AM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
Sep 30, 2011 11:47:54 AM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Sep 30, 2011 11:47:55 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Sep 30, 2011 11:47:56 AM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Sep 30, 2011 11:47:56 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
Sep 30, 2011 11:48:39 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Adaptec Shared\System
Sep 30, 2011 11:48:40 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 30, 2011 11:48:40 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 719 ms
Sep 30, 2011 11:48:40 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 30, 2011 11:48:40 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Sep 30, 2011 11:48:40 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Sep 30, 2011 11:48:51 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Sep 30, 2011 11:48:51 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Sep 30, 2011 11:48:51 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31  config=null
Sep 30, 2011 11:48:51 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Sep 30, 2011 11:48:51 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 11578 ms
Sep 30, 2011 3:29:24 PM org.apache.coyote.http11.Http11Processor process
SEVERE: Error processing request
java.lang.OutOfMemoryError: Java heap space
Sep 30, 2011 3:29:30 PM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
Sep 30, 2011 4:09:58 PM org.apache.coyote.http11.Http11Processor process
SEVERE: Error processing request
java.lang.OutOfMemoryError: Java heap space
Sep 30, 2011 7:02:16 PM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
Sep 30, 2011 8:42:33 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception (java.lang.OutOfMemoryError: Java heap space) executing org.apache.tomcat.util.net.LeaderFollowerWorkerThread@984cd5, terminating thread
Sep 30, 2011 8:42:34 PM org.apache.catalina.connector.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError: Java heap space
0
Comment
Question by:kboles101
2 Comments
 
LVL 38

Accepted Solution

by:
yuzh earned 2000 total points
ID: 36940095
It looks like theJVM has run out of all the memory that has been allocated to it. Do you have enough RAM installed in the box?

If you have enough RAM in your box, consider increase the java heap size, please have a look at the folowing page to learn how:
http://www.coderanch.com/t/87422/Tomcat/increase-java-heap-size
also:
http://www.zulutown.com/blog/2009/03/12/solving-tomcat-outofmemoryerror-heap-space-and-permgen-space/

BTW, why do you want to run Apache + Tomcat in M$ Windows, it much better to run it under Linux or  *nix (Linux, Unix) OS, you question should post under the Windows TA or Apache TA or Webserver TA area, not in the Unix TA.
0
 

Author Comment

by:kboles101
ID: 36948961
Thanks yuzh; increasing the java heap size worked. BTW, these are older vendor supplied machines...not sure why Windows 2003 server was selected as the OS.  

I am curious though, there are 3 pairs of these web servers; 2 at each of 3 enterprise locations...they were configured similarly. However; only 2 (both) of the servers at one of the lesser utilized sites exhibited the problem shown in the log file.

Thanks again for your assistance and guidance!  
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question