SA-MP Forums Archive
How to identify - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: How to identify (/showthread.php?tid=427068)



How to identify - Fernado Samuel - 31.03.2013

Removed


Re: How to identify - Neil. - 31.03.2013

Scriptwise, try Debugging. I've read you're using MySQL. Search for While loops and check if a never-ending loop is taking place. (Add some print function before, after, and when it's looping). Long story short, check for Recursions. Recursions may cause a cpu lag spike like that. Also a server freeze (If you happen to have one, it's ought to be a Recursion)


Re: How to identify - Fernado Samuel - 31.03.2013

Removed


Re: How to identify - Neil. - 31.03.2013

Quote:
Originally Posted by Fernado Samuel
Посмотреть сообщение
Ok, the graph i shown above have any problems? that CPU usage can cause any further problems related to the server?
If you are experiencing some kind'of lag when you know it isn't right, then it's a script problem and you should really optimize your script or look for lag-related issues (Possibly the overuse of OPU).

Are your users complaining about something that ain't right at the time of the cpu spike? If so, then do what I've said above.


Re: How to identify - Abhishek. - 31.03.2013

open task manager then process and you will see all your running process stop out the ones takeing a lot cpu usage or the ones not needed and you will see the cpu usage will just decrease


Re: How to identify - Fernado Samuel - 31.03.2013

Removed


Re: How to identify - Abhishek. - 31.03.2013

sorry sir i thought you are asking about you cpu in windows didnt read the line "I'm using MySQL script."
and was a bit confused
well you problem is mostly because of the extra objects you created in your script and the extra codes which are not efficient so you need to find them your self and make it better and efficient.


Re: How to identify - Fernado Samuel - 01.04.2013

Removed


Re: How to identify - Fernado Samuel - 03.04.2013

bump


Re: How to identify - nickdodd25 - 03.04.2013

What version of the MySQL plugin are you using and on average how many players were on during that time that the graph shows?