mojira.dev
MC-60529

Horrendous GC activity

Since version around ~1.7.5 Minecraft became sluggish and freezes randomly all the time.

edit: it actually isn't that bad on 1.7.10 - so now only snapshots are problematic

It's probably due to too many temporary objects being destroyed and garbage collected... Even if garbage collector manages to do it's job on time, it's not good as CPU usage is 100% all the time. (and it's noot good)

This video demonstrates the issue on skyblock map http://youtu.be/YHJBRd5pBxg heap usage jumps like crazy
And this is how it works on older version http://youtu.be/VVNN4BUpKHs

Using skyblock map was just a personal preference here. The same thing happens with "normal" minecraft maps.

No mods are installed. (and actually, optifine solves the issue for 1.7.10 version)

Comments 6

Your video is of a snapshot. Here it doesn't happen in 1.7.10, not sure what optifine can fix about it either 😃

Oh, yeah, I missed that... 1.7.10 isn't that bad actually. My fault. Still, snapshots go crazy and are barely playable.

I'm noticing the same problem more severely now with the current version (14w29b).
Probably due to the threading and the faster load of chunks (which is awesome btw).
The problem now is that GCs happen a lot more frequently.
At worst I had a GC every three seconds and the freeze + followed stuttering sometimes lasted more than a second.
Here is a video I took after standing still for ~5 minutes and then recording 30s of standing still: http://youtu.be/yAB4yME8Xtg
Please note that the actual increase rate is even faster when not recording.

With 14w30b the issue is (in my case) a lot less prominent and sometimes even unnoticeable (i.e. the freeze/stutter duration after a GC is a lot shorter), the GC frequency itself is still quite high though.

Can we call it fixed ?

Well it definitely doesn't cause any bigger freezes anymore.
Only the short freeze when GCing, but that one has always been there.

So you could call it a day and mark it fixed, but optimizing memory usage could pay off though (i.e. by pooling/reusing large arrays if that isn't already done).
So it is your call.

Some stats:
Settings: VBO On; distance 16; Fancy; FOV Normal; No VSync; Smooth Lightning: Max; Alt Blocks On; Windowed (1920x1178); Clouds Off; Particles All; -Xms3G -Xmx3G
Loading the world, doing 360° lookaround (waiting for chunks to be loaded), than just standing:
Memory: 500mb-1500mb; +200mb/s; 5s until GC

Same as above but in menu (Esc)
Memory: +10mb/s

Flying forward (for previously loaded and then unloaded chunks)
Memory: 900mb-1900mb; +500mb/s; 2s until GC

(Please keep in mind that I'm not the reporter and he/she might still have issues)

Kerai

(Unassigned)

Unconfirmed

Minecraft 14w26c, Minecraft 14w29b

Minecraft 14w30c

Retrieved