mojira.dev
MC-41941

Nether travel has a memory leak

Repeated travel back and forth between the overworld and the nether results in increasing memory allocated to tenured space.

I used these java flags: -XX:+PrintTenuringDistribution -XX:+PrintCommandLineFlags -XX:+PrintHeapAtGC -XX:+PrintGCDetails -Xloggc:GC.log -XX:+PrintGCDateStamps

and a "tail -F GC.log"

Start by loading up the overworld, and traveling around a little. Then, make a nether portal, and go back-and-forth.

The travel around the overworld let the memory get to an initial baseline.
Repeated travel into the nether keeps raising the tenured space.

Comments 3

Please provide the exact results, as well as a test in the most recent version 1.7.4.

Your version of Minecraft is no longer supported. We are currently only accepting bugs found in the official release 1.7.2 and later.

The exact result, in 164, is that memory consumption goes up, and keeps going up. Every time you change dimensions, there is a full GC, but the amount used does not go down.

In 1.7.4, this is fixed – repeated testing shows no change in memory usage, even after exploring a large amount of the nether.

So, yea, already been corrected (ABC).

Keybounce

(Unassigned)

Unconfirmed

leak, memory

Minecraft 1.6.4

Retrieved