What are the causes of SRCDS "freezing" for a few minutes
6 replies, posted
So randomly, while we have around 20-25 players, my gmod server will stop responding/time out for players for a few minutes, while that happens the server it's self is fine so it's just srcds freezing and going a bit weird, I can't work out would be causing it? server is 33 tick and there should be plenty of resources left over for the server
when it isn't freezing, it runs perfectly fine and smoothly, and nothing seems to be happening when srcds freezes so, any ideas?
It's called a long frame. It can be caused by something doing a cycle (like a for loop) that takes a long time. Other things can cause it, but mainly loops and stuff will if they're long loops.
[QUOTE=LUModder;48080547]It's called a long frame. It can be caused by something doing a cycle (like a for loop) that takes a long time. Other things can cause it, but mainly loops and stuff will if they're long loops.[/QUOTE]
It's weird, the server is roughly the same as what I had before only I was running ubuntu server, now I'm running centos, I was planning to reinstall back to ubuntu but I assume this might not change anything then? should I look through all the code and just try and find some loops or something that could be running for a long time
is there a good way to tell what's doing it? dunno if slapping prints onto the end of every loop is a good idea, or someone said i should try DBugR but I can only imagine it's gonna cause more issues and be a bit confusing on a RP server with some plugins and other crap
What script are you running? Addons ect?
[QUOTE=MatureGamersNetwork;48081726]What script are you running? Addons ect?[/QUOTE]
Custom nutscript schema (it's very basic, there's not really any special features, just factions/items/etc) a few plugins related to it like badair, radios etc, cake's anticheat, Moderator and that's pretty much it, i think I'm still using acecool's addon to go through gamemode content and resource.addfile it but that this was all running fine before on ubuntu
Type "net_graph 1" into your console, not the server's. Does the text "lerp" turn yellow when the server lags? If it does it means there probably isnt enough CPU or maybe some kind of addon is lagging the shit out of you.
Also CAC is a pretty heavy addon, try temporarily removing it to see if anything is different.
I'm fairly sure the lerp stays the same (100.0ms, normal off-white color) but I'll watch out for it next time, I've looked on the server its self (not srcds) and the resources are totally fine cpu wise, the server takes 10-40% cpu and there's 50% ram left over too, when the freeze thing happens the cpu useage for srcds seems to drop to like 5% or lower
the more I think about it the more I think it being some script breaking makes sense but almost everything we have was running fine before, is it possible just being on centos is causing it when ubuntu/debian would be fine? really tempted to reinstall later but if it's just gonna be a waste of time I won't bother
you think it's plausible in any way there's a weird issue with centos + CAC + maybe nutscript or something? when I was running NS before on ubuntu, CAC ran fine (and if anything, we were having far more people trying to cheat and get triggered on CAC back then)
Sorry, you need to Log In to post a reply to this thread.