J
John Smith
We have some java applications deployed on tomcat.
From time to time the whole system freezes up.
It seems that there is not enough space for JVM. The maximum is set to
896MB.
Instead of just increasing the size I'd like to know whats causing the
problem.
I'm trying to use "-XXrintClassHistogram" parameter but the log file
is not generated.
I put this to tomcat5 config file:
JAVA_OPTS="-Xms512m -Xmx896m -XX:MaxPermSize=256m
-XX:HeapDumpPath=/tmp/java_pid<pid>.hprof
-XX:-HeapDumpOnOutOfMemoryError -XXrintClassHistogram"
I tried stoping the tomcat afterwords or causing the OutOfMemory
problem, but the file is not created.
I'm I doing wrong something?
Any suggestions?
From time to time the whole system freezes up.
It seems that there is not enough space for JVM. The maximum is set to
896MB.
Instead of just increasing the size I'd like to know whats causing the
problem.
I'm trying to use "-XXrintClassHistogram" parameter but the log file
is not generated.
I put this to tomcat5 config file:
JAVA_OPTS="-Xms512m -Xmx896m -XX:MaxPermSize=256m
-XX:HeapDumpPath=/tmp/java_pid<pid>.hprof
-XX:-HeapDumpOnOutOfMemoryError -XXrintClassHistogram"
I tried stoping the tomcat afterwords or causing the OutOfMemory
problem, but the file is not created.
I'm I doing wrong something?
Any suggestions?