Posts: 626
Threads: 76
Joined: Apr 2011
Reputation:
0
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.
Posts: 2,431
Threads: 86
Joined: Nov 2009
Reputation:
0
Better optimized script, try to adjust the streaming rates in the server.cfg file.
Posts: 6,129
Threads: 36
Joined: Jan 2009
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.
Posts: 125
Threads: 10
Joined: May 2011
Reputation:
0
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!