I'm trying to analyze GC behaviour for our application (running in Tomcat, under Sun's Hotspots, JVM 1.6).
So far I've:
Instructed the JVM to emit GC logs to a separate file using:
-Xloggc:gc.log -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime
-XX:+PrintGC -XX:+PrintGCTimeStamps -XX:+PrintGCDetails
...
I have installed and configured jstat in my PC with Windows XP, tested it with sample Java program. But I need to know how to use jstat with JSP or Tomcat, is there any other futher configuration needed or not?
...
I frequently use jstat to obtain GC related statistics. However, there are times when I simply cannot obtain any of the statistics from a JVM. It just says that it cannot find the process id, even though its the correct id.
Digging slightly deeper, it seems to be related to the "/tmp/hsperfdata" related files. On servers that have this ...
In JDK 1.5.0.22 : I see that full GC has been run but the old generation and perm gen space is not used completely - question is as per my understanding FGC only runs when old gen or perm gen is full - I am not able to understand why it has run even though usage % is low?.
See output of jstat -gcutil below:
S0 S1 E O ...