Symptoms
- ZGC is defined in .vmoptions (
-XX:+UseZGC) - Memory consumption is high (more than an expected according to formula in memory allocation)
Cause
ZGC is designed for low-latency systems and can cnsume more memory than default G1GC
IntelliJ IDEA, by default, uses G1GC (G1 Garbage Collector), which is optimized for mixed workloads but with lower memory consumption.
Resolution
Switch to the default garbage collector G1GC:
- Open Settings
- Replace
-XX:+UseZGCwith-XX:+UseG1GCin .vmoptions file
Comments
0 comments
Please sign in to leave a comment.