4 ms·
Pause times are better than 1 sec/GB with CMS and (by all reports) a lot better with G1. We have a service running an 8GB heap and using CMS and I want to say t
by hyperpape 11y ago
Pause times are better than 1 sec/GB with CMS and (by all reports) a lot better with G1. We have a service running an 8GB heap and using CMS and I want to say that it has < 100 ms pauses, definitely < 1s.
With a 64TB heap, the question isn't "is it better?" but "is pause time O(1)?" I can't recall what the Azul collector does, but I think G1 has some kind of linear behavior that would make it unusable on a heap that big.
I don't want to be Pollyannaish, but it is true that as time goes on, people will keep developing technology for handling large heaps. G1 was not fully supported until Java 7 and will probably be the default in Java 9. Meanwhile there's another low pause collector that Red Hat is working on (http://www.infoworld.com/article/2888189/java/red-hat-shenandoah-boosts-java-garbage-collection.html http://www.infoworld.com/article/2888189/java/red-hat-shenan...).