World Leaks.

Booker The Geek

Well-Known Member
Feb 26, 2013
1,664
222
78
Pacific North West, USA
We've been getting the "leak" error as well, but fortunately, it hasn't driven lag off the charts like some of you have experienced. I tried the 'chunkloader' trick as mentioned earlier in the thread (thanks!), but it eventually proved ineffective. Here's the tail-end of the log file as the server restarts (~18:12 mark), then as I go collect the chunkloaders the problem appears to worsen (~18:16 mark). I don't know if this helps anyone with a solution or insight into the problem, but I thought I'd toss it your way.

Mindcrack 8.1.1 (Mystcraft not installed)

2013-02-27 18:12:04 [INFO] [ForgeModLoader] [Thaumcraft] Removed -609 aura nodes when world 7 unloaded.
2013-02-27 18:12:06 [INFO] [ForgeModLoader] Unloading dimension 7
2013-02-27 18:12:14 [SEVERE] [ForgeModLoader] Detected leaking worlds in memory. There are 2 worlds that appear to be persisting. A mod is likely caching the world incorrectly

2013-02-27 18:12:14 [SEVERE] [ForgeModLoader] The world 33b6180e (xxxx) has leaked.

2013-02-27 18:16:27 [INFO] [ForgeModLoader] [Thaumcraft] Removed -771 aura nodes when world 1 unloaded.
2013-02-27 18:16:27 [INFO] [ForgeModLoader] Unloading dimension 1
2013-02-27 18:16:32 [SEVERE] [ForgeModLoader] Detected leaking worlds in memory. There are 3 worlds that appear to be persisting. A mod is likely caching the world incorrectly

2013-02-27 18:16:32 [SEVERE] [ForgeModLoader] The world 47dd218b (xxxx) has leaked.


Tomorrow I think I will re-install 8.1.1 and see if that has any effect.

Thanks!

The first world leaked is caused by twilite fotest. If you can get away with disabling that, out should remove three first leaked world. (that mod names it's world #7)

I have noticed that thaumcraft also causes that message, but I use that mod allot so did not disable it. You might be lucky like me and be able to play with it still enabled. If it still lags your game, you can try to disable it, ymmv.

I will update my instructions later when I get out of the movies back home to my computer.

Cheers
 

Naolas

New Member
Jul 29, 2019
190
0
0
I tried the 'chunkloader' trick as mentioned earlier in the thread (thanks!), but it eventually proved ineffective. [...]

2013-02-27 18:12:06 [INFO] [ForgeModLoader] Unloading dimension 7
2013-02-27 18:12:14 [SEVERE] [ForgeModLoader] Detected leaking worlds in memory. There are 2 worlds that appear to be persisting. A mod is likely caching the world incorrectly

2013-02-27 18:12:14 [SEVERE] [ForgeModLoader] The world 33b6180e (xxxx) has leaked.

2013-02-27 18:16:27 [INFO] [ForgeModLoader] [Thaumcraft] Removed -771 aura nodes when world 1 unloaded.
2013-02-27 18:16:27 [INFO] [ForgeModLoader] Unloading dimension 1
2013-02-27 18:16:32 [SEVERE] [ForgeModLoader] Detected leaking worlds in memory. There are 3 worlds that appear to be persisting. A mod is likely caching the world incorrectly

2013-02-27 18:16:32 [SEVERE] [ForgeModLoader] The world 47dd218b (xxxx) has leaked.

I am not sure what you mean by ineffective. Are you sure you have a chunkloader in each world and it is working properly? Because with a chunkloader, a world should never unload. But your log shows worlds unloading.

Based on those lines, you are missing loaders in The End and Twilight Forest.
 

Haruchai

New Member
Jul 29, 2019
73
0
0
I am not sure what you mean by ineffective. Are you sure you have a chunkloader in each world and it is working properly? Because with a chunkloader, a world should never unload. But your log shows worlds unloading.

Based on those lines, you are missing loaders in The End and Twilight Forest.

I went to each world (ie, Nether, End, TF) and placed chunkloaders. I made sure they were working and rebooted. What you see is the result. I don't know enough about this sort of thing to know why things are happening the way they are. I just know I'm getting the world leak error.

And by "ineffective" I mean that the errors continue--the problem was not solved.
 

Naolas

New Member
Jul 29, 2019
190
0
0
I went to each world (ie, Nether, End, TF) and placed chunkloaders. I made sure they were working and rebooted. What you see is the result. I don't know enough about this sort of thing to know why things are happening the way they are. I just know I'm getting the world leak error.

And by "ineffective" I mean that the errors continue--the problem was not solved.
Hmm, can you make sure with /chunkloaders that the chunkloaders are actually working? My guess it will only show two worlds.

What you could do is go to TF, log off, stop the server, start the server, log in, remove/place the loader, leave the TF, and verify with /chunkloaders that the dimension shows with at least one forced chunk.

Then stop/start the server and see if you still have the "Unloading dimension 7" line. I recall that it was a bit tricky to get that chunkloader placed (I was getting crashes when doing so with chunks regenerating, thereby removing the chunk loader). Doing the server stop/start did the trick.

(If that worked, repeat it in The End to get rid of the last unloading world.)
 

Beleriond01

New Member
Jul 29, 2019
193
0
0
Question: as I've not ventured into TF or the End yet, can I still get the world leak errors?

The reason I ask is that I see the error pop up in my console but I've only visited the Nether and the Overworld...

Bel*.
 

Haruchai

New Member
Jul 29, 2019
73
0
0
Hmm, can you make sure with /chunkloaders that the chunkloaders are actually working? My guess it will only show two worlds.

What you could do is go to TF, log off, stop the server, start the server, log in, remove/place the loader, leave the TF, and verify with /chunkloaders that the dimension shows with at least one forced chunk.

Then stop/start the server and see if you still have the "Unloading dimension 7" line. I recall that it was a bit tricky to get that chunkloader placed (I was getting crashes when doing so with chunks regenerating, thereby removing the chunk loader). Doing the server stop/start did the trick.

(If that worked, repeat it in The End to get rid of the last unloading world.)


Here is the result of following your instructions. I hope it is helpful in solving the issue. Let me know if I can do anything else.

http://pastebin.com/FPZz927j



---> added later

I had everyone unload every chunkloader and quarry and restarted the server. Even with the leak errors, CPU usage went from ~100% (with frequent drops and disconnects) to ~3%-5%. So, the leak may be causing a bit of trouble, but not much. To that end, however, I am going to post a new thread in this forum as I need help in how best to manage this server.

Thanks.
 

Naolas

New Member
Jul 29, 2019
190
0
0
Here is the result of following your instructions. I hope it is helpful in solving the issue. Let me know if I can do anything else.

http://pastebin.com/FPZz927j



---> added later

I had everyone unload every chunkloader and quarry and restarted the server. Even with the leak errors, CPU usage went from ~100% (with frequent drops and disconnects) to ~3%-5%. So, the leak may be causing a bit of trouble, but not much. To that end, however, I am going to post a new thread in this forum as I need help in how best to manage this server.

Thanks.
We may have a misunderstanding here. The goal is to keep the worlds from unloading. That means there has to be at least one chunkloader in every dimension, at all times.

Your log correctly shows that dimension 7 (TF) does not unload after restarting. Dimension 1 (End) is missing a chunkloader though.
 

Haruchai

New Member
Jul 29, 2019
73
0
0

Thanks for the link--was interesting reading. From out point of view, I'd have to agree with one of the posters in that thread: we didn't see any significant change in performance regardless of whether we kept a chunkloader in each dimension or let them leak. I could see the error, but with the tools available to me (limited to pretty much McMyAdmin), I couldn't see any big CPU hit.

We've since decided to start a new Ultimate world and after 24 hours (with TT installed), I've not seen any errors.
 

Louietheflyisme

New Member
Jul 29, 2019
3
0
0
I've been getting this same error, except I am on a single player world running yogcraft- it doesn't have mystcraft. I would try your fix with the world loaders, except that the problem is so bad I can't access twilight forest and the nether, end, etc. It also doesn't help that my computer is slow.

I am also getting the: server can't keep up- did the system time change etc. warning message, and I think the two errors might be related. Any help would be greatly appreciated
 

Booker The Geek

Well-Known Member
Feb 26, 2013
1,664
222
78
Pacific North West, USA
I've been getting this same error, except I am on a single player world running yogcraft- it doesn't have mystcraft. I would try your fix with the world loaders, except that the problem is so bad I can't access twilight forest and the nether, end, etc. It also doesn't help that my computer is slow.

I am also getting the: server can't keep up- did the system time change etc. warning message, and I think the two errors might be related. Any help would be greatly appreciated

Hm.......
Odd request, but can you upload a console log please before I hand out any ideas, just want to make site your good everywhere else first.
 

Haruchai

New Member
Jul 29, 2019
73
0
0
Given what I've seen and experienced in the past few weeks, my advice would be to yank the FTB/Forge server file and replace it with MCPC+. Leaks gone.

In a series of tests I ran for a plugin author, every FTB/Ultimate world leaked from the start (without anyone ever logging in to play).
 

Dingham

New Member
Jul 29, 2019
294
0
0
MCPC comes with more errors than FTB launcher. So much so that its been asked that any related issues goes to the MCPC forums.

This memory leak issue isn't that major, my servers run fine with it. It's been around longer than we've been aware its just forge recently started showing it in the console.

If you want a fix. Booker The Geek fix does work.

If you have a laggy server i would look at the more traditional causes. Too many entirety, flowing liquids...etc And if you have twilight forest, accept that as soon as someone goes there its going to lag the server.
 
  • Like
Reactions: Booker The Geek

Booker The Geek

Well-Known Member
Feb 26, 2013
1,664
222
78
Pacific North West, USA
There is a video (I believe it is a DW20) video that the people on forgecraft server are talking about the memory leaks, and why they are there. It is NOT a forge issue, it is an issue with mods not releasing the worlds when you are not in it. You can duplicate this error easily for yourself by starting up favorite modpack, and creating a new world, exit, and repeat 2-4 times. Then try and delete those worlds. Interesting, right?
 

Louietheflyisme

New Member
Jul 29, 2019
3
0
0
Hm.......
Odd request, but can you upload a console log please before I hand out any ideas, just want to make site your good everywhere else first.

Sorry about this being really long, but here is an abridged version of my console- i have kept all the warnings and errors, etc.
Also, I have managed to access the twilight forest and put a chunk loader there, no difference.
Is it at all possible to change what mods I have to stop this error?

Thanks.

Code:
2013-04-10 12:33:01 [INFO] [ForgeModLoader] FML has found a non-mod file neipluginsredpower.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible.
At startup:
2013-04-10 12:34:24 [WARNING] [ForgeModLoader] Could not load forestry config, due to java reflection failing!
|
|
|
2013-04-10 12:34:51 [INFO] [ForgeModLoader] Loading dimension 0 (*****) (bdz@2a8948)
2013-04-10 12:34:52 [INFO] [ForgeModLoader] Loading dimension 7 (*****) (bdz@2a8948)
2013-04-10 12:34:56 [INFO] [ForgeModLoader] [TwilightForest] Loaded feature cache with 1612 chunks present.
2013-04-10 12:34:56 [INFO] [ForgeModLoader] Loading dimension 1 (*****) (bdz@2a8948)
2013-04-10 12:34:56 [INFO] [ForgeModLoader] Loading dimension -1 (*****) (bdz@2a8948)
2013-04-10 12:34:57 [INFO] [Minecraft] Preparing start region for level 0
2013-04-10 12:34:58 [INFO] [Minecraft] Preparing spawn area: 0%
2013-04-10 12:34:59 [INFO] [Minecraft] Preparing spawn area: 9%
2013-04-10 12:35:00 [INFO] [Minecraft] Preparing spawn area: 13%
2013-04-10 12:35:02 [INFO] [ForgeModLoader] [Modstats] Updates found: Modular ForceField System (2.3.0).
2013-04-10 12:35:02 [INFO] [Minecraft] Preparing spawn area: 20%
|
|
|
2013-04-10 12:35:23 [INFO] [Minecraft] Preparing spawn area: 95%
2013-04-10 12:35:36 [INFO] [PortalGun] [1.4.7v5] Loading world properties.
2013-04-10 12:36:49 [INFO] [STDOUT] Loading NEI
2013-04-10 12:36:51 [WARNING] [Minecraft] Can't keep up! Did the system time change, or is the server overloaded?
2013-04-10 12:37:27 [WARNING] [Minecraft] Can't keep up! Did the system time change, or is the server overloaded?
2013-04-10 12:37:29 [WARNING] [Minecraft] Can't keep up! Did the system time change, or is the server overloaded?
2013-04-10 12:37:52 [WARNING] [Minecraft] Can't keep up! Did the system time change, or is the server overloaded?
2013-04-10 12:38:11 [INFO] [Minecraft] *************[/127.0.0.1:0] logged in with entity id 1354 at (-160.19345542883957, 70.0, 43.70702925033885)
|
|
2013-04-10 12:38:29 [INFO] [STDOUT] Loading World: local/*****
2013-04-10 12:38:32 [WARNING] [Minecraft] Can't keep up! Did the system time change, or is the server overloaded?
2013-04-10 12:38:36 [WARNING] [Minecraft] Can't keep up! Did the system time change, or is the server overloaded?
2013-04-10 12:39:08 [INFO] [ForgeModLoader] [Thaumcraft] Removed -31 aura nodes when world 1 unloaded.
2013-04-10 12:39:32 [INFO] [ForgeModLoader] Unloading dimension 1
2013-04-10 12:39:33 [SEVERE] [ForgeModLoader] Detected leaking worlds in memory. There are 2 worlds that appear to be persisting. A mod is likely caching the world incorrectly
2013-04-10 12:39:33 [SEVERE] [ForgeModLoader] The world 12f88f7 (*****) has leaked.
2013-04-10 12:39:35 [WARNING] [Minecraft] Can't keep up! Did the system time change, or is the server overloaded?
2013-04-10 12:39:35 [INFO] [STDOUT] Loaded codechicken.nei.plugins.redpower.NEIRedPowerConfig
2013-04-10 12:39:35 [INFO] [STDOUT] Loaded thermalexpansion.plugins.nei.NEIThermalExpansionConfig
2013-04-10 12:39:35 [INFO] [STDOUT] IC2 NEI Submodule initialized
|
|
|
2013-04-10 12:39:38 [INFO] [STDOUT] Memory connection overburdened; after processing 2500 packets, we still have 2654 to go!
2013-04-10 12:39:58 [WARNING] [Minecraft] Can't keep up! Did the system time change, or is the server overloaded?
|
2013-04-10 12:40:28 [INFO] [Minecraft] Saving and pausing game...
2013-04-10 12:40:28 [INFO] [Minecraft] Saving chunks for level '*****'/Overworld
2013-04-10 12:40:28 [INFO] [Minecraft] Saving chunks for level '*****'/Nether
2013-04-10 12:40:28 [INFO] [Minecraft] Saving chunks for level '*****'/Twilight Forest
2013-04-10 12:40:32 [INFO] [STDOUT] Memory connection overburdened; after processing 2500 packets, we still have 4945 to go!
2013-04-10 12:40:33 [INFO] [STDOUT] Memory connection overburdened; after processing 2500 packets, we still have 2456 to go!
|
|
|
2013-04-10 12:50:54 [INFO] [Minecraft] Saving and pausing game...
2013-04-10 12:50:54 [INFO] [Minecraft] Saving chunks for level '*****'/Overworld
2013-04-10 12:50:54 [INFO] [Minecraft] Saving chunks for level '*****'/Nether
2013-04-10 12:50:54 [INFO] [Minecraft] Saving chunks for level '*****'/Twilight Forest
 

DerpShark

New Member
Jul 29, 2019
6
0
0
Could you just remove the worlds from the server files? Then just regenerate them at a later date. That would remove the need for chunk loader/ mod removing solutions. I rarely use Mystcraft/TF. Would that be a possible solution? Please let me know. I am a scrub at these kinds of things.