2 ms·
Thanks. I understand that the numbers require profiling to determine, but I wish there was at least a high-level guide like: Do you want to optimise pause time
by kartickv 8y ago
Thanks. I understand that the numbers require profiling to determine, but I wish there was at least a high-level guide like:
Do you want to optimise pause times? Use X.
Optimise throughput without regard to pause times? Use Y.
Optimise memory use? Use Z.
It may not be accurate in every case (no guideline is), but it would be a good starting point for the vast majority of us who don't know the pros and cons of various collectors.
- pjmlp 8y agoHere are some guides for different JVMs, https://docs.oracle.com/javase/10/gctuning/introduction-garbage-collection-tuning.htm#JSGCT-GUID-326EB4CF-8C8C-4267-8355-21AB04F0D304 https://docs.oracle.com/javase/10/gctuning/introduction-garb... https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/memman.html#wp1087125 https://docs.oracle.com/cd/E13150_01/jrockit_jvm/jrockit/gen... https://www.infoq.com/articles/G1-One-Garbage-Collector-To-Rule-Them-All https://www.infoq.com/articles/G1-One-Garbage-Collector-To-R... https://www.infoq.com/articles/tuning-tips-G1-GC https://www.infoq.com/articles/tuning-tips-G1-GC https://developer.ibm.com/articles/garbage-collection-tradeoffs-and-tuning-with-openj9/ https://developer.ibm.com/articles/garbage-collection-tradeo... https://www-01.ibm.com/support/docview.wss?uid=swg27013824&aid=1 https://www-01.ibm.com/support/docview.wss?uid=swg27013824&a...