• Lag Spike issues!!!
    21 replies, posted
Ok, I'm a bit ticked off by this lag spike issue now. Hello, my name is Randy Butternubs some of you might know me as the "facepunch meme" or otherwise. And yes I'm still newbie to coding, I know how to host a server I just don't know how to understand all the hook and return stuff and codes like this hook.Add( "PlayerSay", "WeaponDestroyEntity", function( ply, text ) // it the players says something if ( string.sub( text, 1, 8 ) == "/destroy" ) then // and if its first 8 charcters are /destroy local plyWeapon = ply:GetActiveWeapon() // get the players active weapon and save it in a variable ply:StripWeapon(plyWeapon:GetClass()) // remove the weapon using ent:Remove is not a good idea end end) But it's okay because one day I'll make sure to learn, but besides the point, I'm sorry for being a bit lazy in my threads and post and acting like a dumbass. I really do know what stuff means such as MySQL, DB, etc. (<-- that's the level I'm at, so as you can see it's not that good) Anyways....... I'm having a lag spike issue which is ticking me OFF SO MUCH. No, it is not because of too many add-ons, it is not because of too many addons in my FastDL, no it is not because of badly coded add-ons (If you don't believe me on that here: [URL]https://gyazo.com/7aef0f1a442a00654470f3d7c68110b0[/URL]) No it is not because of I have too many workshop items or anything else. (Again don't believe me here: [URL]https://gyazo.com/eea17332bc0921d32ebe42be5aae9bd0[/URL]) So please anyone tell me why I'm getting these lag spikes? because I have no clue, I've searched online and I found stuff like this [URL="https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexb6ef.html#Lag"]https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexb6ef.html#Lag[/URL] No help at all, I learned about this [URL="https://github.com/Facepunch/garrysmod-issues/issues/1326"]https://github.com/Facepunch/garrysmod-issues/issues/1326[/URL] Still.... No help I used to have so many addons and I cut down so many just for this to stop and still, it's happening My Host specs: Your server is currently being hosted on a Intel Xeon E3-1271v3 (Haswell 3.6ghz) node with 4 total processor cores and 32 gigabytes of RAM. The database code for this node is chicago-quad36-h-10-m7b; its OS is Windows. These are the current stats on your entire machine (not just your game server), based on the last 5 minute period: CPU usage: 10.60% Free physical memory: 25399mb Machine uptime: 68 days, 8 hours, 41 minutes, 15 seconds Your server has high priority on this machine. Thanks to all that help!
First of all, what's 'lagspike' for you? Occasional/constant FPS drop on the client or timeout error (ie serverside)? Also, if you so much knew how to host, you really shoud've looked around the scripts and the performance details of the server, and post that. Use [URL="https://facepunch.com/showthread.php?t=1517058"]FPtje's Profiling Tool[/URL] to see what's casuing a performance breakdown. Good luck and let us know if you need help with that!
[QUOTE=Kiro The Pro;50790225]First of all, what's 'lag spike' for you? Occasional/constant FPS drop on the client or timeout error (ie serverside)? Also, if you so much knew how to host, you really should've looked around the scripts and the performance details of the server, and post that. Use [URL="https://facepunch.com/showthread.php?t=1517058"]FPtje's Profiling Tool[/URL] to see what's causing a performance breakdown. Good luck and let us know if you need help with that![/QUOTE] Thanks for the reply! Yes, I have used the FPtje's Profiling Tool and I didn't really understand it. I'll use it again tho and show you my results. And lag spikes as in every 15-30sec there's a freeze and if it's bad enough it'll crash the server
you're fucked
26 Scripts + 56 Workshop addons doesn't scream "I have too many addons" to you? I checked your workshop collection and you really need to shift through absolutely everything. Unless you manage your own stuff you will never be able to find the issue. Asking people to find your issue is not going to work. Use these tools to find your spikes. DBugR by Oubliette to profile hook performance [URL="https://github.com/oubliette32/DBugR"]https://github.com/oubliette32/DBugR[/URL] FProfiler by FPtje to profile functions [URL="https://github.com/FPtje/FProfiler"]https://github.com/FPtje/FProfiler[/URL] GMAD which is provided with gmod to extract workshop addons so you can modify their code to fit your needs. Your issue isn't necessarily because of too many addons, it's because of too many shitty addons. Plus you're making your users download 30 - 35 full vehicle packs that's ballistic, your serversize is probably over 3GB with all the cars, weapons and playermodels. If you want to take the lazy route, remove a lot of addons until the server stops lagging. If you really do like what you're doing with your server and you want to take the less lazy route, you should really take a look into how hooks work and how to optimize code.
[QUOTE=dence47;50790328]26 Scripts + 56 Workshop addons doesn't scream "I have too many addons" to you? I checked your workshop collection and you really need to shift through absolutely everything. Unless you manage your own stuff you will never be able to find the issue. Asking people to find your issue is not going to work. Use these tools to find your spikes. DBugR by Oubliette to profile hook performance [URL="https://github.com/oubliette32/DBugR"]https://github.com/oubliette32/DBugR[/URL] FProfiler by FPtje to profile functions [URL="https://github.com/FPtje/FProfiler"]https://github.com/FPtje/FProfiler[/URL] GMAD which is provided with gmod to extract workshop addons so you can modify their code to fit your needs. Your issue isn't necessarily because of too many addons, it's because of too many shitty addons. Plus you're making your users download 30 - 35 full vehicle packs that's ballistic, your serversize is probably over 3GB with all the cars, weapons and playermodels. If you want to take the lazy route, remove a lot of addons until the server stops lagging. If you really do like what you're doing with your server and you want to take the less lazy route, you should really take a look into how hooks work and how to optimize code.[/QUOTE] One of my most biggest servers have 95 addons in there pack, lag free [editline]28th July 2016[/editline] [QUOTE=RandyButter;50790379]One of my most biggest servers have 95 addons in there pack, lag free[/QUOTE] And It's the same machine as mine, because my server is hosted of his machine, so we have the same specs
Why do you come for help when you are going to say [I]"My most biggest servers have 95 addons"[/I] Dude, seriously...95? Please, give me that ip, just in case someday i want to play rp, thing that never happen, so i put your server into shitty scriptfodder+workshop+garrysmod.org sausage fest's list [QUOTE=dence47;50790328] Your issue isn't necessarily because of too many addons, [B]it's because of too many shitty addons. Plus you're making your users download 30 - 35 full vehicle packs that's ballistic, your serversize is probably over 3GB with all the cars, weapons and playermodels[/B]. If you want to take the lazy route, remove a lot of addons until the server stops lagging. If you really do like what you're doing with your server and you want to take the less lazy route, you should really take a look into how hooks work and how to optimize code.[/QUOTE] Also, ready that...
[QUOTE=gonzalolog;50792318]Why do you come for help when you are going to say [I]"My most biggest servers have 95 addons"[/I] Dude, seriously...95? Please, give me that ip, just in case someday i want to play rp, thing that never happen, so i put your server into shitty scriptfodder+workshop+garrysmod.org sausage fest's list Also, ready that...[/QUOTE] Sorry it's not my server, but It's a big, big server. And my server is hosted of thats server machine. IP: 66.85.14.59:27015
[QUOTE=RandyButter;50792824]Sorry it's not my server, but It's a big, big server. And my server is hosted of thats server machine. IP: 66.85.14.59:27015[/QUOTE] i'd like to know what server this "big, big" server is
my server had 297 addons and about 20 gigs of downloadable content ^_^
[QUOTE=gononono64;50793877]my server had 297 addons and about 20 gigs of downloadable content ^_^[/QUOTE] :wtc:
[QUOTE=StonedPenguin;50793502]I'd like to know what server this "big, big" server is[/QUOTE] You'res <3
[QUOTE=RandyButter;50793906]You'res <3[/QUOTE] what [t]https://fi1.es/B23[/t]
[QUOTE=StonedPenguin;50793969]what [t]https://fi1.es/B23[/t][/QUOTE] Lol [editline]29th July 2016[/editline] [CODE] hook.Add( "PlayerSay", "WeaponRemove", function( ply, text ) if ( string.sub( text, 1, 8 ) == "/destroy" ) then ply:StripWeapon( ply:GetActiveWeapon():GetClass() ) end end)[/CODE] Well, weapon remove sounds alot nicer, and if you'r lagging, it is proboly the other addons. If this is in Gamemodes that change the players name aka Murder then it will not work... And I am really sure that you'r lag issues are either the server, the router the server is hosted off, the addons or it's just you. [editline]29th July 2016[/editline] When you see StonedPenguin on the forums.. after signing up for dev.
[QUOTE=StonedPenguin;50793969]what [t]https://fi1.es/B23[/t][/QUOTE] I mean you have a big server as in, it has a lot of players, it was a complement:smile:
Where did you get the idea it had 95 addons? And that you're hosted on the same machine? And that it's okay to try and steal our client Lua right after making this reply?
[QUOTE=KingofBeast;50798011]Where did you get the idea it had 95 addons? And that you're hosted on the same machine? And that it's okay to try and steal our client Lua right after making this reply?[/QUOTE] Wait what? I got banned for malicious activity, whcih I don't know why. I don't steal files from server and I don't download leaks and I don't do anything of the sort. I think It sensed my auto bhop script. I don't wish to be unbanned fro your server because frankly, I don't care for the ban but I do care about the rep and thats something I don't want to loose for somthing weird like this. I hoped on your server after I got off my bhop server (which I used the autohop thing on) I didn't use it on your server because it doesn't even work for DarkRP. Anyways I don't know how and I will never intend to anyways
That ban is for one thing, and one thing only: if the variable that indicates scripthook is running exists.
[QUOTE=RandyButter;50798907]Wait what? I got banned for malicious activity, whcih I don't know why. I don't steal files from server and I don't download leaks and I don't do anything of the sort. I think It sensed my auto bhop script. [/QUOTE] Feigning ignorance fallacy just makes me think you do steal files, download leaks and act like the epitome of a skid. Don't ask for help if you have someones stolen/leaked code and it causes lag spikes.
[QUOTE=KingofBeast;50798927]That ban is for one thing, and one thing only: if the variable that indicates scripthook is running exists.[/QUOTE] Nope. Never. Nada.
[QUOTE=RandyButter;50799366]Nope. Never. Nada.[/QUOTE] Are you saying your entire life is a false-positive?
[QUOTE=timz9;50799480]Are you saying your entire life is a false-positive?[/QUOTE] Does it sound or look like I'm saying that?
Sorry, you need to Log In to post a reply to this thread.