Strange constant lag on DarkRp server when players reach 50. What is the reason?
12 replies, posted
Edit: It may be the wrong section? Idk honestly, it's pretty confusing o.O
Hi.
My friend and i are hosting a few Garry's Mod servers, and there is one of them, who have been causing really big problems for a while now.
What happens is, when the server reached about 45-50 players, it goes to constant-laggy mode; server fps at 2.2, which results in 120+ pings too.
And then the weird thing is. Why?
- Our server:
200/200Mbit/s
Intel Core i7 4770 CPU
32 GB ram
Ubuntu 12.04
- The load when the lagg appears:
- 26/12Mbit/s
- ~35-45% cpu usage
- 1-2% of ram
Disk IO is so small, that we there is no reason to put this info here..
MY THEORY: (Idk if this is possible, and this is why im asking you)
- The SRCDS server is single threaded, and even though we have set the server to use core 4-5-6-7 on realtime, it seems to start lagging, when it reaches what equals using one core fully out. (Though there is no core maxed out) The cpu usage of the process goes in the range 95-105 and never goes above this, so i think it's like locked at 100% , even though it could use 400% if it wanted?
I don't know if you guys have anything to say about this, but i think i've tried EVERYTHING, but shoot! You might be the person ending up fixing this! (Which would be soooooo awesome :3)
Can you screenshot the net_graph 3 and what gamemode?
Assuming you don't code any of your stuff take off one addon at a time util you find one that makes a difference. Also SRCDS is single core only so set it to use one core.
#2 I can, but i've just restarted the server, but i will post a screen when it starts to lagg again. :) (And it's DarkRP)
#3 We do code a lot of stuff ourselves, but not all of course. We can't like take one addon off at a time, since we need 45+ players online to get the lagg going, which we can't get, without all addons. ;) (If you understand me)
I was pretty sure SRCDS was single-core, but when i look in htop, and the srcds takes 100% cpu, there is no core which has 100% load. The 4 cores the server is running at, is balanced, almost perfectly. (I'm using tcadmin to administrate the cores the server is running at, and what priority it has. Can this be a problem? - Also i've read that realtime is bad for the server, but i guess it's fine, when it only uses 4 cores? :)) - I'll try setting it to one core only, but i really don't think it's going to help this, but it's worth a shot! ;)
And thank you for your answers! It's nice you want to help!
I am pretty sure it's because either DarkRP is shitty gamemode or your scripts are shitty and unoptimized.
And there is nowhere i can see what process is using idle time? (Like Java JDK?)
A pic of the server lagging with net_graph 4:
[url]http://i.imgur.com/zIgl7H1.png[/url]
[IMG]http://i.imgur.com/zIgl7H1.png[/IMG]
Something spams usermessages as hell. Try using DBugR.
Oh! The graph-thingy is showing serverside-graph? (I thought the graph was clientside.. o.O)
DBugR seems to be the addon i really have been needing. Thanks! I'll tell ya if i can get some useful data out of it.
Um, it is clientside. Something on your server spams usermessages to all clients.
And uhm, i'm kinda lost. In my eyes, there is nothing wrong here?
[url]http://imgur.com/a/GfCqU[/url]
Well. I was thinking, this seemed bad in my eyes? (2700 updates a second, on 4 processes checking for the same purpose?)
[IMG]http://i.imgur.com/oWof0Zz.png[/IMG]
The PlayerCanHearPlayersVoice hook is just like that. Though I doubt it's the source of lag in this case.
I just seem not to be able to find anything else intense. :S
What should i look for? :)
This is still a problem. We fixed some of the lagg by setting tickrate to 22, is there anything else we can do? We played around with bitrates, no results.
Can FPP be a cause to the lagg?
Sorry, you need to Log In to post a reply to this thread.