Hello. I host a server that my friend and I play on, and we notice a lot of TPS lag. Even when there are 20 or so hostile mobs the server starts to lag a lot. Mind you that we both have decent computers and usually get around 150-250 FPS, so we're not confusing the two. I also have 6 gigabytes allocated to the server, and one to Minecraft. I used to have 3 allocated to Minecraft, but I bumped it down to 1 to see if it made any difference.. It didn't. I have my computer specs in an image here for you to check them out and see if there is any hope. The computer is also running Windows 10 with the latest version of Java if that helps at all. I also tried adding additional Java parameters to the .bat file where I start the server. If they helped, the increase was negligible because I didn't notice a thing. I have the parameters linked in an image, as well. I'm not sure if these parameters would help in the first place, but this is what I found online so I thought I would give it a try. I also wanted to say that I'm not too good with "server stuff" or anything like that, so please bear with me.
The Meaning of Life, the Universe, and Everything.
Join Date:
10/12/2016
Posts:
63
Minecraft:
-Revive_
Member Details
Where it says -Xms5G -Xmx6G
I would change it to -Xms2G -Xmx6G
I was told the s means how much its allowed to start up and how much its allowed to dump error files.
since you only have 8GB on your computer: you are create alot of lag because you have to keep in mind that windows need regular amount of ram to keep it running. I would say on idle windows takes about close to 1GB
Now you are down to 7. Your game itself shouldn't need more than 3GB (not the server) if you are playing basic not modded minecraft (if with mods, 3GB should be good enough).
For server wise, its wise to have alot of ram so it doesn't lag but you have to factor in how much you have left useable on your computer.
If it was an actual server, you are allowed to use all 8GB. But this is hosted on your own computer.
-Try the first step i mentioned above and than change numbers around to see if that helps. If anything just turn off monsters or reduce the spawning rate.
I was told the s means how much its allowed to start up and how much its allowed to dump error files.
since you only have 8GB on your computer: you are create alot of lag because you have to keep in mind that windows need regular amount of ram to keep it running. I would say on idle windows takes about close to 1GB
Now you are down to 7. Your game itself shouldn't need more than 3GB (not the server) if you are playing basic not modded minecraft (if with mods, 3GB should be good enough).
For server wise, its wise to have alot of ram so it doesn't lag but you have to factor in how much you have left useable on your computer.
If it was an actual server, you are allowed to use all 8GB. But this is hosted on your own computer.
-Try the first step i mentioned above and than change numbers around to see if that helps. If anything just turn off monsters or reduce the spawning rate.
Thanks for the reply! I just changed the Xms argument to 2G, and I'm currently seeing how it's going.
EDIT: After testing, I have not noticed much difference at all... Would there be any other tricks or parameters I could use?
Yes, I understand this, but I don't want to buy a server from a company if I know I can make it run better on my computer. I'm just wondering what sort of network "tricks" or java server parameters I could add to make it run a bit better. There has got to be something..
yeah but you seem to be having lag problems heres a offer:
next month im opening a small private host and ill host you server for free it will have full ddos protection
Errrr... I'll think about it, I suppose... PM when you can, I guess...? I don't know, I made this thread to get see what kind of tricks and stuff people have to improve performance.
Hey matt. What kind of command do you use for the start up for your server?
Start.bat?
Do you have mods on your server? You can install clearlagg for your server as well. Make sure you are not running anything in your background.
Can i ask how fast your internet speeds are? It could be a chance that you might need higher speeds for upload.
Try running your server with a .bat file!
if you are already running with a .bat file
@echo off
java -Xms1024M -Xmx6144M -jar minecraft_server.jar nogui
pause
Here are the startup parameters I use : java -server -d64 -Xms3G -Xmx6G -XX:+UseLargePages -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -XX:+UseBiasedLocking -Xincgc -XX:MaxGCPauseMillis=10 -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=15 -Djava.net.preferIPv6Stack=true -Djava.net.preferIPv4Stack=true -jar server.jar pause
I'm not sure if that's too over the top, but these have helped a bit.
I have no mods on the server.
I have not set the server up for plugins using Bukkit, Spigot, etc.. I may do so, not sure.
I've attached my internet speed from speedtest.net.
I already run the server from a .bat file using the parameters I have shown.
It is highly likely that running Spigot instead of vanilla minecraft will increase performance. If you don't add any plugins, there is basically no difference from vanilla, except more options and more server optimization.
As for your client, you really can run that with 512-768 MB of RAM - in vanilla you don't even need a gigabyte. Save it all for the server.
If you're only running Minecraft and a Minecraft server on this machine, you could even consider installing Linux (some lightweight distro) to save even more RAM - that way you can give some 256 MB to OS, 512 MB to client, 7 GB for server. But that's only if you're running only minecraft and a server. Otherwise, you will have to account for extra RAM used by a web browser, etc.
Another thing - CPU and RAM speed (not just clock speed) and hard disk performance also matter! If a player is generating enough terrain, the hard disk or CPU can also be the bottleneck.
Thanks for the reply. If I was to use Spigot, what kinds of server optimizations would I be able to use? Also, would running a Minecraft server from a virtual machine running Linux be out of the question?
The Meaning of Life, the Universe, and Everything.
Join Date:
10/12/2016
Posts:
63
Minecraft:
-Revive_
Member Details
From the looks from me. Your upload and download speeds are very weak. Did you run the test while nothing else was open (like youtube). Try using a modded server with clear lag to see if that helps.
Linux could be useful. If you partion your HDD for linux, since i does not require alot of power, it could be useful for the server.
Also, change like the server properties. lower the viewing distance and see if like making nether false could help out the server by alot.
Hello. I host a server that my friend and I play on, and we notice a lot of TPS lag. Even when there are 20 or so hostile mobs the server starts to lag a lot. Mind you that we both have decent computers and usually get around 150-250 FPS, so we're not confusing the two. I also have 6 gigabytes allocated to the server, and one to Minecraft. I used to have 3 allocated to Minecraft, but I bumped it down to 1 to see if it made any difference.. It didn't. I have my computer specs in an image here for you to check them out and see if there is any hope. The computer is also running Windows 10 with the latest version of Java if that helps at all. I also tried adding additional Java parameters to the .bat file where I start the server. If they helped, the increase was negligible because I didn't notice a thing. I have the parameters linked in an image, as well. I'm not sure if these parameters would help in the first place, but this is what I found online so I thought I would give it a try. I also wanted to say that I'm not too good with "server stuff" or anything like that, so please bear with me.
Any and all help is very appreciated.
-Matt
Where it says -Xms5G -Xmx6G
I would change it to -Xms2G -Xmx6G
I was told the s means how much its allowed to start up and how much its allowed to dump error files.
since you only have 8GB on your computer: you are create alot of lag because you have to keep in mind that windows need regular amount of ram to keep it running. I would say on idle windows takes about close to 1GB
Now you are down to 7. Your game itself shouldn't need more than 3GB (not the server) if you are playing basic not modded minecraft (if with mods, 3GB should be good enough).
For server wise, its wise to have alot of ram so it doesn't lag but you have to factor in how much you have left useable on your computer.
If it was an actual server, you are allowed to use all 8GB. But this is hosted on your own computer.
-Try the first step i mentioned above and than change numbers around to see if that helps. If anything just turn off monsters or reduce the spawning rate.
Thanks for the reply! I just changed the Xms argument to 2G, and I'm currently seeing how it's going.
EDIT: After testing, I have not noticed much difference at all... Would there be any other tricks or parameters I could use?
Bumpity Bump
Bump :3
hosting a server on Ur own PC isn't recommended
Yes, I understand this, but I don't want to buy a server from a company if I know I can make it run better on my computer. I'm just wondering what sort of network "tricks" or java server parameters I could add to make it run a bit better. There has got to be something..
yeah but you seem to be having lag problems heres a offer:
next month im opening a small private host and ill host you server for free it will have full ddos protection
Errrr... I'll think about it, I suppose... PM when you can, I guess...? I don't know, I made this thread to get see what kind of tricks and stuff people have to improve performance.
add me on skype:
live:ethan2260
Do you have Discord? https://discordapp.com/ I prefer to not talk.. I'd rather type.
yeah i have a discord but skype does have a text chat ya know XD
Yes, I know, but I already uninstalled Skype lol... mind just PM'ing each other here?
Hey matt. What kind of command do you use for the start up for your server?
Start.bat?
Do you have mods on your server?
You can install clearlagg for your server as well. Make sure you are not running anything in your background.
Can i ask how fast your internet speeds are?
It could be a chance that you might need higher speeds for upload.
Try running your server with a .bat file!
if you are already running with a .bat file
Here are the startup parameters I use : java -server -d64 -Xms3G -Xmx6G -XX:+UseLargePages -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -XX:+UseBiasedLocking -Xincgc -XX:MaxGCPauseMillis=10 -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=15 -Djava.net.preferIPv6Stack=true -Djava.net.preferIPv4Stack=true -jar server.jar pause
I'm not sure if that's too over the top, but these have helped a bit.
I have no mods on the server.
I have not set the server up for plugins using Bukkit, Spigot, etc.. I may do so, not sure.
I've attached my internet speed from speedtest.net.
I already run the server from a .bat file using the parameters I have shown.
Thanks for the reply. If I was to use Spigot, what kinds of server optimizations would I be able to use? Also, would running a Minecraft server from a virtual machine running Linux be out of the question?
From the looks from me. Your upload and download speeds are very weak. Did you run the test while nothing else was open (like youtube). Try using a modded server with clear lag to see if that helps.
Linux could be useful. If you partion your HDD for linux, since i does not require alot of power, it could be useful for the server.
Also, change like the server properties. lower the viewing distance and see if like making nether false could help out the server by alot.