Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17838

Help! PHP suddenly started using 100% CPU

$
0
0

I have a Wordpress application that gets decent traffic. It's been running fine for awhile but last night PHP started consuming all the CPU. Nginx connections, ram, disk i/o, etc. have not increased whatsoever, only CPU usage.

http://i.imgur.com/Z9Tt6iP.png You can see here that it suddenly shot up. That is a 24 hour view.

I do not know how to isolate the cause of this, since top just displays php5-fpm consuming the memory. I have tried restarting the server entirely, and the CPU usage stays normal for ~5 minutes, and then shoots back up again.

Is there a way I can isolate the PHP script/function that is causing the bottleneck?

submitted by /u/Kezaia
[link] [comments]

Viewing all articles
Browse latest Browse all 17838

Trending Articles