Jump to content

mysql using up all memory


ukscotth

Recommended Posts

Hi,

 

Recently I have been getting emails warning me of a high system load ( up in the 20s ). I look at the processes and its always mysql thats using all the cpu. I have been fixing the problem by simply rebooting the server which obviously isnt the right thing to do.

 

Can anyone please tell me how I can find out what site and user it is that is causing the high cpu load when it happens ?

 

Many thanks,

 

Scott.

 

 

Link to comment
https://forums.phpfreaks.com/topic/276566-mysql-using-up-all-memory/
Share on other sites

The title says memory but your post says CPU.

 

MySQL should be using as much memory as it possibly can. That's a good thing. If it's using too much CPU then it's probably choking on some difficult queries. Use the slow query log (or do some SHOW FULL PROCESSLISTs) to see what it's trying to work on during those high loads.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.