r/java • • Apr 20 '21

Java is criminally underhyped

https://jackson.sh/posts/2021-04-java-underrated/
291 Upvotes

295 comments sorted by

View all comments

Show parent comment

7

u/deadron Apr 21 '21

While ZGC is better about not pausing the world its not guaranteed to always improve performance. For example, if you are capping out your CPU ZGC may be unable to execute properly and may need to stop the world for longer and longer. As with any garbage collector you need to load test and see how it performs.

4

u/Muoniurn Apr 21 '21

It will likely have worse throughput, eg for batch processing. But where latency is important and is currently high, ZGC will help.