(help)Mark stack overflow in JDK11
roy.sunny.zhang007 at gmail.com
Sun Apr 24 07:39:28 UTC 2022
BTW, where do we store Mark stack data? off-heap?
On Sun, Apr 24, 2022 at 8:28 AM Roy Zhang <roy.sunny.zhang007 at gmail.com>
> Dear Erik,
> Thanks for ur quick reply!
> The heap size is 650G, it is a huge application. So what should we do?
> Reduce heap size? Use G1GC or Shenandoah GC?
> Regarding JDK17, unfortunately, we have to stuck on JDK11 for some time...
> On Sun, Apr 24, 2022 at 2:49 AM Erik Osterlund <erik.osterlund at oracle.com>
>> Hi Roy,
>> I wonder how large is the heap size?
>> I also wonder if you had the chance to try JDK 17? Quite a few things
>> have changed in this area since 11.
>> > On 23 Apr 2022, at 13:45, Roy Zhang <roy.sunny.zhang007 at gmail.com>
>> > Dear ZGC experts,
>> > Currently we have JVM crash issue caused by Mark stack overflow, and
>> > to increase ZMarkStacksMax (default value is 8G), but even if I
>> increase it
>> > to 16G (or even 24G), we still have this issue.
>> > 1. Could u please kindly let me know how to troubleshoot the Mark stack
>> > overflow issue? Is it caused by too many live objects?
>> > 2. If I have to stuck on JDK11(as we know, ZMarkStacksMax is
>> deprecated in
>> > JDK12 via dynamic base address for mark stack space), will it help if we
>> > switch to G1GC or Shenandoah GC?
>> > Really appreciate ur great help!
>> > Thanks,
>> > Roy
More information about the zgc-dev