Minecraft process killed on VDS

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
MarS
A semi-regular
A semi-regular
Posts: 26
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Jan 16, 2011 2:48 am

Re: Minecraft process killed on VDS

Post by MarS »

just a heads up... this right here solved all of my problems lol http://forums.bukkit.org/threads/server ... post-23894
it restarts my server every 4 hours and performs a save-all every 15 minutes which unloads unused terrain chunks from the server and frees up memory (i actually get messages in the console now saying how much memory is released every time), and the automatic restarts which take literally 3 seconds keep the server in tip-top shape. It also restarts a crashed server. It really makes it launch and forget. Definitely a must for anyone experiencing these kinds of issues :)
MarS
A semi-regular
A semi-regular
Posts: 26
Joined: Sun Jan 16, 2011 2:48 am

Re: Minecraft process killed on VDS

Post by MarS »

now my bottleneck is cpu D: its constantly fluctuating between 90% and 110% usage :/ what kind of clock speeds are these cores running if i may ask?
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Minecraft process killed on VDS

Post by Edge100x »

In Linux, you can see the CPU type and speed with:

cat /proc/cpuinfo

Pretty much any clock speed of the latest generation of processor beats any clock speed of older generations, so be careful if you're looking at just the number, as it can be misleading. We use only Nehalem+ processors here, and they're crazy fast :).

Minecraft is fairly unpredictable when it comes to CPU, but explosions classically use a lot of it, as does loading/creating new world chunks. Aggressive garbage collection (as some of these optimizations do) might also lead to higher-than-normal usage.
MarS
A semi-regular
A semi-regular
Posts: 26
Joined: Sun Jan 16, 2011 2:48 am

Re: Minecraft process killed on VDS

Post by MarS »

Server has a hard time keeping up with around 15 players :/ the cpu is locked at 120% most of the time, is that normal?
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Minecraft process killed on VDS

Post by Edge100x »

I don't have enough experience with Minecraft personally to know exactly what's normal, but I do know that Minecraft is very piggy with memory, and when it doesn't have enough memory, it has to use a lot more CPU power. I would think that 2500 MB would be enough, but there might be something else going on, as well, such as an issue with an add-on or abusive user.
MarS
A semi-regular
A semi-regular
Posts: 26
Joined: Sun Jan 16, 2011 2:48 am

Re: Minecraft process killed on VDS

Post by MarS »

another upgrade, and now it performs even worse at the new location. No matter how much ram i throw at it, it still lags, and ram doesnt even go past 50% usage anymore after hours running. I read somewhere that customized kernels are sometimes configured in a way that interferes with minecraft, could this be the case? Or maybe slow I/O speeds? Last i checked i was getting like 35 mb/s
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Minecraft process killed on VDS

Post by Edge100x »

You are welcome to try any custom kernel that you would like, or a different version of Java -- on an unmanaged VDS, the sky's the limit for software options :).

35 MB/sec with small files would be a very good speed of I/O, but you could always factor that out by using a ramdisk.

You might also try MineOS: http://www.minecraftforum.net/viewtopic ... 0&t=115788. If it's not already in the ISO drop-down on your VDS, we can add it for you.

I don't yet have direct experience with optimizing Minecraft.
Post Reply