PDA

View Full Version : Server freezes on map change for about 30 seconds when there are more than 25 players


dilalmon
04-06-2015, 17:42
I figured this was related to queries or plugins, but I'm starting to think it's not.


L 04/06/2015 - 17:22:00: [sstore.smx] sstore OnMapEnd () done: started 1428355320
L 04/06/2015 - 17:22:00: [mg.smx] OnMapEnd(): started 1428355320
L 04/06/2015 - 17:22:00: [mg.smx] OnMapEnd(): ended 1428355320
L 04/06/2015 - 17:22:30: Error log file session closed.
L 04/06/2015 - 17:22:31: SourceMod error session started
L 04/06/2015 - 17:22:31: Info (map "mg_satellite") (file "errors_20150406.log")
L 04/06/2015 - 17:22:31: [mg.smx] OnMapStart() started: 1428355351
L 04/06/2015 - 17:22:31: [mg.smx] OnMapStart() ended: 1428355351
L 04/06/2015 - 17:22:31: [sstore.smx] OnMapStart() started: 1428355351
L 04/06/2015 - 17:22:31: [sstore.smx] OnMapStart() ended: 1428355351
As you can see in the log, the server freezes for about 30 seconds when it's done through all of the plugins OnMapEnd() forwards, and even before OnMapStart() is triggered.

What can possibly be the cause of this?
I've already validated the server files, and updated to the latest snapshots. I do not have any extensions other than the one that comes with by default.

It happens on different maps. It is not map-related.

Miu
04-06-2015, 18:42
i guess there should be some kind of debugger that will tell you where the thread is at during that time

Neuro Toxin
04-06-2015, 19:31
Is the freeze longer/shorter based on player counts?

Does this happen constantly?

Do you get errors / warnings in sourcemod / server logs?


If this started happening recently, what server changes had you made before hand.

Neuro Toxin
04-06-2015, 19:36
Also in relation to database threads. You may have the first call during OnMapEnd threaded. A callback might be received after the event which then is non threaded causing your freeze.

I suggest unloading shop and other database related plugins towards map end and see if your freeze still occurs.

asherkin
04-07-2015, 07:45
I suggest unloading shop and other database related plugins towards map end and see if your freeze still occurs.

Unloading a plugin requires a DB thread sync, so will stall the server if there are lots of threaded queries queued.

Dr. Greg House
04-07-2015, 07:57
As far as I can see this only means that some plugin is doing stuff that takes a considerable amount of time in it's OnMapEnd() forward.
What happens if you don't use any plugins except for sourcemod's base plugins?
Full plugin list would be helpful.