This seems to be a known issue when I do a search but I can never find a proper answer. My server has 6GB of ram of which it is barely using any, and is a Quad Xeon HT. Every time I try to run a MC server I run into this, a brand new map is ok, but as it grows it just gets more and more laggy until a point where I have to start over.
Here is a screenshot with some details that might help:
The other app running on that server is an Ultima Online server that is barely using any resources. But I've had this issue on many other machines, even dedicated servers instead of VMs.
If it matters the disk infrastructure is a NFS share to a raid 10 array. How intensive is a MC server as far as disk I/O goes? Should I run it off a ram drive?
Not sure what you mean but I keep seeing references to that when searching as well, where do I put those startup strings? I just have a shortcut to the exe in the startup folder. Is it arguments I have to pass to the exe?
Anyone? Based on my search this is a common issue yet it only seems to affect certain people, and there never seems to be a solution, why is that? What are the required specs for a Minecraft server, is quad Xeon with 6GB of ram simply underpowered? How much ram should I allocate? I have 32GB total on the host but need it for other VMs as well, but I can bump it up a bit higher if I need to.
If any details are needed I can provide them, though it's a fairly simple setup, vanilla server (no mods) running on a VMware VM with specs shown in screenshot. I do not have any bare metal hardware to dedicate to it so hopefully VM is supported.
Is the protocol for Minecraft well documented and open source, is it legal to make a server from scratch or would it be a copyright issue? Would make for an interesting project to make a C++ minecraft server that takes advantage of multithreading, as I don't think the current one does.
Just because you have 6GB of ram doesn't mean MC is using it, you have to specify how much of it you want to use. Also from my experiences so far, the can't keep up is usually harddrive related not CPU or RAM. Especially for vanilla servers.
I'm not overly familiar with running a server with the exe, however if you look at the wiki and how to use the .jar I believe you can add the arguments to the shortcut you use. In the shortcut properties, in the target box, after the quotes.
MC is probably more IO intensive than anything else. I'm running a server on a celeron and 4GBs of ram with no lag, but it's on a SSD drive.
If you would post a paste bin of your start up script (if you use windows the start.bat file) we could see how you have configured your server and help you tweak it
If you would post a paste bin of your start up script (if you use windows the start.bat file) we could see how you have configured your server and help you tweak it
I believe that's the issue, he's not using a bat file, he's just opening the exe and running with it.
I'm not 100% sure if it will work or not since I don't use the exe but at the end of the target bot add: -Xmx1024M (change the 1024 to however many MB of ram you want it to try and use.) If that doesn't work, I suggest looking up how to start a MC server using the .jar file. You can use the jar even on windows, just need to create a bat file to run it. There are plenty of tutorials on how to do it.
Oh ok I thought you had to use the exe for Windows. Come to think of it, knowing that it can run in Linux I might just look into setting it up on one of the Linux VMs or setting up a dedicated one. Which platform is considered native, ex: which is it better on typically? I already have a CentOS VM on my internet facing vlan so I can probably just run it on there. If disk I/O ends up being a problem it's super easy to setup a ram drive in Linux as well and I could script it so that it automatically creates/loads it at startup and then have a shut down script that copies it over to non volatile storage.
Good to know that it's I/O intense, I am actually dealing with a disk I/O issue in my server environment so that might be contributing to the problem. But I'll try the jar method first when I get the chance and see how that goes.
This seems to be a known issue when I do a search but I can never find a proper answer. My server has 6GB of ram of which it is barely using any, and is a Quad Xeon HT. Every time I try to run a MC server I run into this, a brand new map is ok, but as it grows it just gets more and more laggy until a point where I have to start over.
Here is a screenshot with some details that might help:
The other app running on that server is an Ultima Online server that is barely using any resources. But I've had this issue on many other machines, even dedicated servers instead of VMs.
If it matters the disk infrastructure is a NFS share to a raid 10 array. How intensive is a MC server as far as disk I/O goes? Should I run it off a ram drive?
Could you post your start up script?
Not sure what you mean but I keep seeing references to that when searching as well, where do I put those startup strings? I just have a shortcut to the exe in the startup folder. Is it arguments I have to pass to the exe?
Anyone? Based on my search this is a common issue yet it only seems to affect certain people, and there never seems to be a solution, why is that? What are the required specs for a Minecraft server, is quad Xeon with 6GB of ram simply underpowered? How much ram should I allocate? I have 32GB total on the host but need it for other VMs as well, but I can bump it up a bit higher if I need to.
If any details are needed I can provide them, though it's a fairly simple setup, vanilla server (no mods) running on a VMware VM with specs shown in screenshot. I do not have any bare metal hardware to dedicate to it so hopefully VM is supported.
Is the protocol for Minecraft well documented and open source, is it legal to make a server from scratch or would it be a copyright issue? Would make for an interesting project to make a C++ minecraft server that takes advantage of multithreading, as I don't think the current one does.
Just because you have 6GB of ram doesn't mean MC is using it, you have to specify how much of it you want to use. Also from my experiences so far, the can't keep up is usually harddrive related not CPU or RAM. Especially for vanilla servers.
How do I tell it to use more ram? I was kind of suspecting that was maybe part of the issue, that it was not actually using it.
How IO intensive is the server, would having it stored on NFS be an issue?
I'm not overly familiar with running a server with the exe, however if you look at the wiki and how to use the .jar I believe you can add the arguments to the shortcut you use. In the shortcut properties, in the target box, after the quotes.
MC is probably more IO intensive than anything else. I'm running a server on a celeron and 4GBs of ram with no lag, but it's on a SSD drive.
If you would post a paste bin of your start up script (if you use windows the start.bat file) we could see how you have configured your server and help you tweak it
I believe that's the issue, he's not using a bat file, he's just opening the exe and running with it.
Is it suppose to be done another way? The download is just a single exe file. Is there parameters that it takes to tweak it? This is all I have:
I'm not 100% sure if it will work or not since I don't use the exe but at the end of the target bot add: -Xmx1024M (change the 1024 to however many MB of ram you want it to try and use.) If that doesn't work, I suggest looking up how to start a MC server using the .jar file. You can use the jar even on windows, just need to create a bat file to run it. There are plenty of tutorials on how to do it.
the exe version tends to be buggy use the .jar version it is more stable and take a look at this thread http://www.minecraftforum.net/forums/archive/alpha/alpha-survival-multiplayer/823328-making-your-server-lag-less-by-tuning-java and take a look here as well http://minecraft.gamepedia.com/Tutorials/Setting_up_a_server
Oh ok I thought you had to use the exe for Windows. Come to think of it, knowing that it can run in Linux I might just look into setting it up on one of the Linux VMs or setting up a dedicated one. Which platform is considered native, ex: which is it better on typically? I already have a CentOS VM on my internet facing vlan so I can probably just run it on there. If disk I/O ends up being a problem it's super easy to setup a ram drive in Linux as well and I could script it so that it automatically creates/loads it at startup and then have a shut down script that copies it over to non volatile storage.
your cenos vm should be fine but servers are disk intensive just make sure your start up script matches the vm and server type
Good to know that it's I/O intense, I am actually dealing with a disk I/O issue in my server environment so that might be contributing to the problem. But I'll try the jar method first when I get the chance and see how that goes.