I have a PHP 8.3 application which is running on a vhost in apache2 server. It’s very slow and a single page refresh can take a minute or two sometime.
When I work on it (open it in browser), the whole apache2 server freezes for a couple of minutes.
During this period, I can’t access other vhosts or even a simple directory listing which is not using PHP at all.
I tried both FPM and libapache2-mod-php approach and still face the problem.
I set loglevel warn
but I don’t see anything.
I also experimented with these settings and still nothing.
StartServers 100
MinSpareServers 100
MaxSpareServers 1024
ServerLimit 16000
MaxRequestWorkers 16000
MaxConnectionsPerChild 10000
#Timeout 300
KeepAlive On
MaxKeepAliveRequests 0
#KeepAliveTimeout 5
I am using apache2 and PHP on a WSL 1 Ubuntu server.
How do I solve it?