I'm running a server on my computer and playing on it at the same time. The specs are: i7 3.4GHz (3.9 Turbo), 250GB SSD, 16GB 1600MHz RAM, GTX 775M 2GB, Windows 10. I've allocated a max of 4GB of RAM for Minecraft, and 1GB for the server. It has had and will only ever have a maximum of 5 people playing. Myself and two others are in my home, and I have two friends connecting remotely. My internet is 100Mbps down and 2Mbps up.
The server is currently using these flags to start: start javaw -server -d64 -Xmx1024M -jar server.jar -o true
(I previously was using: start javaw -server -d64 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -Xms1024M -Xmx1024M -jar server.jar -o true, however removed them to test if they were causing a problem -- it seemed not though.)
The average tick rate constantly jumps from 15-40 and even went into the 50's at one point. I'd say on average it's around 30. Everyone was noticing lag, despite their ping being good -- monsters seemed to be moving jarringly and it felt weird trying to time hitting things. At the time, RAM usage of the server was only 250MB. My Minecraft instance was using 2.7GB. My CPU usage maxes out at 55%.
Not sure if this is normal, but it doesn't feel good in game so I hope not. What can I try to improve this?
EDIT: No mods, plugins, or anything similar. It's completely vanilla.
Also I don't know whether it's important or not, but myself and my two family members at home were connecting via my external IP instead of my internal.
Ok you're talking about your ping which is 50ms (milliseconds) not your TPS (ticks per second) which caps at 20TPS.
Your ping will be great since you're on the local server however with 2mbps upload speed you're going to get some lag in addition to only have 1gb RAM allocated for the Minecraft server. Allocate more RAM and in the server.properties file edit the view distance to something lower between 6-8 and that should help a lot.
Ok you're talking about your ping which is 50ms (milliseconds) not your TPS (ticks per second) which caps at 20TPS.
Your ping will be great since you're on the local server however with 2mbps upload speed you're going to get some lag in addition to only have 1gb RAM allocated for the Minecraft server. Allocate more RAM and in the server.properties file edit the view distance to something lower between 6-8 and that should help a lot.
Thanks for you reply
I don't quite understand -- Isn't the ping what I see when I'm in Minecraft? Why does the server itself have a ping? This "avg tick" section increases a lot when more people come on. It's usually 0.2ms when no one is on, 5-6 with one person and with 5 I was getting 30-45 at the time.
Do I need to allocate more RAM? Even under the heaviest load it's only hit 25% usage?
Ah so I can adjust the view distance? (I assume this will reduce how much upload bandwidth I need, correct?.)
Hi,
I'm running a server on my computer and playing on it at the same time. The specs are: i7 3.4GHz (3.9 Turbo), 250GB SSD, 16GB 1600MHz RAM, GTX 775M 2GB, Windows 10. I've allocated a max of 4GB of RAM for Minecraft, and 1GB for the server. It has had and will only ever have a maximum of 5 people playing. Myself and two others are in my home, and I have two friends connecting remotely. My internet is 100Mbps down and 2Mbps up.
The server is currently using these flags to start: start javaw -server -d64 -Xmx1024M -jar server.jar -o true
(I previously was using: start javaw -server -d64 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -Xms1024M -Xmx1024M -jar server.jar -o true, however removed them to test if they were causing a problem -- it seemed not though.)
The average tick rate constantly jumps from 15-40 and even went into the 50's at one point. I'd say on average it's around 30. Everyone was noticing lag, despite their ping being good -- monsters seemed to be moving jarringly and it felt weird trying to time hitting things. At the time, RAM usage of the server was only 250MB. My Minecraft instance was using 2.7GB. My CPU usage maxes out at 55%.
Not sure if this is normal, but it doesn't feel good in game so I hope not. What can I try to improve this?
EDIT: No mods, plugins, or anything similar. It's completely vanilla.
Appreciate any help!
Bump...
Also I don't know whether it's important or not, but myself and my two family members at home were connecting via my external IP instead of my internal.
How are you getting 50 TPS when it caps at 20 TPS? Are you running 1.8, 1.9?
I have absolutely no idea. Running 1.9.
I'm using the Minecraft Server window which has "avg ticks" and "Memory use" for the information. Maybe it's wrong?
What I assumed was, is that if I keep the "avg ticks" under 50 MS that'd be the 20 TPS and I'd be fine. However 35-50 it doesn't feel good.
Bump. Hoping someone who's experienced this will see it. (I can bump my thread every 12 hours correct..?)
Ok you're talking about your ping which is 50ms (milliseconds) not your TPS (ticks per second) which caps at 20TPS.
Your ping will be great since you're on the local server however with 2mbps upload speed you're going to get some lag in addition to only have 1gb RAM allocated for the Minecraft server. Allocate more RAM and in the server.properties file edit the view distance to something lower between 6-8 and that should help a lot.
Thanks for you reply
I don't quite understand -- Isn't the ping what I see when I'm in Minecraft? Why does the server itself have a ping? This "avg tick" section increases a lot when more people come on. It's usually 0.2ms when no one is on, 5-6 with one person and with 5 I was getting 30-45 at the time.
Do I need to allocate more RAM? Even under the heaviest load it's only hit 25% usage?
Ah so I can adjust the view distance? (I assume this will reduce how much upload bandwidth I need, correct?.)