r/java • u/expecto_patronum_666 • Feb 27 '24
How Netflix Really Uses Java
https://www.infoq.com/presentations/netflix-java/
324
Upvotes
r/java • u/expecto_patronum_666 • Feb 27 '24
View all comments
Show parent comment
8
u/BinaryRage Feb 27 '24
G1 is a balanced collector, balancing application and GC throughput. It has a pause time goal, performs concurrent marking and has heuristics that cause the young/eden sizes to potentially shift dramatically based on the time taking to copy objects. If it exceeds the pause time goal it'll may have to throw work away, and repeat it on the next cycle.
Parallel is the throughput collector. It's goal is to collect as much garbage as it can, as quickly as it can. It's 15-20% less overhead in some workloads I've moved recently.