Getting more juice out of Garry's Mod Server

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Jake
A regular
A regular
Posts: 54
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed May 28, 2014 9:20 pm

Getting more juice out of Garry's Mod Server

Post by Jake »

First, this is an unmanged VDS that I administrate myself.

Currently I'm running 2 Garry's Mod servers on my 2 core VDS with 4GB of ram, along with WAMP to run my website. My jailbreak server starts to lag around 35 players and the second server gets very little traffic (around 5-8 players daily, if that) but I'm mainly concerned about optimizing my server more to make it lag less. Once the 35 players hits, everyone's ping doubles and usually goes over 100, while they are usually 15-50 when the server is not being stressed. I don't understand why this is happening because I think I'm still well within my limits but perhaps it just lags at a certain point.

This shows my performance tab, which shows the CPU is currently ranging from 60-80% (Still another 20% to use?) I was thinking that everything ran good until the 100% point, but I am well within my RAM limits.
Image

Next shows my scoreboard in game, which displayers that user's pings are higher then they should be at this point.
Image

Here is my commandline that is used to start the server:
-console -game "garrysmod" -maxplayers 50 +map "jb_new_summer_v2" -ip 74.91.124.240 -port 27015 -nohltv -nocrashdialog +host_timer_spin_ms 0 +r_hunkalloclightmaps 0 -tickrate 33

I honestly have no idea what host_timer_spin_ms or r_hunkalloclightmaps do, I just used them because NFo used them in their managed gameservers.

Here is my server.cfg, which was also adopted from settings that NFo used in their managed gameservers.

Code: Select all

hostname "SleekGamers.com | Summer Jailbreak"

sbox_godmode 0
sbox_noclip 0
sbox_weapons 0

mp_falldamage 1

sv_maxrate 0
sv_minrate 100000
sv_maxupdaterate 99
sv_maxcmdrate 99
sv_timeout 120
sv_allowupload 0
sv_allowdownload 0
sv_stats 0
sv_region 1
fps_max 0
sv_parallel_packentities 0
sv_parallel_sendsnapshot 1
net_queued_packet_thread 1
net_splitpacket_maxrate 100000

sv_downloadurl "http://fastdl.sleekgamers.com/jailbreak/"
sv_loadingurl "www.sleekgamers.com/servers/jb-summer/motd/load.php?steamid=%s"

exec banned.cfg
exec banned_user.cfg
Any tips on performance increase would be greatly appreciated, I realize this might just be too much for this server though.
User avatar
Edge100x
Founder
Founder
Posts: 13154
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Getting more juice out of Garry's Mod Server

Post by Edge100x »

You appear to just be hitting the limits of how many players you can support with that configuration. I recommend that you lower your tickrate -- going to 22, or even down to 11 -- as this is a common technique used to get some extra mileage out of a large gmod server.
Jake
A regular
A regular
Posts: 54
Joined: Wed May 28, 2014 9:20 pm

Re: Getting more juice out of Garry's Mod Server

Post by Jake »

I went ahead and upgraded to a four core to gain my tick back. Do individual player's high ping impact server performance? I was wondering if I should punish for high ping to keep the overall experience good.
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Getting more juice out of Garry's Mod Server

Post by kraze »

Jake wrote:I went ahead and upgraded to a four core to gain my tick back. Do individual player's high ping impact server performance? I was wondering if I should punish for high ping to keep the overall experience good.
Those types of players wouldn't effect server performance, but they would not be fun players to play with since they'd be lagging.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
Post Reply