Have you got any code that could possibly be looping and taking memory?
You obviously can't keep raising the limits since it's just going to fill it.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
We have a EC2 server which was doing fine until this morning. Suddenly, the CPU reached near 100% and stayed there consistently. I looked at the FPM logs:
server reached pm.max_children setting (5), consider raising it.
I did raise it and changed some values as well.
pm.max_children = 40 pm.start_servers = 15 pm.min_spare_servers = 15 pm.max_spare_servers = 25 pm.max_requests = 500
But the CPU is still 100%.
The PHP-FPM7.1 is taking all the CPU. The memory usage is minimal.
Before this morning, it was always below 10-20% for the last few months.
The server is created and deployed by Laravel Forge.
It has 2 Cores and 8GB RAM.
Anyone could shed a light on this please.
Please or to participate in this conversation.