-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
frankenphp lockup and excess cpu usage on complex curl requests #1245
Comments
With 'complex curl request' you mean that the server is making a long request to an external API? It looks like those requests are timing out |
Do you have an example of the PHP code? |
simple get api is created with curl code and the content of the domain is uploaded according to the incoming response
in our latest tests we get errors like this after wrk |
api response 0.2 - 0.5 ms so we don't have any problem, the problem we have now is that while doing a url load test for testing purposes, it is blocked and does not respond to any new connection. We have done more than 10 tests for many days but we could not solve the problem. |
When we do a load test on our existing curl requesting pages, if we accept a maximum of 62/s request and we go above it, the webserver and php server enter the bug and it takes 5-10 minutes to come to itself, we test with nginx on the same server and there is no problem in almost the same conditions. |
https://github.com/dunglas/frankenphp-wordpress after installing and configuring the settings in this github repo, the result did not change in this official repo in the same similar tests |
Did you try changing the number of threads? Your number of threads may be too low and requests buffered: https://frankenphp.dev/docs/performance/#number-of-threads-and-workers Also, my WordPress repository has been deprecated in favor of https://github.com/StephenMiracle/frankenwp |
we tested frankenwp as a reference and saw the warning in the repo https://frankenphp.dev/docs/performance/#number-of-threads-and-workers We have tested the settings in this issue more than once, the part that we cannot understand is why our non-curl php codes work more performance than the pages with curl. |
What happened?
I have a code that works with php curl, me api request and then uploads the content, this code works both on the php-fpm side.
I uninstalled docker contanieer with docker engine and frankenphp on a ryzen 9 server
my own observation
When we test with the wrk tool on php pages where we throw a complex curl request, we see that caddy and frankenphp are locked and do not accept new requests, the load of the server is zero but the web server does not offer content.
request thrown page with proof of wrk curl

proof of wrk php code with simple get curl request

php page without any curl request
existing cadyyfile
Build Type
Docker (Debian Bookworm)
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output
No response
The text was updated successfully, but these errors were encountered: