JVM PrintGCApplicationConcurrentTime and PrintGCApplicationStoppedTime flags

I am running a Java program and I need to find out how much time they spent collecting garbage. I found these two JVM flags: -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime

but I can not find information about this. I believe that PrintGCApplicationStoppedTime prints how long the application has been in STW, however I'm not sure about -XX:+PrintGCApplicationConcurrentTime . Does it print how long the application ran at the same time as the collection threads?

Thanks in advance.

+5
source share
1 answer

The names of these flags are not very accurate.

PrintGCApplicationStoppedTime shows how long the application was stopped at safepoint. Safepoints are most commonly caused by phases of garbage stopping, but there are many other reasons .

PrintGCApplicationConcurrentTime - how long the application runs without stopping, i.e. time between two consecutive safe points.

+5
source

Source: https://habr.com/ru/post/1244598/


All Articles