SRCDS Steam group


TF2 Server lag issue, need help
#1
Exclamation 
Server OS: Ubuntu 12.04 LTS 32-bit (VPS server)
Processor: 3x Intel E5 3.5GHz+ Core
Ram: 1GB
Game(s): Team Fortress 2
Start Up Command: (Using Team Fortress 2 Linux Server Manager script)
Code:
# Start Variables
defaultmap="trade_hyrule_oot3d_alpha_11"
maxplayers="32"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="no"

# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game tf -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers} +fps_max 300"
Admin Mods: SourceMod 1.7.2-dev+5197, Metamod:Source version 1.10.4

tf2-server.cfg:
Code:
// Server Name
hostname "Green Giant's Zelda Server [EU] | FastDL"

// RCON Password
rcon_password ""

// Server Password
sv_password ""

// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

// Network
//sv_maxupdaterate 33
//sv_minupdaterate 100
sv_maxrate 20000
//sv_minrate 20000
sv_downloadurl "http://private"
sv_allowupload 1
sv_allowdownload 1
net_maxfilesize 64

// Misc
sv_alltalk 1
sv_pure 0
sv_use_steam_voice 0
sv_allow_votes 0
sv_allow_voice_from_file 1
sv_tags "zelda,fun,trade,fastdl"
mp_timelimit 0
mp_enableroundwaittime 1
mp_match_end_at_timelimit 1
mp_stalemate_enable 0
mp_stalemate_timelimit 300
mp_forcecamera 0
mp_disable_respawn_times 1
mp_idledealmethod 1
mp_idlemaxtime 10
mp_autoteambalance 0
mp_teams_unbalance_limit 0
tf_allow_taunt_switch 2
tf_allow_sliding_taunt 1
tf_allow_player_use 1
tf_avoidteammates_pushaway 0
tf_forced_holiday 2
tf_bot_join_after_player 0
tf_bot_keep_class_after_death 0
tf_grapplinghook_enable 1
tf_grapplinghook_projectile_speed 2000
tf_grapplinghook_move_speed 1000
decalfrequency 2

// sm_cvar
sm_cvar tf_max_voice_speak_delay -1
sm_cvar sv_airaccelerate 9999
sm_cvar tf_grapplinghook_projectile_speed 2000
sm_cvar tf_grapplinghook_move_speed 1000
sm_cvar tf_grapplinghook_max_distance 1000000
sm_cvar tf_halloween_kart_normal_speed 1300
sm_cvar tf_halloween_kart_dash_speed 1500
sm_cvar tf_halloween_kart_normal_accel 500
sm_cvar tf_halloween_kart_brake_accel 1500
sm_cvar tf_halloween_kart_air_turn_scale 3.0f
sm_cvar tf_halloween_kart_slow_turn_accel_speed 250
sm_cvar tf_halloween_kart_slow_turn_speed 125
sm_cvar tf_halloween_kart_fast_turn_speed 100
sm_resize_menu 2
sm_resize_voices 1
sm_resize_unstick 3
sm_resize_menuitems "0.3, Smallest; 0.5, Smaller; 0.7, Small; 1.0, Normal; 1.50, Large; 2.0, Larger; 3.0, Largest"
sm_resize_headmenuitems "0.3, Smallest; 0.5, Small; 0.7, Smaller; 1.0, Normal; 2.0, Large; 3.0, Larger; 5.0, Largest"
sm_resize_handsmenuitems "0.3, Smallest; 0.5, Smaller; 0.7, Small; 1.0, Normal; 1.50, Large; 2.0, Larger; 3.0, Largest"
sm_resize_torsomenuitems "0.3, Smallest; 0.5, Smaller; 0.7, Small; 1.0, Normal; 2.0, Large; 3.0, Larger; 5.0, Largest"
sm_advertisements_interval 60
sm_ninjaleap_admin 1
sm_fakedownloadurl "http://howaboutno.com"
sm_spawnprotect_timer 5
sm_downloader_normal 0
sm_downloader_simple 1
sm_noisemaker_nodelayflag "z"

// Bhop
sm_cvar fc_bhop_lazymode 1
sm_cvar fc_bounce_enabled 1

// Bans
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip

Sourcemod Plugins:
Code:
"Basic Ban Commands" (1.7.2-dev+5197) by AlliedModders LLC
"Clocktown Gossip Stones" (1.0) by MasterOfTheXP
"Basic Commands" (1.7.2-dev+5197) by AlliedModders LLC
"[TF2] TF2Attributes" (1.1.1) by FlaminSarge
"Admin Menu" (1.7.2-dev+5197) by AlliedModders LLC
"Ben Slay" (1.0.1) by MasterOfTheXP
"Updater" (1.2.2) by GoD-Tony
"Aim Names" (0.8) by -MCG-Retsam & Antithasys
"[Source 2013] Custom Chat Colors" (3.1.0) by Dr. McKay
"TF2 Set Speed" (1.4.0) by Tylerst
"Admin Player Grabber" (1.0.1) by Friagram
"Thriller" (0.2) by linux_lover
"[TF2] Set Player Class" (1.0.1) by DarthNinja
"Noise Maker Player" (2.3.1) by Jouva Moufette <jouva@moufette.com>, DarthNinja, Velture
"Reserved Slots" (1.7.2-dev+5197) by AlliedModders LLC
"Ocarina" (1.0) by Jim
"Be the Skeleton" (1.0) by Mitchell
"TF2 Set Class" (1.2.2) by Tylerst
"[TF2Items] Manager" (1.4.1) by Damizean & Asherkin
"Resize Players" (1.5.1) by 11530
"Set Health" (1.2.2) by Mr. Blip
"[TF2Items] Advanced Give Item" (1.0.2) by DarthNinja
"[TF2] Taunt Speed Modifier" (1.0.0) by Tak (Chaosxk)
"AllChat" (1.1.1) by Frenzzy
"Player Commands" (1.7.2-dev+5197) by AlliedModders LLC
"Sound Commands" (1.7.2-dev+5197) by AlliedModders LLC
"Simple Chat Processor (Redux)" (1.1.5) by Simple Plugins, Mini
"Fake and Force Unlimited" (2.0) by MasterOfTheXP
"Basic Chat" (1.7.2-dev+5197) by AlliedModders LLC
"MapChooser" (1.7.2-dev+5197) by AlliedModders LLC
"Point_viewcontrol Fix" (1.0) by MasterOfTheXP
"Basic Info Triggers" (1.7.2-dev+5197) by AlliedModders LLC
"Clocktown Mono Spawner" (indev) by MasterOfTheXP
"Basic Comm Control" (1.7.2-dev+5197) by AlliedModders LLC
"Player-Teleport by Dr. HyperKiLLeR" (1.2.0.0) by Dr. HyperKiLLeR
"Custom Spawn" (1.2) by Alm
"Client Preferences" (1.7.2-dev+5197) by AlliedModders LLC
"Fun Votes" (1.7.2-dev+5197) by AlliedModders LLC
"Infinite Jumping" (3.0) by Chanz
"TF2 Building God Mode" (1.1.0) by Tylerst
"Advertisements" (0.6) by Tsunami
"[TF2] Model Manager" (1.0.4) by FlaminSarge (based on Damizean's TF2 Equipment Manager)
"[ANY] Ninja Leap" (1.0.2) by DarthNinja
"[TF2] Colored Engineer Buildings" (1.1) by Oshizu
"Basic Votes" (1.7.2-dev+5197) by AlliedModders LLC
"Spray Tracer" (5.8a) by Nican132, CptMoore, Lebson506th
"[Any] Deluxe Godmode" (2.3.1) by DarthNinja
"Rock The Vote" (1.7.2-dev+5197) by AlliedModders LLC
"Advanced Infinite Ammo" (1.3.9) by Tylerst
"Trade Chat" (1.5.1) by Luki
"[TF2] Friendly Mode" (14.1119) by Derek D. Howard
"[TF2] Kartify" (1.5.0) by Dr. McKay
"TF2 Spawn Protection" (1.0.0) by Crimson
"ShapeShift" (1.5.3) by Plex (aka Use My Teleporter)
"No Fall Damage" (1.0) by Powerlord + Dr. McKay
"SM File/Folder Downloader and Precacher" (1.4) by SWAT_88
"Admin File Reader" (1.7.2-dev+5197) by AlliedModders LLC
"Trigger Freeze" (1.0) by Panzer
"No Voice Subtitles" (1.0) by GoRRageBoy
"Nextmap" (1.7.2-dev+5197) by AlliedModders LLC
"[TF2] Thirdperson" (2.1.0) by DarthNinja
"Admin Help" (1.7.2-dev+5197) by AlliedModders LLC
"Trigger Nostalgia" (1.0) by MasterOfTheXP
"Web Shortcuts" (1.1) by Kyle Sanderson, Nicholas Hastings
"Fun Commands" (1.7.2-dev+5197) by AlliedModders LLC

So the lag that my server is suffering from only seems to happen after it reaches a certain amount of players. The lag happens more frequently when there are around 10 players.
Here is a gif I made of what net_graph 5 looks like during the lag, I slowed it down so it's easier to see:

[Image: k1Rq2Kx.gif]

The lag never happens constantly, it goes off and comes back randomly, but the lag happens more frequently depending on the amount of players usually.
The more players there are, the more frequently the server starts to lag.

This is what the SolusVM Control Panel statistics say about the server in a 1 day time span:
[Image: i8e4lpp.png]

What could be the issue? I hope this isn't a problem with the host bandwidth, because if it is then how am I supposed to fix it?
I have already tried increasing the sv_maxrate to a higher value and fps_max to 600, but it didn't improve anything at all.
Help is much appreciated, thanks in advance.
Reply
#2
You have a lot of plugins loaded on your server, so this may be one of the reasons to the lag.
Gratis hjemmeside hosting hos Hostinger





Free website hosting at Hostinger
Reply
#3
Sadly there is no easy way for me to check if the plugins are causing the lag, because first I need around 10 players on the server to see if anything has changed, and getting many players to join is quite difficult. I also don't personally think it's the plugins fault. I have seen servers with way more plugins, with similar plugins in fact, and they don't have the same lag as my server. If those servers lag, they suffer from either choke or higher pings, which my server doesn't seem to get.

Couldn't the issue be the outgoing bandwidth? I don't know why the bandwidth is only giving out a max of 101.9kB, if I try to upload a 100MB file for an example and download it from the server then it downloads the entire file in the matter of seconds with my 100mbit/s connection, so why is SRCDS only giving out so little?

EDIT: I had 9 players on my server and decided to turn on War Mode in Sourcemod (it disables all plugins), but the server was still lagging a bit. So from the looks of it, the plugins are not to blame here.
Reply
#4
Are your VPS hosted by a company? If it is, then just call/write to their support, in this case it seems like the best idea.
Gratis hjemmeside hosting hos Hostinger





Free website hosting at Hostinger
Reply
#5
They're hosted by a company, yes. I'm not sure what I am supposed to ask them since they don't deal with SRCDS or gamehosting, but I'll try to ask them about my low bandwidth output and ask if that's normal.
Reply
#6
At least they may have some experience with this..
Gratis hjemmeside hosting hos Hostinger





Free website hosting at Hostinger
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)