DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

Configure Multi-Processing Modules (MPM) worker.c in Apache 2.2.3

July 5, 2018 DbAppWeb Admin

Multi-Processing Modules (MPM)

The default processing model (MPM) is the process-based ‘prefork’ model. A thread-based model, ‘worker’, is also available, but does not work with some modules (such as PHP). The service must be stopped before changing this variable.

Enable the worker module

To enable the worker module in apache, edit the apache configuration file /etc/sysconfig/httpd and change the below line

#HTTPD=/usr/sbin/httpd.worker

to

HTTPD=/usr/sbin/httpd.worker

Restart the apache service

[root@dbappweb ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root@dbappweb ~]#

Now worker module has been enabled for you apache 2.2.3.

You can change the default values for the worker MPM in the configuration file /etc/httpd/conf/httpd.conf between <IfModule worker.c>…</IfModule> tag. Value for my apache worker.c is shown below:

    ServerLimit          40
    StartServers          2
    MaxClients          1000
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0

Parameters details:

StartServers: initial number of server processes to start
MaxClients: maximum number of simultaneous client connections
MinSpareThreads: minimum number of worker threads which are kept spare
MaxSpareThreads: maximum number of worker threads which are kept spare
ThreadsPerChild: constant number of worker threads in each server process
MaxRequestsPerChild: maximum number of requests a server process serves

The above configuration can handle the 1000 concurrent connections. If you want to handle more concurrent connections then change the above parameters as per your requirements.

 

Prev Article
Next Article
Tags:Apache Apache 2.2.3 MPM worker.c

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com