- Apr 26, 2003
- 2,239
- 6
- 81
Ive been using Linux for years, and have been administering a couple of my own Minecraft servers now for over a year. They are all working, im not concerned too much on Minecraft itself but rather why the server seems to always have a significant load on it. This is CentOS 5.6. I'm wondering if it is because there is an open session on the server now to run one server in an active terminal window rather than in the background like a service.
Basically there are two Minecraft servers running on the same system, one runs as as service since it is just a basic server i was able to do that. The other is a modded server that needs to be kicked off from a script in a terminal window. Each runs on its own port, and both run just fine, BUT, even when NO ONE is playing on EITHER server, the box sits at a load of between 0.25 and 0.85. Most often i see it around 0.38 or 0.42, somewhere in there, the range given before are the extremes i have seen while sitting idle. I expect there to be a MINOR load on it since its sitting in an active session with windows open, but I didnt expect it to exceed around 0.10 for something like that.
if i look at top, i see the following
Obviously i expect to see java sitting near the top but its only using about 2.5% in one instance, and 1.5 or so (showing 2.7 and 1.7 respectively in this capture). As i understand load averages, the three numbers are 1 minute, 5 minute and 15 minute averages, and 1.00 represents one pegged processor core. This is a dual core machine so 2.00+ would be 100%, which means to me that 0.50 would be about a 25% load, give or take. Except the top processes really are only using 4% - 5% cpu. Where is all the rest of the load coming from?
Is there some techniques or tools I can use that only being a low intermediate linux user i may not know about that will show me a better representation of where my load is coming from. I use the System monitor in the actual session and i see more like what I'd expect to see with those loads, one core at 15% - 20% and the other core at 1% - 6% or so.
If I stop both instances of the Minecraft server i see no difference in load. It is very odd and its making me feel like maybe someones compromised it and is using it for something else. Maybe that's just my paranoia, though I did disabled my incoming ssh and RDP rules that I had in place for ease of access to my servers. i plan on putting in a VPN solution now.
I just remember when I first loaded up the server and was hosting these servers for my friends, the loads were very often less than 0.05, and often times all three figures were 0.00 when i logged in and checked top via ssh.
Any suggestions or things to look for, ideas or concerns voiced will be appreciated. Thanks.
Basically there are two Minecraft servers running on the same system, one runs as as service since it is just a basic server i was able to do that. The other is a modded server that needs to be kicked off from a script in a terminal window. Each runs on its own port, and both run just fine, BUT, even when NO ONE is playing on EITHER server, the box sits at a load of between 0.25 and 0.85. Most often i see it around 0.38 or 0.42, somewhere in there, the range given before are the extremes i have seen while sitting idle. I expect there to be a MINOR load on it since its sitting in an active session with windows open, but I didnt expect it to exceed around 0.10 for something like that.
if i look at top, i see the following
Code:
top - 14:57:34 up 14 days, 23:10, 3 users, load average: 0.54, 0.41, 0.37
Tasks: 146 total, 1 running, 145 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.8%us, 0.3%sy, 0.0%ni, 94.9%id, 3.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1554812k total, 1495300k used, 59512k free, 125800k buffers
Swap: 1048568k total, 678356k used, 370212k free, 211956k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3579 root 18 0 1332m 940m 3652 S 2.7 61.9 411:51.24 java
4009 root 19 0 1231m 54m 3492 S 1.7 3.6 518:10.34 java
17545 root 15 0 10100 2960 2392 S 0.3 0.2 0:01.00 sshd
17573 root 15 0 2428 1060 800 R 0.3 0.1 0:09.04 top
1 root 15 0 2160 576 552 S 0.0 0.0 0:03.33 init
2 root RT -5 0 0 0 S 0.0 0.0 0:00.94 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.11 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.73 migration/1
5 root 34 19 0 0 0 S 0.0 0.0 0:00.02 ksoftirqd/1
6 root 10 -5 0 0 0 S 0.0 0.0 0:00.30 events/0
7 root 10 -5 0 0 0 S 0.0 0.0 0:00.18 events/1
8 root 10 -5 0 0 0 S 0.0 0.0 0:00.31 khelper
9 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread
13 root 10 -5 0 0 0 S 0.0 0.0 0:00.32 kblockd/0
Obviously i expect to see java sitting near the top but its only using about 2.5% in one instance, and 1.5 or so (showing 2.7 and 1.7 respectively in this capture). As i understand load averages, the three numbers are 1 minute, 5 minute and 15 minute averages, and 1.00 represents one pegged processor core. This is a dual core machine so 2.00+ would be 100%, which means to me that 0.50 would be about a 25% load, give or take. Except the top processes really are only using 4% - 5% cpu. Where is all the rest of the load coming from?
Is there some techniques or tools I can use that only being a low intermediate linux user i may not know about that will show me a better representation of where my load is coming from. I use the System monitor in the actual session and i see more like what I'd expect to see with those loads, one core at 15% - 20% and the other core at 1% - 6% or so.
If I stop both instances of the Minecraft server i see no difference in load. It is very odd and its making me feel like maybe someones compromised it and is using it for something else. Maybe that's just my paranoia, though I did disabled my incoming ssh and RDP rules that I had in place for ease of access to my servers. i plan on putting in a VPN solution now.
I just remember when I first loaded up the server and was hosting these servers for my friends, the loads were very often less than 0.05, and often times all three figures were 0.00 when i logged in and checked top via ssh.
Any suggestions or things to look for, ideas or concerns voiced will be appreciated. Thanks.
Last edited: