• Server's Lagging
    15 replies, posted
Hey Guys, im running an gmod server with 64 sloths my problem is the server begans to lagg "a bit" after few hours server start, the cars are lagging back, player voices(when theyre talking) are lagging also i use tickrate 66 and my cfg : [CODE]hostname "Germöny" exec banned_user.cfg exec banned_ip.cfg writeid writeip sv_loadingurl "notdone" sv_downloadurl "http://127.0.0.1/gmod/" rcon_password "nop" sv_password "" sv_lan "0" sv_region "255" sv_stats 0 net_splitpacket_maxrate 300000 sv_maxrate 0 sv_minrate 150000 sv_maxupdaterate 99 sv_maxcmdrate 99 sv_timeout 120 sv_minupdaterate 10 fps_max 0 sbox_allownpcs "1" sbox_godmode "0" sbox_weapons "1" sbox_playerhurtsplayer "0" sbox_noclip "0" sbox_persist "0" sbox_maxprops "200" sbox_maxragdolls "10" sbox_maxnpcs "10" sbox_maxballoons "100" sbox_maxeffects "200" sbox_maxdynamite "10" sbox_maxlamps "3" sbox_maxthrusters "50" sbox_maxwheels "50" sbox_maxhoverballs "50" sbox_maxvehicles "50" sbox_maxbuttons "50" sbox_maxsents "100" sbox_maxemitters "20" sbox_maxtextscreens "5" [/CODE] We have 65 Addons in our collection and 96 addons total(with the bought scripts) Server Specs : Windows Server 2016 64 GB Ram 64 Bit Intel Xeon CPU E5-2640 V4 @ 2.40GHz 2.40GHz
#bump :c
Max and Minrate are switched. Max Rate 0, I wonder how anyone could join your server...
[QUOTE=Toedeli;52053392]Max and Minrate are switched. Max Rate 0, I wonder how anyone could join your server...[/QUOTE] I believe the engine switches them if they're in the wrong order.
[QUOTE=Toedeli;52053392]Max and Minrate are switched. Max Rate 0, I wonder how anyone could join your server...[/QUOTE] on what should i set it?
96 addons, 64 players, and 66 tick with a 2.4 ghz clock speed. Probably your issue.
[QUOTE=fourny;52055011]96 addons, 64 players, and 66 tick with a 2.4 ghz clock speed. Probably your issue.[/QUOTE] so i set the sloths to max 50, on what should i set the tickrate? 33?(cars are lagging harder @33 tickrate)
[QUOTE=sayaloli1;52068066]so i set the sloths to max 50, on what should i set the tickrate? 33?(cars are lagging harder @33 tickrate)[/QUOTE] Maybe your lag problem is because of the sloths. Consider switching to emus maybe?
That CPU isn't the best but it shouldn't have that bad of an issue with 64 sloths and honestly, just leave all network rates at default. Get the addon [URL="https://github.com/FPtje/FProfiler"]FProfiler[/URL] and check which is causing the highest usage, I'm guessing it's probably some addon using the PlayerCanHearPlayer hook.
[QUOTE=Mrkrabz;52069876]That CPU isn't the best but it shouldn't have that bad of an issue with 64 sloths and honestly, just leave all network rates at default. Get the addon [URL="https://github.com/FPtje/FProfiler"]FProfiler[/URL] and check which is causing the highest usage, I'm guessing it's probably some addon using the PlayerCanHearPlayer hook.[/QUOTE] im gonna watch, ty [editline]7th April 2017[/editline] [QUOTE=iamgoofball;52069654]Maybe your lag problem is because of the sloths. Consider switching to emus maybe?[/QUOTE] what u mean exactly with emus?
[QUOTE=Mrkrabz;52069876]That CPU isn't the best but it shouldn't have that bad of an issue with 64 sloths and honestly, just leave all network rates at default. Get the addon [URL="https://github.com/FPtje/FProfiler"]FProfiler[/URL] and check which is causing the highest usage, I'm guessing it's probably some addon using the PlayerCanHearPlayer hook.[/QUOTE] the highest was Lerp from lua/includes/util.lua :/
[QUOTE=sayaloli1;52084842]the highest was Lerp from lua/includes/util.lua :/[/QUOTE] It's being used in another function too liberally, then.
[QUOTE=code_gs;52084952]It's being used in another function too liberally, then.[/QUOTE] hmhmhmhmhm so it could be on the cpu or what?
[QUOTE=sayaloli1;52085106]hmhmhmhmhm so it could be on the cpu or what?[/QUOTE] No, check where Lerp is being used so often.
[QUOTE=code_gs;52085483]No, check where Lerp is being used so often.[/QUOTE] how?, sry for my noob questions
[QUOTE=sayaloli1;52086136]how?, sry for my noob questions[/QUOTE] I don't know if FProfiler provides the source of function calls, but if not, you can override the Lerp function and use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/debug/getinfo]debug.getinfo[/url] on the second stack level to find the file path and line of each Lerp call and see what's calling it the most.
Sorry, you need to Log In to post a reply to this thread.