Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Minecraft server?
PostPosted: Tue Sep 13, 2011 4:13 pm 
Offline
Senior Newbie

Joined: Tue Sep 13, 2011 4:06 pm
Posts: 5
Website: http://zlstudios.net
Location: Lincoln, Nebraska
I'm planning to start up a Minecraft server with McMyAdmin and Minecraft 1.8. I'll probably have up to 16 players on at a single time.

I don't know if it would be better to upgrade my current Linode 512 to a Linode 2048 so I have 1GB of RAM for the Minecraft server and 1GB for my WordPress blogs and the operating system.

Or if I should order a Linode 512 for my WordPress blogs and all that and then get a separate Linode 1536 for the Minecraft server.

I've only had experience with having my own Minecraft server hosted on a spare computer. So I'm hoping that one of you has more experience and can give me some tips for setting up a Linode Minecraft server.


Top
   
 Post subject:
PostPosted: Tue Sep 13, 2011 4:53 pm 
Offline
Senior Member

Joined: Wed Apr 11, 2007 8:23 pm
Posts: 76
I run the following off my 512:

Apache/PHP/MySQL
Ventrilo
Mumble
4 BNCs
Munin
Minecraft Server

I don't know if map size is more important or if number of players are, but my single "world" folder is 115MB. I _USUALLY_ have 0-4 players on at a time. A few times I've had 7-8 concurrent users.

My startup command

Code:
screen -A -m -d -S minecraft java -Xmx164M -Xms164M -jar minecraft_server.jar nogui


The Minecraft docs recommend 1024M for the min/max memory allocation. Any less than 164M with my setup seems to crash the server with Out Of Memory errors. I've had it up at 196M for a while without a problem and I've been slowly lowering it. This seems to be a good point for my setup. A minecraft server will always crash if you "stress" it by blowing up 1000s of blocks of TNT or something. If you have a bunch of people working normally and blowing up TNT here and there you should be fine.

If you run the server with this little ram you get

Code:
[WARNING] Can't keep up! Did the system time change, or is the server overloaded?


in the console all the time. It doesn't seem to cause any harm or degrade performance though.

I guess the bottom line is this: You don't need 1GB like the docs say. You could probably get away with running it on the same Linode as your blog. I'd start there and see if web performance degrades or if you have issues with the Minecraft server. Use top/htop to monitor memory usage. If you find you can't run them both at the same time you can either upgrade to a 1024 and increase the Minecraft memory to 512M, or just get a second 512 and play around with the memory limits. I would probably recommend getting a 1024 and running both at the same time, again monitoring usage with top/htop and checking reliability. If that still doesn't seem to be enough then go with a 1536 for both. I wouldn't separate them unless you need to.

Edit:

Hints that your Minecraft server needs more resources are Out Of Memory crashes in the console and blocks reappearing right after they're destroyed.

It's also worth noting my htop currently shows:
Mem: 261/469MB
Swp: 145/255MB

I'm not thrashing though so I assume that's just the kernel putting stuff that doesn't get used into swap to free up RAM. Also I'd like to point out that MySQL isn't optimized on my system. Minecraft currently has ~12 processing and is using "29.9%" of my RAM, which I assume includes swap.


Top
   
 Post subject:
PostPosted: Tue Sep 13, 2011 4:59 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
I'd go for the two separate Linodes. Minecraft is largely memory hungry rather than CPU, but this is probably a good case for separation of responsibility, plus odds are on average you'll have more available non-memory resources (disk I/O and CPU) among the two Linodes than a single larger Linode (though the guaranteed level may be a bit lower).

I actually run a small private Minecraft server on a Linode 512 for my nephew (maybe 3-4 simultaneous users, and nothing else on the Linode), so that's doable for small numbers of clients, but I monitor its memory use and restart occasionally to reclaim what seems to be growth spikes from slower connected users or if it gets close to swapping. As it starts to peak it ends up eating up 400+MB so I'm not sure I'd want anything else on the Linode.

At one point I was going to drop the Java runtime space to fit, but it complains loudly if you don't have it set to at least 1GB, so I ended up leaving it and monitoring since I figured going into swap and slowing down was better than potentially dying hard if the runtime ran out of memory. In the end though I've never really let it run into swap.

I mention that mostly since on the Minecraft Linode side you might start with a 1024 and monitor to see how the memory usage goes - you might not need anything larger.

-- David


Top
   
 Post subject:
PostPosted: Tue Sep 13, 2011 5:01 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
+1 for two Linodes. If you're going to have two things with annoying memory tendencies, you might as well isolate them so you know which one just exploded.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Tue Sep 13, 2011 5:17 pm 
Offline
Senior Newbie

Joined: Tue Sep 13, 2011 4:06 pm
Posts: 5
Website: http://zlstudios.net
Location: Lincoln, Nebraska
Smark wrote:
I run the following off my 512:

Apache/PHP/MySQL
Ventrilo
Mumble
4 BNCs
Munin
Minecraft Server

I don't know if map size is more important or if number of players are, but my single "world" folder is 115MB. I _USUALLY_ have 0-4 players on at a time. A few times I've had 7-8 concurrent users.

My startup command

Code:
screen -A -m -d -S minecraft java -Xmx164M -Xms164M -jar minecraft_server.jar nogui


The Minecraft docs recommend 1024M for the min/max memory allocation. Any less than 164M with my setup seems to crash the server with Out Of Memory errors. I've had it up at 196M for a while without a problem and I've been slowly lowering it. This seems to be a good point for my setup. A minecraft server will always crash if you "stress" it by blowing up 1000s of blocks of TNT or something. If you have a bunch of people working normally and blowing up TNT here and there you should be fine.

If you run the server with this little ram you get

Code:
[WARNING] Can't keep up! Did the system time change, or is the server overloaded?


in the console all the time. It doesn't seem to cause any harm or degrade performance though.

I guess the bottom line is this: You don't need 1GB like the docs say. You could probably get away with running it on the same Linode as your blog. I'd start there and see if web performance degrades or if you have issues with the Minecraft server. Use top/htop to monitor memory usage. If you find you can't run them both at the same time you can either upgrade to a 1024 and increase the Minecraft memory to 512M, or just get a second 512 and play around with the memory limits. I would probably recommend getting a 1024 and running both at the same time, again monitoring usage with top/htop and checking reliability. If that still doesn't seem to be enough then go with a 1536 for both. I wouldn't separate them unless you need to.

Edit:

Hints that your Minecraft server needs more resources are Out Of Memory crashes in the console and blocks reappearing right after they're destroyed.

It's also worth noting my htop currently shows:
Mem: 261/469MB
Swp: 145/255MB

I'm not thrashing though so I assume that's just the kernel putting stuff that doesn't get used into swap to free up RAM. Also I'd like to point out that MySQL isn't optimized on my system. Minecraft currently has ~12 processing and is using "29.9%" of my RAM, which I assume includes swap.


Interesting. If I remember correctly McMyAdmin said I was using about 400MB of average before. And the system only says it can't keep up when I'm flying really fast or doing something like that.

I think I'll use your tip and not get a really big Linode for Minecraft. Instead maybe I'll just get a 768MB Linode and use that, and upgrade to 1GB or higher if needed. And use a separate 512MB Linode for my blog since the blog is pretty critical as in if it goes down or doesn't have enough resources I'll be in trouble.


Top
   
 Post subject:
PostPosted: Tue Sep 13, 2011 6:00 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Even apart from the reliability standpoint, back when I used to run FPS servers (or manage them) and was in a clan, the recommendation was never to run your server and website on the same box. Activity on the website (particularly users downloading maps if you had HTTP downloads configured) could potentially cause hitching on the game server due to IO and CPU spikes. Of course, this is less relevant on modern machines that have more than one CPU (since we were all on single-core P4s and Celerons back then) like a linode (which has four).


Top
   
 Post subject: Re: Minecraft server?
PostPosted: Fri Aug 30, 2013 5:53 pm 
Offline
Senior Member
User avatar

Joined: Wed Jun 26, 2013 1:53 am
Posts: 118
How much RAM do you think it will use with 0-4 players?

I have a 1GB with memory usage at 47%.

_________________
Homepage www.sturmkrieg.com
Social network Gamernet
Development website Sashaweb Development
Imageboard img.sturmkrieg.com
WikiHub free wiki host Community Wiki


Top
   
 Post subject: Re: Minecraft server?
PostPosted: Fri Aug 30, 2013 8:35 pm 
Offline
Senior Member

Joined: Mon Aug 31, 2009 2:33 pm
Posts: 78
Location: The OC
Inquisitor Sasha wrote:
How much RAM do you think it will use with 0-4 players?

I have a 1GB with memory usage at 47%.


Holy thread resurrection, Batman!

It will probably be laggy with half a gig and 4 players. It will run, but the experience won't be good.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: SpinThis! and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group