How to find cause of CPU peaking
#1

Like once a day, or more, the server's CPU will peak up to 90% +. The high CPU causes the server to freeze/crash.

What can I try to debug to find out what is making the CPU raise that high?

Thank you.
Reply
#2

Better optimized script, try to adjust the streaming rates in the server.cfg file.
Reply
#3

Want better optimization?
Check here https://sampforum.blast.hk/showthread.php?tid=57018
Reply
#4

If you're using serverFFS, their CPU usage count/check is allegedly faulty.

If you actually want to investigate this issue, then you can add debugs in your script to parts of the script that are commonly used so you can try find a problem with your code, then look up guides on optimization to see how you can improve your current code.
Reply
#5

We had the same problem and we have managed to fix the error.

We reviewed the code and saw we had an infinite loop in a for statement

for(j=0; j<5; i++)

Check infinite loops and maybe you got the solution!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)