LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-23-2015, 06:31 AM   #1
niraj.vara
LQ Newbie
 
Registered: May 2009
Posts: 27

Rep: Reputation: 0
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>
 
Old 01-23-2015, 04:37 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 01-23-2015, 07:04 PM   #3
niraj.vara
LQ Newbie
 
Registered: May 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Hi

That's true but there should be default setting also ? So what is default setting?
 
Old 01-24-2015, 01:56 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by niraj.vara View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FW-Iptables hardening/tunning Biosko Linux - Security 6 11-05-2012 04:03 AM
setting up apache from scratch on a linux machine, apache failed message upon bootup dramous43 Linux - Enterprise 2 01-26-2010 07:53 AM
[SOLVED] ubuntu tunning - old pcs fachamix Ubuntu 6 11-29-2009 11:43 AM
tunning linux isamuede Linux - Software 7 05-05-2009 11:09 AM
setting setting umask for apache user only....how?..plz help mickyman Linux - General 0 05-08-2006 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration