I have a problem,mysql server start overloading,it is running like 120% CPU,how can I find php script that is making a problem? Can I do this ? What can I do if no,and if yes,how to find that script.
Tnx in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two quick things you can do to see what’s actually happening. One is to run
topvia the command line and see if it’s truly mysqld, or your php script which is causing the cpu load. The other is to issue theshow processlistfrom MySQL command line to see if there are any long running queries which may be hanging things up. Chances are your PHP script is the culprit and not MySQL.