# Increasing MaxRequestWorkers in Apache

**URL:** <https://forum.hestiacp.com/t/increasing-maxrequestworkers-in-apache/16142>\
**Category:** Uncategorized\
**Created:** [October 7, 2024, 9:33am UTC](https://forum.hestiacp.com/t/increasing-maxrequestworkers-in-apache/16142 "2024-10-07T09:33:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![neven](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/n/e36b37/32.png) [@neven](https://forum.hestiacp.com/u/neven)\
**Post date:** [October 7, 2024, 9:33am UTC](https://forum.hestiacp.com/t/increasing-maxrequestworkers-in-apache/16142/1 "2024-10-07T09:33:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [October 7, 2024, 11:12am UTC](https://forum.hestiacp.com/t/increasing-maxrequestworkers-in-apache/16142/2 "2024-10-07T11:12:25Z")

</div>

Hi @neven,

> [@neven](#):
>
> I changed mpm module limits in /etc/apache2/apache2.conf,

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

Show the output of this command:

```t
grep -Ri maxrequestworkers /etc/apache2

```

---

<div class="post-metadata">

**Author:** ![neven](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/n/e36b37/32.png) [@neven](https://forum.hestiacp.com/u/neven)\
**Post date:** [October 7, 2024, 11:35am UTC](https://forum.hestiacp.com/t/increasing-maxrequestworkers-in-apache/16142/3 "2024-10-07T11:35:27Z")

</div>

I did (in mpm\_worker.conf, mpm\_prefork.conf…), doesn’t seem to matter what I change, workers are still limited to 150.

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [October 7, 2024, 11:36am UTC](https://forum.hestiacp.com/t/increasing-maxrequestworkers-in-apache/16142/4 "2024-10-07T11:36:18Z")

</div>

The output please.

---

<div class="post-metadata">

**Author:** ![neven](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/n/e36b37/32.png) [@neven](https://forum.hestiacp.com/u/neven)\
**Post date:** [October 7, 2024, 11:37am UTC](https://forum.hestiacp.com/t/increasing-maxrequestworkers-in-apache/16142/5 "2024-10-07T11:37:59Z")

</div>

```auto
/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

```

---

<div class="post-metadata">

**Author:** ![sahsanu](https://forum.hestiacp.com/user_avatar/forum.hestiacp.com/sahsanu/32/9318_2.png) [@sahsanu](https://forum.hestiacp.com/u/sahsanu)\
**Post date:** [October 7, 2024, 12:52pm UTC](https://forum.hestiacp.com/t/increasing-maxrequestworkers-in-apache/16142/6 "2024-10-07T12:52:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![neven](https://forum.hestiacp.com/letter_avatar_proxy/v4/letter/n/e36b37/32.png) [@neven](https://forum.hestiacp.com/u/neven)\
**Post date:** [October 7, 2024, 6:29pm UTC](https://forum.hestiacp.com/t/increasing-maxrequestworkers-in-apache/16142/7 "2024-10-07T18:29:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://forum.hestiacp.com/uploads/default/original/1X/d9a5b68bf50ced83e880b56452e592b204761b19.png) [@system](https://forum.hestiacp.com/u/system)\
**Post date:** [November 6, 2024, 6:29pm UTC](https://forum.hestiacp.com/t/increasing-maxrequestworkers-in-apache/16142/8 "2024-11-06T18:29:54Z")

</div>

Closed on November 6, 2024, 6:29pm UTC

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