Jump to content

Minecraft servers keep using more and more memory


Dennis

Recommended Posts

Hi

 

We encountered a pretty big problem. When creating a Minecraft server, the server keeps using more and more memory, until it finally restarts. I think there's some sort of memory leak somewhere, but I'm not sure. We setup a vanilla 1.6 Minecraft server some hours ago and we've been playing on it for some time. When we disconnected, I saw that the memory percent was at 111.85% (1.12 GB). 30 minutes later it's still the same (it should've gone down, I think).

 

Does anyone have some advice?

 

Best regards,

Dennis

 

And by the way: When using /lag or /gc command, it shows that there's a lot more free memory than TCAdmin says. I don't know if this is a bug within TCAdmin or just a bug in Minecraft. And the percent just went up with about 0.02%

And another 0.02%... Nobody's playing on it. It's weird.

Link to comment
Share on other sites

I have the 110-115% bug as well.

The commandline is on 1024, so I wonder where this comes from.

 

I do know that, the more you explore of the world in minecraft, the more RAM it will use. the entire world will be in the memory. and Java has never been one to give RAM back.

Link to comment
Share on other sites

I just find it quite weird that xmx and xms are set to 1024M both. In TCAdmin I've configured the services to restart when using more than 115% memory - shouldn't java know that the max memory was 1024Mb?

Link to comment
Share on other sites

I'd bump that restart script up just a few more percent. Every Minecraft service I've ever ran has used and reported more than 100% usage. It never has run out of control though.

A few percent higher on the config and you will see it stop going up (118%-120% i think is where mine like to stop) and it will no longer restart on you.

Link to comment
Share on other sites

Well, we have 8 and 10Gb RAM servers. As it is now, the 10Gb RAM servers can use more than 11Gb RAM. For every new gb you order, the price gets lower pr. gb, and if we were to raise max usage to 120%, we can't sell as much (due to we don't want to overfill the dedies and every server are allowed to use 120% RAM - less space for servers) ... Well, we want to be able to pay for the dedi servers that we have (none of us are getting any money from this - it's all just a hobby).

Link to comment
Share on other sites

I just saw that it's not happening on all of our servers. All the services on our Windows servers seems to figure out that they shouldn't use 100% memory when idling.

Is there any way to see if there's a memory leak?

 

 

EDIT:

Not so sure about this one.

Link to comment
Share on other sites

  • 3 weeks later...

Look at this:

0C8o1aB.png

 

This is a 100% vanilla server. There's 1 or 2 players online at the same time as a MAXIMUM. The server just keeps using more and more memory, til it finally reach the limit and restarts.

I'm rather sure that a Minecraft server with 1GB memory should be able to handle 1 player. This is a little weird.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 20 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use