Issue
A delay happens when a website is loaded for the first time and there is a high TTFB comparing to other handlers.
The issue happens again if the website is reloaded after 30 seconds.
Environment
- CloudLinux OS 6(h)/7(h)/8
- cPanel/Plesk/DirectAdmin/No panel
- mod_lsapi
Solution
1. Set lsapi_backend_pgrp_max_idle = 0 in the /etc/httpd/conf.d/lsapi.conf.
2. Restart the webserver.
Cause
The default value for lsapi_backend_pgrp_max_idle = 30 which means that the 'Master LSPHP' process is killing after 30 seconds, as a result when performing a new request after 30 seconds here is what happens:
Apache creates -->> 'Master LSPHP' process -->> then 'Master LSPHP' creates -->> Worker -->> only after this, client getting a response.
That's why creating a new process takes more time than usual.
Useful links
Comments
0 comments
Please sign in to leave a comment.