logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Which MPM used by apache bydefalt
Author
niraj_vara



Joined: 03 Feb 2014
Posts: 6
Location: India

PostPosted: Mon 03 Feb '14 15:00    Post subject: Which MPM used by apache bydefalt Reply with quote

Hi

I have question for apache in centos. I loaded the apache and I want to know that which MPM used by default two MPM defined in apache but which MPM apache actually used for request server.

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>


<IfModule worker.c>
StartServers 4
MaxClients 300
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 03 Feb '14 17:03    Post subject: Reply with quote

Well by default CentOS uses prefork mpm.

but you can find out using the shell

Code:

user:@host:~$which httpd
user:@host:~$/usr/sbin/httpd -V
/usr/sbin/httpd -V
Server version: Apache/2.4.7 (Unix)
Server built:   Nov 20 2013 15:08:36
Server's Module Magic Number: 20120211:27
Server loaded:  APR 1.5.0, APR-UTIL 1.5.3
Compiled using: APR 1.5.0, APR-UTIL 1.5.3
Architecture:   64-bit
Server MPM:     event
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/opt/apache2"
 -D SUEXEC_BIN="/opt/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
Back to top
niraj_vara



Joined: 03 Feb 2014
Posts: 6
Location: India

PostPosted: Tue 04 Feb '14 9:25    Post subject: Reply with quote

Hi

Thnks It help me to decide the same.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 04 Feb '14 10:50    Post subject: Reply with quote

However I recommend to use worker mpm with php over mod_fcgid.
Back to top
niraj_vara



Joined: 03 Feb 2014
Posts: 6
Location: India

PostPosted: Tue 04 Feb '14 11:40    Post subject: Reply with quote

Hi

I have the application with perl . would tell me how to enable the worker?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 04 Feb '14 12:43    Post subject: Reply with quote

edit /etc/sysconfig/httpd

Uncomment:
Code:

HTTPD=/usr/sbin/httpd.worker


service httpd restart
Back to top
niraj_vara



Joined: 03 Feb 2014
Posts: 6
Location: India

PostPosted: Wed 05 Feb '14 8:24    Post subject: Reply with quote

Hi

Tnks
Back to top


Reply to topic   Topic: Which MPM used by apache bydefalt View previous topic :: View next topic
Post new topic   Forum Index -> Apache