I am using G1GC.
Is there a jvm argument I can pass to jvm so I get a gc log every time Humongous allocation happens?
I am using G1GC.
Is there a jvm argument I can pass to jvm so I get a gc log every time Humongous allocation happens?
-XX:+UnlockDiagnosticVMOptions -XX:+G1PrintHeapRegions
On every humongous allocation this will emit G1HR ALLOC(StartsH)
or G1HR ALLOC(SingleH)
line. Caution: this option will cause much more debug information printed to GC log or console.