G1 pauses and number of application threads

Nicola Ferraro ni.ferraro at gmail.com
Wed Oct 11 16:49:29 UTC 2017


Hi,
I've started to look at G1 garbage collector internals and I would like to
know if the performance of G1 are affected by the number of threads in the
application. Doing a STW means stopping all application threads, and this
suggests me that the more threads you have in your application, the longer
STW pauses will be.

I've done some basic tests (from 1 thread to 10, 100, 1000) and I'm not
able to see a clear pattern. But this may be due to my ignorance on the
topic. I'm collecting data using "-XX:+PrintGCApplicationStoppedTime
-XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1" on JDK 8.

Is it true that the number of threads slow down G1 GC?

Regards,
Nicola Ferraro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20171011/02c8e1c5/attachment.html>


More information about the hotspot-gc-use mailing list