LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Tunning Apache but setting not found (https://www.linuxquestions.org/questions/linux-server-73/tunning-apache-but-setting-not-found-4175531918/)

niraj.vara 01-23-2015 06:31 AM

Tunning Apache but setting not found
 
Hi



I have centos 7 and apache version is httpd-2.4.6 I want to tuning my apache for that I want to change the following parameters
But when I opened the httpd.conf not found any default configuration like below. Please guide where I found that Prefork.c settings in Centos 7

I have copied the below setting from the centos 6 system.

<IfModule prefork.c>
StartServers 16
MinSpareServers 10
MaxSpareServers 40
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

bathory 01-23-2015 04:37 PM

Hi,

In newer Centos-7 and apache 2.4.x, the mpm module used is defined in /etc/httpd/conf.modules.d/00-mpm.conf
So you can put your settings wherever you want, e.g. in /etc/httpd/conf/httpd.conf (like before), in /etc/httpd/conf.modules.d/00-mpm.conf, or create a new conf file /etc/httpd/conf.d/prefork.conf

HTH

niraj.vara 01-23-2015 07:04 PM

Hi

That's true but there should be default setting also ? So what is default setting?

bathory 01-24-2015 01:56 AM

Quote:

Originally Posted by niraj.vara (Post 5305804)
Hi

That's true but there should be default setting also ? So what is default setting?

From the httpd-mpm.conf file, that comes with 2.4.x source, defaults for each module are:
Code:

<IfModule mpm_prefork_module>
    StartServers            5
    MinSpareServers          5
    MaxSpareServers        10
    MaxRequestWorkers      250
    MaxConnectionsPerChild  0
</IfModule>
<IfModule mpm_worker_module>
    StartServers            3
    MinSpareThreads        75
    MaxSpareThreads        250
    ThreadsPerChild        25
    MaxRequestWorkers      400
    MaxConnectionsPerChild  0
</IfModule>
<IfModule mpm_event_module>
    StartServers            3
    MinSpareThreads        75
    MaxSpareThreads        250
    ThreadsPerChild        25
    MaxRequestWorkers      400
    MaxConnectionsPerChild  0
</IfModule>

Read more for each module here and see the default values here


All times are GMT -5. The time now is 08:37 AM.