tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jerome Benezech <>
Subject Tomcat Memory Usage
Date Mon, 14 May 2007 09:20:43 GMT
Hi all,

I run a cocoon webapp which is hosted on a shared
Linux environnement and runs under tomcat 5.5.9.
There are about 7 applications running under that
tomcat instance (2 cocoon, at least 1 jsp, don't know
for the others).
My host provider complains that he tomcat uses a lot
of memory and that he needs to restart it every 4
hours to release the memory.
Tomcat runs as a daemon (started using jsvc) and with
the following parameters:

jsvc.exec -user tomcat -cp ./bootstrap.jar
-java.awt.headless=true -Xmx500000000
-XX:MaxPermSize=300m -debug -outfile
../logs/catalina.out -errfile ../logs/catalina.err
-verbose org.apache.catalina.startup.Bootstrap

I'm really not sure where to start looking: memory
leak due to bad programming in the webapp or bad
tomcat configuration leading to memory leaks.
I also noticed there are quiet a few links in google
pointing to problems with Tomcat not releasing memory
(objets not getting garbage-collected), although they
are mostly related to Tomcat 4.x. What is the
situation on with Tomcat 5.5.9 ?

I'm looking for help on what to look for, what
configuration parameters should be used in production
environnement, how can I pinpoint this memory problem


Jerome Benezech

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message