Bug 36969 - OutOfMemory exceptions when used with Deployer package
Summary: OutOfMemory exceptions when used with Deployer package
Status: RESOLVED INVALID
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 5.5.9
Hardware: All Linux
: P1 critical (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-07 18:26 UTC by Atanu Mukherjee
Modified: 2005-10-07 10:46 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Atanu Mukherjee 2005-10-07 18:26:04 UTC
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 ?
Comment 1 Allistair Crossley 2005-10-07 18:28:37 UTC
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.
Comment 2 Atanu Mukherjee 2005-10-07 18:39:53 UTC
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.
Comment 3 Atanu Mukherjee 2005-10-07 18:42:17 UTC
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.
Comment 4 Remy Maucherat 2005-10-07 18:46:44 UTC
Please provide conclusive informations about references which would be leaked by
Tomcat.