Reputation: 2873
we are currently using G1GC
which does not honour/support UseGCOverheadLimit
, so our app is sometimes completely stuck in GC-thrashing and the jvm never aborts/crashes.
Just checking which options we do have, according to this overview the latest GC is ZGC but I can't find anything whether ZGC
actually supports the overhead limit?
Upvotes: 0
Views: 346
Reputation: 346
Use this simple command to verify if that JVM option is enabled:
java -XX:+PrintFlagsFinal -XX:+UseZGC -version | grep -i Overhead
bool UseGCOverheadLimit = true {product} {default}
java version "17.0.3.1" 2022-04-22 LTS
Java(TM) SE Runtime Environment (build 17.0.3.1+2-LTS-6)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.3.1+2-LTS-6, mixed mode, sharing)
Upvotes: 1