On 03/05/2012 15:29, Pid wrote:
On 03/05/2012 11:35, Miguel González Castaños wrote:
Dear all,
My Tomcat 5.5 server reports in catalina.out under heavy load that
Tomcat is pausing. I checked and no java process was running and I had
to start Tomcat manually.
Can you post an example of the message from catalina.out that says
Tomcat is pausing?
May 3, 2012 8:40:10 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
May 3, 2012 8:40:10 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 5771 ms
May 3, 2012 9:56:54 AM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
May 3, 2012 9:56:54 AM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-443
May 3, 2012 1:35:03 PM 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:
/usr/bin/jdk1.5.0_17/jre/lib/i386/server:/usr/bin/jdk1.5.0_17/jre/lib/i386:/usr/bin/jdk1.5.0_17/jre/../lib/i386
May 3, 2012 1:35:03 PM org.apache.coyote.http11.Http11BaseProtocol init
I have just realized about that APR is missing, can be affecting to this
issue?
No errors before in catalina.out. The only error found today (It
crashed 3 times in 3 hours) was an outofmemory error.
I changed from 1024Mb to 1536Mb in catalina.sh:
CATALINA_OPTS="$CATALINA_OPTS -Xms1536m -Xmx1536m"
Do you actually have 2Gb of free RAM to assign to the Tomcat process?
Well, the machine has 4 Gb and only runs MySQL and Tomcat.
After installing Javamelody I saw that memory use was reaching 1056 Mb
(probably that triggered the outofmemory error).
Anything I can check or any setting I can set to get more information
in the next crash?
Enable JMX& connect to Tomcat using VisualVM (with the MBean& Memory
Pool plugins). Monitor thread counts& memory usage.
I have installed javamelody an the thread count is around 120, reaching
a max of 180. Memory usage grows very fast until Tomcat hangs. I suspect
is an issue of the garbage collector and setting the heap memory too
high. I have reset it to 768 Mb and now the memory seems to keep quite
low, some people say that Tomcat 5.x doesn't like much more than 1 Gb of
heap memory and that GC is not doing his job:
http://serverfault.com/questions/281515/periodic-unresponsiveness-in-tomcat
Miguel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org