Sign in to follow this  
Wulfrock

Possible Memory Leak ?

Recommended Posts

Hi all.

 

Since 1.5 on Mystic Highlands we have had to reboot our server every 3 days, before 1.5 we were able to leave it online for, well we had it online for 2 weeks at a time sometimes with no reboot, now though it runs out of memory.

 

Before 1.5 we had a very small test server that only 3 players can log into, again that was online for weeks without rebooting, now, again its just 3 or 4 days.

 

So we took EVERYTHING off the test server, no mods at all, not even modloader, and the memory used is still constantly creeping up every few minutes, that is with no one even logging in on the server.

 

Anyone else noticing this on their server please ? It is kind of making us pull our hair out to find out why this is happening.

 

thanks.

 

Valiance and Kaylie.

Share this post


Link to post
Share on other sites

Ok here is the wurm.log.0 from our test server (which is totally empty, no mods at all running) which is constantly going up and empty.

 

Put it on paste bin since its large. We rebooted the server yesterday, so this is from yesterday up till now.

 

https://pastebin.com/jDi0CHzm

 

Valiance and Kaylie.

Share this post


Link to post
Share on other sites
20 hours ago, Wulfrock said:

Ok here is the wurm.log.0 from our test server (which is totally empty, no mods at all running) which is constantly going up and empty.

 

Put it on paste bin since its large. We rebooted the server yesterday, so this is from yesterday up till now.

 

https://pastebin.com/jDi0CHzm

 

Valiance and Kaylie.

 

Is this Testserver lagging too?

Share this post


Link to post
Share on other sites

No, there is no lag at all (when we actually log in with a GM).

 

Valiance and Kaylie.

 

Share this post


Link to post
Share on other sites
1 hour ago, Wulfrock said:

No, there is no lag at all (when we actually log in with a GM).

 

Valiance and Kaylie.

 

 

So how should the log from the test server help to find out what's wrong with the live server?

Share this post


Link to post
Share on other sites

Because they are both actually live servers, test and Mystic Highlands......Test has zero mods on it, yet the memory just keeps going up until after 3 days it runs out of memory, same as Mystic Highlands does with or without mods.

 

Valiance and Kaylie.

 

Share this post


Link to post
Share on other sites

But without having such a memory drop on the logs we will never find out where the problem comes from.

 

So post the wurm log of your live server when this happens next time, make sure to include enough logs around the restart. Test server is completly 

inconspicuous, the logs don't help.

Share this post


Link to post
Share on other sites

Thanks but we will leave it for now, as we said, test server is identical to Mystic Highlands, both are online and both have the same memory leak, so we see no difference at all as to which log we posted as they both do the very same thing.

 

Oh and its not when this happens, it constantly happens, slow but sure eating the memory non stop, its not an intermittent thing. We start either test or Mystic Highlands, or both, and they just keep eating memory until after 3 days they are out of memory.

 

Valiance and Kaylie

Share this post


Link to post
Share on other sites

After looking closer I found a big bunch of dangerous errors, it is a wonder that your server is still starting up, I have never seen such a damaged server. I recommend to solve all this problems as fast as possible or your server will suffer to even worse problems than this memory leak.

 

https://pastebin.com/mrJzJfJP

Share this post


Link to post
Share on other sites

Those are nothing, those are when we tried to run the server simply with the modloader running and no mods, was simply looking for some mods we have installed and created items.

 

Valiance and Kaylie.

Share this post


Link to post
Share on other sites

Nothing looks different, these errors can cause problems on loading which show up in form of endless loops slowly collecting all of your RAM.

There is no memory leak in the vanilla WU update, so the problem is on your end.

Edited by Sklo:D

Share this post


Link to post
Share on other sites

Very odd then....since test server has zero mods running on a ping perfect server, so all it is on there is vanilla WU and nothing else, yet it still loses memory since 1.5, pre 1.5 identical setup the server could stay online for weeks, now its 3 days.

 

Valaince and Kaylie.

Share this post


Link to post
Share on other sites

From the logs I can see that the "map" of the test server has been using mods once. It tries to load creatures like a pumpkin king, some unknown recipes and so on.

 

It is important to always remove stuff which old or outdated mods you no longer use have left in your databases, as you don't know how the game behaves in case of missing templates, recipes and so on.

Share this post


Link to post
Share on other sites

We do understand where you are coming from, we really do, however, we posted the entire wurm log, maybe we should post just the stuff from a fresh boot early this morning (about 13 hours ago) where the modloader is not even there.

 

So this is the log started from a fresh reboot this morning, no modloader, just vanilla wurm. It is still creeping up in memory.

 

https://pastebin.com/cSrFAm8f

 

Valiance and Kaylie.

Share this post


Link to post
Share on other sites

Same errors as mentioned above.

 

You also can see the the problem starts from the very first second.

INFO: current mem in use: 12555M free mem: 12235M Max mem: 12555M

 

Healthy servers look like this: 

INFO: current mem in use: 986M free mem: 406M Max mem: 2010M

 

In general your memory stats look strange. 

 

What to do next...

  • Post your memory configuration e.g. -Xmn256M -Xms512m -Xmx2048m or whatever you/pingperfect uses.
  • and try to get rid of the warnings and errors.
Edited by Sklo:D

Share this post


Link to post
Share on other sites

Ok so we spoke to Ping Perfect, and this is what they gave us.

 

-Xmn256M -Xms1024m -Xmx12288m

 

Valiance and Kaylie.

 

Share this post


Link to post
Share on other sites
17 minutes ago, Wulfrock said:

Ok so we spoke to Ping Perfect, and this is what they gave us.

 

-Xmn256M -Xms1024m -Xmx12288m

 

Valiance and Kaylie.

 

 

Well normally the memory in use should be closer to 1024 than to 12288, which is not the case on your server.

This parameters support my arguments, the initial heap size is 1024MB, some process of the WU server is eating up more than 11GB in the first few seconds after booting. That this happens in a normal procedure is very unlikely there is some kind of error going on.

 

Here is what we get on Novus which is a far bigger server with a lot lot lot more players.

[21:28:17] The server has been up 10 days, 11 hours and 36 minutes.

INFO: current mem in use: 7282M free mem: 3037M Max mem: 7967M
player count: 181

NO Lags
 

Share this post


Link to post
Share on other sites

Ok, we will pas this info onto Ping Perfect today. Our server has no lag either, just runs out of memory.

 

Thanks.

 

Valiance and Kaylie.

 

Share this post


Link to post
Share on other sites
3 hours ago, Wulfrock said:

Ok, we will pas this info onto Ping Perfect today. Our server has no lag either, just runs out of memory.

 

Thanks.

 

Valiance and Kaylie.

 

 

So does a java.lang.OutOfMemoryError exception appear?

Share this post


Link to post
Share on other sites

No there was no Out of Memory error, server simply shuts down due to us overusing our allotted amount of RAM we have at Ping Perfect.

 

Valiance and Kaylie.

 

Share this post


Link to post
Share on other sites
3 minutes ago, Wulfrock said:

No there was no Out of Memory error, server simply shuts down due to us overusing our allotted amount of RAM we have at Ping Perfect.

 

Valiance and Kaylie.

 

 

Bear in mind that it could be a problem in their system too. Try to start a backup of your server on non ping perfect machine, for example a server or PC you own yourself, because only then you can make sure that their system is not lying.

 

Have you been able to get rid of the warnings???

Edited by Sklo:D

Share this post


Link to post
Share on other sites

It does not eat all the memory right away, it leaks over time, 3 days it leaks for until its all gone.

 

Valiance and Kaylie.

 

Share this post


Link to post
Share on other sites
3 minutes ago, Wulfrock said:

It does not eat all the memory right away, it leaks over time, 3 days it leaks for until its all gone.

 

Valiance and Kaylie.

 

 

According to the logs you provided it eats most of the memory straight away, I mean it uses 12GB after 5 minutes. Sklotopolis is a lot bigger and only consumes about 7GB after 10 days.

Still better to make sure and test it on one of your servers, there is no problem with WU so you are on your own to fix this, plus it also could be pingperfects fault as mentioned above.

Edited by Sklo:D

Share this post


Link to post
Share on other sites

Later this evening we are going to totally re-install the test server again to basic vanilla, then will watch the memory and see.

 

Valiance and Kaylie.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this