Increasing MaxRequestWorkers in Apache

Hi
How can I increase number of concurrent connections in apache?
I changed mpm module limits in /etc/apache2/apache2.conf, but there are still maximum 150 requests in the task monitor.
What am I missing?
N.

Hi @neven,

You should change it in the conf for that module, not in apache2.conf.

Show the output of this command:

grep -Ri maxrequestworkers /etc/apache2

I did (in mpm_worker.conf, mpm_prefork.conf…), doesn’t seem to matter what I change, workers are still limited to 150.

The output please.

/etc/apache2/mods-enabled/mpm_prefork.conf:# MaxRequestWorkers: maximum number of server processes allowed to start
/etc/apache2/mods-enabled/mpm_prefork.conf:MaxRequestWorkers       2000
/etc/apache2/mods-available/mpm_prefork.conf:# MaxRequestWorkers: maximum number of server processes allowed to start
/etc/apache2/mods-available/mpm_prefork.conf:MaxRequestWorkers       2000
/etc/apache2/mods-available/mpm_worker.conf:# MaxRequestWorkers: maximum number of threads
/etc/apache2/mods-available/mpm_worker.conf:MaxRequestWorkers       3000
/etc/apache2/mods-available/mpm_event.conf:# MaxRequestWorkers: maximum number of worker threads
/etc/apache2/mods-available/mpm_event.conf:MaxRequestWorkers       5000
/etc/apache2/apache2.conf:    MaxRequestWorkers   6000
/etc/apache2/apache2.conf:    MaxRequestWorkers   6000
/etc/apache2/apache2.conf:    MaxRequestWorkers   6000

So you are using mpm_prefork and after restarting apache2 you can’t see any change? How are you checking it?

I found the issue.
ServerLimit also has to be increased. If not, MaxRequestWorkers drops to the value in ServerLimit. :slight_smile:
Thanks for the help!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.