I'm running a Java program and I need to get how much time each it spent garbage collecting.
I found these 2 JVM flags:
-XX:+PrintGCApplicationConcurrentTime
-XX:+PrintGCApplicationStoppedTime
but I'm not being able to find information about it.
I suppose that PrintGCApplicationStoppedTime
prints for how long the application time was in a STW, however I am not sure about -XX:+PrintGCApplicationConcurrentTime
. Does it print for how long the application was executing concurrently with collection threads?
Thanks in advance.
Total execution time : 4.48secs Time application ran : 4.47secs Time application was stopped : 0.01secs
and using the commandtime
I get 13.97 seconds. I'm missing something here... – Sequoia