wemp
wemp copied to clipboard
Timeout Issues with Single php-cgi Process Handling Multiple Requests
Issue Description
When executing multiple concurrent requests, I am encountering timeout issues. It appears that only one php-cgi
process is spawned to handle all the requests, which leads to requests being queued and eventually timing out, especially if they are complex or resource-intensive.
Expected Behavior
Ideally, multiple php-cgi
processes should be spawned automatically to handle multiple concurrent requests efficiently, preventing timeouts and ensuring better performance.
Steps to Reproduce
- Set up WEMP with the default configuration.
- Execute multiple concurrent requests that require processing by
php-cgi
. (e.g. curl_setopt) - Observe that only one
php-cgi
process is handling all the requests, leading to timeouts.
Environment
- WEMP version: 0.9.8
- NGINX version: 1.26.0
- PHP version: 8.3.7
- Windows version: 11
Additional Context
This issue does not occur when using Apache, where multiple requests are handled without timeouts. The problem seems specific to how WEMP is managing php-cgi
processes under load.
I would appreciate any guidance on how to configure WEMP to spawn multiple php-cgi
processes or any other recommended solutions to this problem. I think PHP-FPM (FastCGI Process Manager) is designed to spawn and manage multiple PHP processes.
Thank you for your assistance! Very great project and a good alternative to XAMPP.