Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri May 20, 2011 7:41 am 
Offline
Senior Newbie

Joined: Fri May 20, 2011 7:34 am
Posts: 9
Hello.
I am very new to Linux.

I was planning on installing a Game Server (Minecraft Server). I would like to know if i install a Apache Web Server with MYSQL for my WordPress and MyBB Forum. Will the game server lag? I heard that it wouldn't lag if you install it properly. But how do i know that i installed it properly? Do you recommenced me installing the web server?


Top
   
 Post subject:
PostPosted: Fri May 20, 2011 9:31 am 
Offline
Senior Newbie

Joined: Tue Dec 14, 2010 10:30 am
Posts: 16
Quick question..

How much memory are you going to sink into this thing?

If I remember correctly, the footprint of a Minecraft server is humongous!


Top
   
 Post subject:
PostPosted: Fri May 20, 2011 9:36 am 
Offline
Senior Newbie

Joined: Fri May 20, 2011 7:34 am
Posts: 9
Wow Thanks for replying!

im currently using linode 1 GB plan


Top
   
 Post subject:
PostPosted: Fri May 20, 2011 9:48 am 
Offline
Senior Newbie

Joined: Tue Dec 14, 2010 10:30 am
Posts: 16
Ah :)

Well, as long as you ensure that the Minecraft server isn't set to consume all the memory, you should be fine.

Let's say you limit it to 60-80% memory consumption, and tweak the apache/mysql config to utilize the rest.

You can probably find a bunch of info on this in the Linode Library.

I'm guessing all of these applications will largely be memory bound, so you should just make sure that you're not constantly swapping.


Top
   
 Post subject:
PostPosted: Fri May 20, 2011 9:49 am 
Offline
Senior Newbie

Joined: Fri May 20, 2011 7:34 am
Posts: 9
well that was useful, but how do we set up the memory?


Top
   
 Post subject:
PostPosted: Fri May 20, 2011 9:51 am 
Offline
Senior Newbie

Joined: Tue Dec 14, 2010 10:30 am
Posts: 16
seaarmy wrote:
well that was useful, but how do we set up the memory?


When it comes to Minecraft, you should probably look into something like this.

The webserver part can be a bit complex, so I really recommend you read the article for the proper distro in the linode library.


Top
   
 Post subject:
PostPosted: Fri May 20, 2011 10:04 am 
Offline
Senior Newbie

Joined: Fri May 20, 2011 7:34 am
Posts: 9
as read in some forum and Linode Support. They said you will have to install it properly in order to make it run well. or eat less ram. is that true? how do i know it installed properly?


Top
   
 Post subject:
PostPosted: Fri May 20, 2011 12:43 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
seaarmy wrote:
as read in some forum and Linode Support. They said you will have to install it properly in order to make it run well. or eat less ram. is that true? how do i know it installed properly?

If you don't have at least 1GB free to assign to the Java interpreter it runs under (which means a Linode larger than 1024), you can restrict Minecraft's java environment memory options (e.g., lower the -Xmx maximum memory option). You'll definitely want to ensure that the minimum memory (-Xms) leaves enough room for everything else on the box. The server will warn if the maximum is configured less than 1GB, but in my experience it doesn't absolutely need all of it. Though making that too small risks a catastrophic failure if the interpreter runs out, while having it higher than your Linode can provide risks swapping and performance of the entire machine tanking. Pick your poison :-)

The actual installation is pretty trivial, but also very manual. Stick the jar somewhere and run it, plus any config tweaks like white-listing your players. All configuration is through text files you edit. If you're on a Debian-based distribution, there's a useful init.d module on the Wiki (http://www.minecraftwiki.net/wiki/Server_startup_script) that lets it integrate nicely, takes care of various Java options (you'll still need to tweak -Xms and/or -Xmx as above), runs it under screen so you can get at the console, and supports a backup option you can trigger through a periodic cron job to save the current server jar and world.

I'm actually running a Minecraft server on a Linode 512 (just for a nephew and a handful of friends, no more than 3 simultaneous sessions) and it does work, but the machine is doing virtually nothing else, and requires babysitting since sometimes the memory spikes and I need to restart it - the Minecraft server, not the machine - to bring it back under control. In my case I've left the Java memory size at 1GB and just monitor actual usage. Typical memory usage is probably in the 300-400MB range for a decently complex world. Looking at the clients, I think the memory spikes seem related to buffering requirements going up heavily when you have long latency or lossy client sessions. It doesn't really seem to be dependent on world size. I only have 3 simultaneous clients, so expect it might be worse with more. I've read some comments about the protocol in use being, shall we say, somewhat flawed and simplistic.

So definitely don't take the memory requirements lightly, especially if you want to do anything else on the same box. Since you want some other big users (blog/forum/database) on the same node I wouldn't even think of anything less than a Linode 1024 and that's probably not big enough if you want this to be "set it and forget it." If you were able, you could monitor for a while to decide. But if you're looking for more certainty, go bigger. Or perhaps better, put the Minecraft server on a separate Linode so even if it burps or spikes memory usage, it won't run into your other services.

-- David


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


Who is online

Users browsing this forum: No registered users 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