Lag Spikes every 3-4 seconds (CPU usage is fine)
I am able to prevent the lag spikes ONLY when i set a limit of 200 milliseconds to garbage collection pauses, but i dont want to accumilate garbage. I have allocated 10GB of ram and the lag spikes happen even with minimal CPU usage (<20%)
Is there any fix to this?
1 Reply
adjust your threading settings in DH (or just lower CPU load in DH config, does the same thing)
or switch to Shenandoah GC or ZGC generational (java21+ only for the latter)
if you dont wanna switch from G1GC, you can allocate like 4-8gb for DH (depends on how large your modpack is)