Few days ago, I noticed that I'm occasionally seeing a java.lang.OutOfMemory: PermGen
exception when my Java web site runs under Tomcat.
I read about this error online and understand why this exception occurs. I followed a tutorial to increase my MaxPermSize
, and edited by catalina.sh
to contain the following:
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8
-server -Xms1536m -Xmx1536m
-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m
-XX:MaxPermSize=256m -XX:+DisableExplicitGC"
However, I would like to understand more about my PermGen capabilities:
Can anyone tells me how I can understand my server capability in order to give the appropriate new size?
Moreover does anyone know how I can make memory measurements on Apache tomcat?