Question

Website is taking too much time to open. Need changes MaxRequestWorkers

Posted October 26, 2020 90 views
ApacheServer OptimizationLEMPInitial Server Setup

I am facing slow website and I check apache error log and I found following error

AH00161: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

I saw some tutorial and found that is some issue with my apache2buddy tool and I set MaxRequestWorkers as per tool showing but its not allow or consider more than 256

/etc/apache2/mods-enabled/mpm_prefork.conf file.

Configuration of my mpm_prefork.conf is as following

<IfModule mpm_prefork_module> 
    StartServers                    10
    MinSpareServers                 10
    MaxSpareServers                 40
    MaxRequestWorkers               256
    MaxConnectionsPerChild          10000
</IfModule>

I tried to increase more than 1000 and also used
I am also mention my site structure it such as

http://droplet-ip/console1
http://droplet-ip/console2
http://droplet-ip/console3
http://droplet-ip/console4
http://droplet-ip/console5
http://droplet-ip/console6
http://droplet-ip/console7

I am also my server details which is as following

Ubuntu 18.04 (LTS) x64
Size 4 vCPUs
8GB / 160GB Disk

What’s going wrong please help me to solve this issue

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!