• MineCraft Memory Allocation Help please!
    4 replies, posted
Hi, I'm having problems with allocating memory in MineCraft. I was wondering if someone could explain how minimum and maximum memory works in the mine craft command line works? Currently: -Xmx4608M -Xms4096M -jar craftbukkit.jar nogui This is to give the server 4.5 GB of memory. Although as the servers goes on with the same amount of players it builds up more and more RAM, It is currently on 3.51 GB with 20 players. But 10 mins ago it was on 2.51 GB with the same players. Its building up more and more as I speak and I am wondering if this is standard? Does it just build up and dump? and then repeat And whats the best command line to use to the server uses minimal memory with low players or on idle and doesn't go over the max when all players are on? I'd really appreciate any help! Thanks!
[QUOTE=christopher88;34620856]Hi, I'm having problems with allocating memory in MineCraft. I was wondering if someone could explain how minimum and maximum memory works in the mine craft command line works? Currently: -Xmx4608M -Xms4096M -jar craftbukkit.jar nogui This is to give the server 4.5 GB of memory. Although as the servers goes on with the same amount of players it builds up more and more RAM, It is currently on 3.51 GB with 20 players. But 10 mins ago it was on 2.51 GB with the same players. Its building up more and more as I speak and I am wondering if this is standard? Does it just build up and dump? and then repeat And whats the best command line to use to the server uses minimal memory with low players or on idle and doesn't go over the max when all players are on? I'd really appreciate any help! Thanks![/QUOTE] From the command line you posted, I'm assuming you're using CraftBukkit. Memory usage with CraftBukkit is usually an issue with plugins. If you are experiencing large amounts of increasing RAM usage, a plugin or mod most likely has a memory leak. Try removing all your plugins and adding them back one by one until it happens again so you ca n isolate the problem.
Thanks mate ill do this :) And anyone can explain min and max? and the best way to set them?
It has alot to do with the server's processing capacity as well, if it's a good processor you've got in your server it can usually handle garbage collection much better, which would mean it would clean up memory its not actually using much faster, which is probably whats happening here.
[QUOTE=christopher88;34621396]Thanks mate ill do this :) And anyone can explain min and max? and the best way to set them?[/QUOTE] Just set them both to the same size.
Sorry, you need to Log In to post a reply to this thread.