Java Performance Tuning
Java(TM) - see bottom of page
Our valued sponsors who help make this site possible
JProfiler: Get rid of your performance problems and memory leaks!
Training online: Concurrency, Threading, GC, Advanced Java and more ...
News September 2019
JProfiler
|
Get rid of your performance problems and memory leaks!
|
JProfiler
|
Get rid of your performance problems and memory leaks!
|
|
|
Back to newsletter 226 contents
Pop quiz: how many different garbage collectors are available for you to use in OpenJDK Java 11+?
For example the G1 collector is one garbage collector, and the Serial collector is another. I'm not
talking about the copying collectors in the young gen and the others in the old gen, because these are
all coupled together now forming a single multi-gen collector - earlier versions of Java did allow
you to mix and match some of the young gen and old gen algorithms, but that is no longer possible
and choosing a collector now chooses the algorithm for all gens. Stop reading now so you can properly
think it through, and answer the quiz, I am willing to bet you'll get it wrong (unless you've already
seen the answer after this newsletter goes live and everyone popularizes it).
The answer is 12. This isn't some subtle trick, some hidden way of multiplying the collectors. There are
2 JVM implementations in the OpenJDK - HotSpot and OpenJ9. HotSpot has 7 collectors available and OpenJ9
has 6. That would total 13, but one of the collectors (Epsilon) is the same collector in both, resulting in 12 collectors.
The full list:
- Both: Epsilon -XX:+UseEpsilonGC and -Xgcpolicy:nogc
- HotSpot: Serial -XX:+UseSerialGC; Parallel -XX:+UseParallelGC; CMS -XX:+UseConcMarkSweepGC; G1 -XX:+UseG1GC; ZGC -XX:+UseZGC; Shenandoah -XX:+UseShenandoahGC
- OpenJ9: Balanced -Xgcpolicy:balanced; Concurrent -Xgcpolicy:gencon; Metronome -Xgcpolicy:metronome; Pause time -Xgcpolicy:optavgpause; Throughput -Xgcpolicy:optthruput
Now on to this month's tips, tools, news, articles, and those talks.
And of course the tips from this month's articles and talks, as ever
are extracted into
this month's tips page.
A note from this newsletter's sponsor
JProfiler
Get rid of your performance problems and memory leaks!
News
Java performance tuning related news.
Tools
Java performance tuning related tools.
Articles
Jack Shirazi
Back to newsletter 226 contents
Last Updated: 2024-11-29
Copyright © 2000-2024 Fasterj.com. All Rights Reserved.
All trademarks and registered trademarks appearing on JavaPerformanceTuning.com are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries. JavaPerformanceTuning.com is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
URL: http://www.JavaPerformanceTuning.com/news/news226.shtml
RSS Feed: http://www.JavaPerformanceTuning.com/newsletters.rss
Trouble with this page? Please contact us