Re:The decline and fall of Java on the desktop
by lmm on Thursday March 03, 2022 @03:06AM
(#30538406)
> That’s not how it works. It’s not like Java’s GCs in the last decade had any sort of huge pauses unless the program did some stupid shit like allocation in a hot loop.
Or there's a bug. There's a reason ZGC is marked as experimental. G1GC handled the application in question fine, we reverted to that and it wasn't worth our time investigating further.
Re:The decline and fall of Java on the desktop
by kaba0 on Thursday March 03, 2022 @03:29AM
(#30538570)
While there is a possibility of a bug, I really doubt it. G1GC is just a beast and likely has just no problem with the allocation-rate your program uses while ZGC has quite a tradeoff for really low latency.
Java’s GCs are the state of the art, if they struggle with a workload then it is pretty much guaranteed that other GCs have already broken down completely at the fraction of that.
Regarding your application, did you check how many objects have you allocated? VisualVM and the like can show you precisely the statistics of your allocations.