We are experiencing OutOfMemory exceptions from Tomcat 5.5 If we repeatedly deploy/undeploy a webapp using the Deployer/Ant package, we will be able to reproduce it. We need not access the webapp at all. Can you please provide a fix for this ?
your web application will probably be holding onto resources so that when tomcat tries to reload your web appliation, a bit of memory is lost each time. this OOME does not just occur with deployer but also with reloadable="true" class changes where the webapp is forced to reload. you should get hold of a profiler and consider also using a context listener to kill all references.
I will agree with you are saying. But the point is - I did not even access the web app. I can easily simulate this with a logic similar to this in a shell script. What I am saying is - it is not my application. For argument sake, I will take a standard application - or any app developed by anybody For count 1 to 40 Run deploy <any app> Run undeploy <any app> End for You can see I did not even access my web app.
I also searched on Google and many people reported OutOfMemory errors in 5.5.9 or in general with 5.5. This also included some comments from one of the developers of Hibernate. This leads me to believe that this is a genuine problem.
Please provide conclusive informations about references which would be leaked by Tomcat.