Tomcat app: Frequent OutOfMemory PermGen exception when loading images
I have a tomcat 6 application that I have set the -Xms512m -Xmx1024m options. I thought that 1 GB of memory in 4 GB of RAM would be enough, but it is not. When stopping / starting the application multiple times (from tomcat manager) and also when loading images (sometimes) I run an OutOfMemory PermGen space error and the site becomes unresponsive. Should I add more memory? Is there anything else I can do from the tomcat side to keep it from getting caught in the PermGen space issue? Thanks in advance for the pointers / tips etc.
a source to share
The parameter -Xmx
only affects the available heap space and does not affect the PermGen memory pool.
To increase the permg pool beyond the default 64 MB, use options -XX:MaxPermSize
such as
-XX:MaxPermSize=256m
This is a Hotspot VPN option and probably won't work on other JVMs.
a source to share