Using too much CPU...Need help :(
#9

I can think of 3 possible causes

1. Infinite Looping Timers inside of Infinite Looping Timers.
-Perhaps you set a timer to go off after a timed operation, but it's infinitely looping, so it's running the 2nd timer over and over, which is also infinitely looping. So in it's making more and more timers, and multiplying.

2. Opening multiple Files without closing.
-This was a problem I had with my temporary ban script which would check per minute to see if a player should be unbanned. If you're opening a file and not closing it, it stays open to the server. So opening file after file will eventually build up.

3. Broken loop.
- A mis-typed loop function may not show up in pawno as incorrect, but will just freeze the server.
ex:
pawn Код:
for(new i;loop=15;loop++) // In every loop, 'i' = 15
{
  ....
}

I think 1 is a more possible reason as 2 refers more towards memory.
Reply


Messages In This Thread
Using too much CPU...Need help :( - by Outbreak - 23.02.2009, 13:59
Re: Using too much CPU...Need help :( - by KnooL - 23.02.2009, 14:27
Re: Using too much CPU...Need help :( - by Nero_3D - 23.02.2009, 14:31
Re: Using too much CPU...Need help :( - by Outbreak - 23.02.2009, 14:53
Re: Using too much CPU...Need help :( - by x-cutter - 23.02.2009, 15:01
Re: Using too much CPU...Need help :( - by Outbreak - 23.02.2009, 15:41
Re: Using too much CPU...Need help :( - by Nero_3D - 23.02.2009, 16:20
Re: Using too much CPU...Need help :( - by Outbreak - 23.02.2009, 16:28
Re: Using too much CPU...Need help :( - by Joe Staff - 23.02.2009, 16:49
Re: Using too much CPU...Need help :( - by Outbreak - 23.02.2009, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)