3 ms·
The default GC has ridiculously good throughput with modest latency (10ms for quite large heap sizes), but there are also alternatives like ZGC and Shenandoah t
by kaba0 6y ago
The default GC has ridiculously good throughput with modest latency (10ms for quite large heap sizes), but there are also alternatives like ZGC and Shenandoah that optimize for latency instead, and they promise <10 ms latency, but in practice they are around 3-4 ms. At which point, not running a real time OS, you will get bigger hiccups from the OS scheduler.
Also, for very different use cases like soft real time, there are specific JVMs with real time guarantees.
Here is a great post about it: https://jet-start.sh/blog/2020/06/09/jdk-gc-benchmarks-part1 https://jet-start.sh/blog/2020/06/09/jdk-gc-benchmarks-part1
- haglin 6y agoAnd in JDK 16, ZGC has concurrent thread-stack processing, which typically reduces GC pauses below 1 ms https://openjdk.java.net/jeps/376 https://openjdk.java.net/jeps/376 https://youtu.be/88E86quLmQA?t=1525 https://youtu.be/88E86quLmQA?t=1525