Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

LancelotProgrammer1454's avatar

High CPU usage PHP FPM With Laravel

I have Laravel 10 with php 8.1 running on Nginx server with single core 2GHz AMD CPU and 1 GB of RAM. I noticed a high CPU usage when accessing the API (even if the end point do nothing heavy). Each requests take about 24% of CPU usage, I tried the same thing but using PHP Slim and it only used around 2-3%. Moreover, when only 3 people access my Laravel API at the same time, the CPU usage spikes to 100%. The server is for development and there is no traffic.

is that normal? what is the CPU usage for you? and is there any solution or some areas to consider?

0 likes
1 reply
Braunson's avatar

Have you tried debugging the queries and your app to see where the bottleneck(s) are? There are tons of tools to do this (ie. xdebug, Clockwork, BlackFire, Telescope, New Relic, etc).

Have you run htop to see how many FPM workers are running? Possibly too many? Check your logs?

Please or to participate in this conversation.