Minecraft – How to stop the world from leaking

minecraft-feed-the-beastminecraft-java-edition

My FTB Direwolf20 server is leaking!

2013-04-11 22:29:24 [SEVERE] [ForgeModLoader] Detected leaking worlds in memory. There are 4 worlds that appear to be persisting. A mod is likely caching the world incorrectly
2013-04-11 22:29:24 [SEVERE] [ForgeModLoader] The world 6e929b52 (world) has leaked.
2013-04-11 22:29:24 [SEVERE] [ForgeModLoader] The world 28db4ccf (world) has leaked.
2013-04-11 22:29:34 [WARNING] [Minecraft] Can't keep up! Did the system time change, or is the server overloaded?

This is on a server I've just started up. What can I do?

Best Answer

According to this Feed the Beast forum, it is related to the loading and unloading of worlds. This applies to an issue Forge is having with the ChickenChunks mod because of the way it unloads worlds. Try going to your Advanced Java Options in the launcher (options --> Advanced options) and entering -XX:MaxPermSize=256m -XX:PermSize=128M in the Additional Java Perimeters field.

Linking to enough Mystcraft worlds and Twilight Forest multiple times can also be the cause of severe memory leaks. There also exists a semi-rare bug with causes FML (Forge ModLoader) to leak memory no matter what you do. Another common solution is to disable all of the wireless redstone mods, such as RedPower 2 and WRCBE. Basically, if you had made any Twilight Forest and Mystcraft worlds before, it is likely to happen.

Direwolf20 gives his two cents about the problem here: