I am having very high CPU spikes on mysqld process (greater than 100%, and even saw a 300% at one point). My load average is around: .25, .34, .28.
I read this great post about this issue: MySQL high CPU usage
One of the main things to do is disable persistent connections. So I checked my php.ini and mysql.allow_persistent = on
and mysql.max_persistent = -1
-- which means no limit.
This raises a few questions for me before changing anything just to be sure:
- If my mysqld process is spiking over 100% every couple seconds shouldn't my load average be higher then they are?
- What will disabling persistent links do - will my scripts continue to function as is?
- If I turn this off and reload php what does this mean for my current users as there will be many active users.
EDIT:
CPU Info: Core2Quad q9400 2.6 Ghz