On 20.07.2011 01:32, Monsieur fsfu wrote:
> Hi,
> 
> I was checking out the parallel deployment feature of tomcat 7 and
> encountered an issue with PermGen space of JVM. After the initial
> deployment (xyz##001.war), PermGen space reaches ~120mb of space and
> after parallel deployment (xyz##002.war) it almost doubles (~205mb)
> which make sense. Now if i remove the old war file (xyz##001.war) by
> removing xyz##001.xml
> ($catalina_home/conf/Catalina/locahost/xyz##001.xml), PermGen space
> doesn't come down. I have waited upto 4 hrs but no luck. Once i
> restart the JVM then only it comes down to ~120 range. Is anybody else
> faced this issue? I would hate to restart the JVM after deployment
> which totally defeats the purpose of parallel deployment.
> 
> Setup details:
> 
> OS --> RHEL - 5.5 (64 Bit)
> Tomcat --> 7.0.14
> Java --> jre1.6.0_25 (64 bit)
> Tomcat APR --> apr-1.4.5 (64 bit)
> java service wrapper --> 3.5.9 (64 bit)
> 
> Attached are server.xml and wrapper.conf files.

Look for the word "leak" in the Tomcat log files after undeploying one
version. Those log lines give you hints, why Tomcat could not unload the
classes.

Unfortunately the solutions can be tricky, so for complex web
applications it is not uncommon, that you migt have to live with those
leaks, in other words provide more perm gen space and still restart
every now and then.

Regards,

Rainer



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to