07-14-2010, 06:32 PM
Hi srcds experts.
I have been having some issues getting a small private TF2 server working lag free on a VPS. I hope that if I provide plenty of details that someone can point me in the right direction or at least advise me if I am dreaming of getting it working correctly on a VPS.
Basically what happens is everything has installed fine and I can connect to the server etc...
What the issues is that when more than 3-4 people connect, the server lags out at random times. Eg. it will be fine for 15seconds then lag badly eg. everyone in the server freezes. Then be fine for 30secs then lag again. (when I am in the server by myself there is no noticeably lag on net graph even with 15bots loaded)
I know that it is a VPS and it may not be able to handle this but as I am using it for very little (Sometimes I test websites designs or use ssh when overseas it has no other load on it) I was hoping that its would be sufficient for a scrim server with max 15 players and source tv to record matches only)
So any help with getting this working and being lag free would be really helpful.
Also if there are any ways that I can test load on the server without requiring 10-15 players to join for each config change that would be great. (most people normally get annoyed and join another server before I can try any other changes)
The VPS specs are as follows: (from my understanding it is OpenVZ based if this makes any difference)
Intel® Xeon® CPU E5410 @ 2.33GHz, 1 cores (This means I can only use 1 core of the server, I can upgrade to have access to 2 or more cores but don't really want to have to pay extra for this)
Memory (RAM) 512MB (burst to 1GB)
Storage Space 30GB
Internet Bandwidth 10Mbit
OS Ubuntu Linux 9.10
My Start-up line:
./srcds_run -game tf +map cp_badlands - +maxplayers 15 +fps_max 600 -heapsize 524288 +ip xxx.xxx.xxx.xxx -autoupdate
My server.cfg file:
// Server name
hostname "tf2 test Server"
// Rcon passsword
rcon_password "XXXXXXX"
// Server password
sv_password "XXXXXXXX"
// Server Settings
sv_client_cmdrate_difference "30"
sv_lan "0"
sv_downloadurl "http://XXXXXXXXX"
sv_region "5"
sv_pausable "0"
sv_cheats "0"
sv_pure "1"
sv_pure_kick_clients "0"
sv_consistency "1"
sv_allowupload "1"
sv_allowdownload "1"
sv_timeout "300"
sm_cvar tf_birthday "0"
net_maxfilesize "15"
sv_stats "1"
// Mp_Settings
mp_timelimit "0"
mp_footsteps "1"
mp_maxrounds "6"
mp_idledealmethod "0"
tf_flag_caps_per_round "4"
tf_stats_track "1"
tf_playergib "1"
writeid
writeip
// Server Rates
sv_maxrate "40000"
sv_minrate "15000"
sv_maxupdaterate "66"
sv_minupdaterate "33"
fps_max "600"
decalfrequency "10"
sv_maxcmdrate "66"
sv_mincmdrate "33"
sv_client_cmdrate_difference "30"
//Other Settings
sv_visiblemaxplayers "15"
tv_enable "1"
tv_autorecord "1"
tv_maxclients "0"
tv_name "stv"
// Number of minutes to ban users who fail rcon authentication
sv_rcon_banpenalty 1440
// Max number of times a user can fail rcon authentication before being banned
sv_rcon_maxfailures 5
Any Help would be great
Cheers iotlek
I have been having some issues getting a small private TF2 server working lag free on a VPS. I hope that if I provide plenty of details that someone can point me in the right direction or at least advise me if I am dreaming of getting it working correctly on a VPS.
Basically what happens is everything has installed fine and I can connect to the server etc...
What the issues is that when more than 3-4 people connect, the server lags out at random times. Eg. it will be fine for 15seconds then lag badly eg. everyone in the server freezes. Then be fine for 30secs then lag again. (when I am in the server by myself there is no noticeably lag on net graph even with 15bots loaded)
I know that it is a VPS and it may not be able to handle this but as I am using it for very little (Sometimes I test websites designs or use ssh when overseas it has no other load on it) I was hoping that its would be sufficient for a scrim server with max 15 players and source tv to record matches only)
So any help with getting this working and being lag free would be really helpful.
Also if there are any ways that I can test load on the server without requiring 10-15 players to join for each config change that would be great. (most people normally get annoyed and join another server before I can try any other changes)
The VPS specs are as follows: (from my understanding it is OpenVZ based if this makes any difference)
Intel® Xeon® CPU E5410 @ 2.33GHz, 1 cores (This means I can only use 1 core of the server, I can upgrade to have access to 2 or more cores but don't really want to have to pay extra for this)
Memory (RAM) 512MB (burst to 1GB)
Storage Space 30GB
Internet Bandwidth 10Mbit
OS Ubuntu Linux 9.10
My Start-up line:
./srcds_run -game tf +map cp_badlands - +maxplayers 15 +fps_max 600 -heapsize 524288 +ip xxx.xxx.xxx.xxx -autoupdate
My server.cfg file:
// Server name
hostname "tf2 test Server"
// Rcon passsword
rcon_password "XXXXXXX"
// Server password
sv_password "XXXXXXXX"
// Server Settings
sv_client_cmdrate_difference "30"
sv_lan "0"
sv_downloadurl "http://XXXXXXXXX"
sv_region "5"
sv_pausable "0"
sv_cheats "0"
sv_pure "1"
sv_pure_kick_clients "0"
sv_consistency "1"
sv_allowupload "1"
sv_allowdownload "1"
sv_timeout "300"
sm_cvar tf_birthday "0"
net_maxfilesize "15"
sv_stats "1"
// Mp_Settings
mp_timelimit "0"
mp_footsteps "1"
mp_maxrounds "6"
mp_idledealmethod "0"
tf_flag_caps_per_round "4"
tf_stats_track "1"
tf_playergib "1"
writeid
writeip
// Server Rates
sv_maxrate "40000"
sv_minrate "15000"
sv_maxupdaterate "66"
sv_minupdaterate "33"
fps_max "600"
decalfrequency "10"
sv_maxcmdrate "66"
sv_mincmdrate "33"
sv_client_cmdrate_difference "30"
//Other Settings
sv_visiblemaxplayers "15"
tv_enable "1"
tv_autorecord "1"
tv_maxclients "0"
tv_name "stv"
// Number of minutes to ban users who fail rcon authentication
sv_rcon_banpenalty 1440
// Max number of times a user can fail rcon authentication before being banned
sv_rcon_maxfailures 5
Any Help would be great
Cheers iotlek