16.05.2012, 00:38
Hey there guys,
I have a roleplay script, and about every hour or so, I get one problem, that is my server CPU rocketing to over %100 and the server will show no response. when I click it in the server list, the ping will update, but nobody can connect and the player list will be still.
I think that this is probably caused by a never-ending loop, but I've went through almost all my for loops and my while are clean. I've removed alot of code under OnPlayerUpdate, checked my login scripts, and nothing. Also I do very little mass saving (basically saving small data on-the-run and on player disconnect/login).
Is there a sort of plugin or way to track the cause of this? -crashdetect wouldn't be useful since the server isn't crashing, but having a sort of hanging state, probably caused by a never-ending loop.
I have a roleplay script, and about every hour or so, I get one problem, that is my server CPU rocketing to over %100 and the server will show no response. when I click it in the server list, the ping will update, but nobody can connect and the player list will be still.
I think that this is probably caused by a never-ending loop, but I've went through almost all my for loops and my while are clean. I've removed alot of code under OnPlayerUpdate, checked my login scripts, and nothing. Also I do very little mass saving (basically saving small data on-the-run and on player disconnect/login).
Is there a sort of plugin or way to track the cause of this? -crashdetect wouldn't be useful since the server isn't crashing, but having a sort of hanging state, probably caused by a never-ending loop.