I have had some issues with a site (basically MySQL is killing the proccessor)
I found the using top in the comand line showed me that it was MySQL throttling the proccessors.
So I ran the mysqladmin processlist command.
which showed
ID—–user—–Host—–DB—–Command—–Time—–State——– Info
47—–XXX——XXX——-XXX—-Query———–2400—–Statistics—-SELECT DISTINCT…..
I belive this is telling me that the above query is taking way too long, stuck or won’t complete.
My developer has asked me if there is a way to determine any more information like what’s generating this etc etc
The output you’ve pasted shows that the query listed has been running for 2400 seconds, whether this is too long or longer than usual is impossible for anyone but you to say.
If you run a SHOW FULL PROCESSLIST instead of just SHOW PROCESSLIST, MySQL will tell you the full query being ran, not just the first few words.
Once you can see the exact query you’re running, you / your developer should be able to find it in the source of the site using the database.