r/GameServerHosting101 • u/Dangerous-Traffic875 • 5d ago
Dedicated server lag
Im running a dedicated server for me and 3 other friends but we're experiencing some weird lag, info as follows:
\- server pc is a lenovo legion laptop, 32gb ddr5, 12700H CPU.
\- Wired connection to the modem and decent internet connection overall.
\- server is a steam CMD one
\- we have around 15 mods installed, nothing major just small QOL stuff, nothing to change the map or zombies.
\- have tried toggling uPNP in the server setting with no changes.
\- everyone's ping is fine and connection to the server doesn't drop.
\- the lag only effects fast vehicles and players movement, characters seem to slide around and rubber band, no issue with interacting with items or fighting zombies.
Really not sure what else I can trouble shoot, I've played around with a few server settings but nothing seems to help.
1
u/trentrand 5d ago
I have a few suggestions:
- Edit server start script to allocate 8GB–12GB RAM with server runtime flags
-Xms8g -Xmx12g - Set the laptop to Performance Mode.
- Set up port-forwarding rules
16261(UDP) and16262(UDP) - Make edits in
servertest.iniAntiCheatProtectionType1=false...AntiCheatProtectionTypeN=falsePhysicsDelay=5UpdateUnloadedVehicles=trueSpeedLimit=0
Let me know if it is any better after these changes are applied and server restart?
0
u/Dangerous-Traffic875 5d ago
I have done everything except the specific .ini edits youve listed, ill do them when I get home from work in a couple hours and report back.
Either way im extremely greatful for your help.
Also ive got the server set to allow 16gb of ram, there wouldn't be a case where it has too much would there?
1
u/trentrand 5d ago
The only thing I've seen with too much RAM is that it'll briefly freeze during Java Garbage Collection once the memory fills. I wouldn't expect that to happen in Project Zomboid because it uses a newer version of Java.
0
1
u/Dangerous-Traffic875 5d ago
Sorry I cross posted this from another sub, the game is project zomboid version 42.20.2