-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php-fpm 8.4.4 high cpu usage #17806
Comments
Hi. We might need more context ; e.g. pool configuration, what kind of web application could it be, was cpu usage significantly lower with previous php releases .. etc ... |
php.ini: and php-fpm pool: pm.status_path = /fpm-status pm = dynamic |
Thanks.
The reason I ask, often this kind of report comes from major migrations e.g. from 8.2 to 8.4 when behavior differences could be witnessed. |
i'm experiencing issues since 8.3 that was the reason to try 8.4 and it performs like that since that moment. Only way to lower cpu usage is just restart service via |
My big issue is that I don't know ideas how to debug which php code mades this high php-fpm cpu usage. Typically when there is problem I see more then 8 php-fpm processes consuming 100% of cpu. Good news is that machine has 12 cpu cores ... |
Eventually, are fpm logs giving any clue ? |
|
I see... did you try to adjust the pool settings ? e.g. pm.start_servers, pm.max_spare_servers, pm.max_children ... as advised in the logs. |
Changed pool settings to: will wait to see... |
Would it be possible to profile your web app ? e.g. pmcstat is able to do it on a cpu cycles level |
I would guess it won't be related to FPM but the actual execution. Profiling might help with that. Try to also comment out pm.max_requests = 200 or set it very high which can lead to too many unnecessary restarts ... |
No feedback was provided. The issue is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so. Thank you. |
Same problem on production server /usr/bin/php8.3 -i > php83.txt OUTPUT: |
Hi @grisha2217, not entirely sure it is "kind of the same" here. |
Same problem after update from 8.3... |
Description
The following code:
Resulted in this output:
But I expected this output instead:
PHP Version
PHP 8.4.4
Operating System
FreeBSD 14.2-STABLE stable/14-n270410-720d25547745 GENERIC amd64
The text was updated successfully, but these errors were encountered: