Can you ```tail -f```` the log file and see what requests are coming in?
PHP-FPM is using 100% cpu
Okay, last night, around 2am on one of my servers the cpu usages went up to 100%. When I checked in this morning, I saw 5 php-fpm processes taking up around 100% cpu together. I've rebooted the server, but everytime the server comes back, the php-fpm processes start again and take 100% cpu.
It's a server build by Laravel Forge, hosted at Digital Ocean.
Obviously the problem causes the websites hosted on the server to be offline, all the time showing either a 502 Bad Gateway or a 504 Gateway Time-out error...
I'm hoping someone can offer some help in fixing this.
I've got 3 other servers, with the exact same setup who don't have any of these problems.
PS. When I look at NewRelic, it shows me that around the same time the problems started, there's a huge increase in "Packets per second" in the network tab, That must have something to do with the problem...
Once you've got the access logs you should be able to see what traffic is coming in. It sounds like something is hitting you a lot. If you see the access logs going crazy with hits then you'll hopefully get an IP address which you can then firewall off at least (for instance sudo iptables -I INPUT -s 123.101.98.135 -j DROP . Could be spammers trying to hit wordpress - I've seen that before sadly :-/
Please or to participate in this conversation.