Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

tomcat eating heap space

843841May 24 2006 — edited Feb 18 2008
hi all,
I'm experiencing a memory leak problem in an application running in a tomcat 5.5, linux and jdk1.5, using struts and hibernate.

I've found a lot of topics about memory leak problems related to classloader's problems... but they allways talk about that the problem appears when redeploying webapps.

In my case, de tomcat server is started with the application, specifying 1Gb for heap space... and this space is consumed slowly while time passes...

I've been using JProfiler to try to find out what's going wrong. I'm not sure about which is the problem. After some time, I get hundred of thousands of Class Objects, and lots of String objects loaded, representing this ones 500mb of heap space (100mb in Bytes, etc....) . Other objects keep growing in number during execution too.

Analyzing the heap memory graph, it frees just a little memory when doing garbage collection, but when I force it using the application (JProfiler), heap space goes to the 50mb that uses when the server starts.

Why isn't working like this when the automatic GC is used?


Do you think that it's the same problem about memory leak and classloader and this?


thanks a lot
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 17 2008
Added on May 24 2006
5 comments
419 views