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.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!
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.