myself
Nov 5th, 2010, 07:26 AM
Hi,
I recently created a web application using Spring 3, Struts 2 and Hibernate 3. It all works fine together, but when developing the application (used Netbeans) when re-deploying the application i started running out of memory (permgen). I read up about it and read that there was a memory leak with hot deploys so just increased memory for tomcat and problem went away.
Now when i deployed the application on the live server i got hit by the permgen exception again. My application isnt that big so why am i running out of memory?
What is the average memory usage of a Spring, struts, hibernate application, its a small application, around 100 classes, basic website with databaseing.
Netbeans profiler tells me i have a heap size of 168Mb and running on average 99 threads, it also tells me "java.util.zip.zipfile" has a high "self time".
Could this be a setup problem, between spring, struts and hibernate. Or does any one have any ideas what could be causing such a simple application to use up all my memory.
Thanks
M
I recently created a web application using Spring 3, Struts 2 and Hibernate 3. It all works fine together, but when developing the application (used Netbeans) when re-deploying the application i started running out of memory (permgen). I read up about it and read that there was a memory leak with hot deploys so just increased memory for tomcat and problem went away.
Now when i deployed the application on the live server i got hit by the permgen exception again. My application isnt that big so why am i running out of memory?
What is the average memory usage of a Spring, struts, hibernate application, its a small application, around 100 classes, basic website with databaseing.
Netbeans profiler tells me i have a heap size of 168Mb and running on average 99 threads, it also tells me "java.util.zip.zipfile" has a high "self time".
Could this be a setup problem, between spring, struts and hibernate. Or does any one have any ideas what could be causing such a simple application to use up all my memory.
Thanks
M