Hello,
I have a problem with one application I have written and I think you can help me to find the solution. My problem is that once my application is running for some hours (sometimes 20 hours, sometimes 250 hours) the CPU used by mysql is 99%. In this case the PC and the application is for sure very slow.
I cannot reproduce this problem on my machine but I imagine that somewhere (for some reason) my application is bombing mysql with a lot of queries.
I now have to find which query is it to find where do I have this query in my code and try to unsderstand where is the problem.
My question is the following:
Is there any way to get an history of all queries executed by mysql where we can see the time of each query?
Any other ideas are welcome.
Thanks in advance for your help.
Alain.
I have a problem with one application I have written and I think you can help me to find the solution. My problem is that once my application is running for some hours (sometimes 20 hours, sometimes 250 hours) the CPU used by mysql is 99%. In this case the PC and the application is for sure very slow.
I cannot reproduce this problem on my machine but I imagine that somewhere (for some reason) my application is bombing mysql with a lot of queries.
I now have to find which query is it to find where do I have this query in my code and try to unsderstand where is the problem.
My question is the following:
Is there any way to get an history of all queries executed by mysql where we can see the time of each query?
Any other ideas are welcome.
Thanks in advance for your help.
Alain.