PHP-FRM gets 100% of CPU

March 16, 2014 1.1k views
I see more than 100 Active Connections in Nginx, and Load Average is about 10. php-frm take 100% of CPU and my server starts responding with Error 502. When I restart php-frm or reboot server it repeats again. But I not see many users in Google Analytics Realtime. Only 1-2 users in second. I run my server few years and I never had this problem. Even when I had 20-30 users in second, server was ok, Load Average was < 1.
1 Answer
Have you tried profiling your PHP applications? Maybe there's a function or piece of code that enters a loop and keeps at it, or even a background job that for some reason doesn't end.
Have another answer? Share your knowledge.