mpm

Monday, September 9, 2019

5:38 PM

  mpm_prefork_module          mpm_worker_module      mpm_event_module

mpm_netware_module    mpm_mpmt_os2_module      mpm_winnt_module           mpm_netware_module

 

/opt/oracle/HTTPServer24/conf/extra/httpd-mpm.conf 

 

 

<IfModule !mpm_netware_module>

    PidFile "logs/httpd.pid"

</IfModule>

 

<IfModule mpm_prefork_module>

    StartServers                  5

    MinSpareServers         5

    MaxSpareServers         5

    MaxRequestWorkers       40

    MaxConnectionsPerChild  5000

    ServerLimit             10

</IfModule>

 

<IfModule mpm_worker_module>

    StartServers            5

    MinSpareThreads         20

    MaxSpareThreads         40

    ThreadsPerChild         20

    MaxRequestWorkers       40

    MaxConnectionsPerChild  5000

    ServerLimit             10

</IfModule>

 

<IfModule mpm_event_module>

    StartServers            20

    MinSpareThreads         75

    MaxSpareThreads        250

    ThreadsPerChild         25

    MaxRequestWorkers     1600

    MaxConnectionsPerChild   0

</IfModule>

 

<IfModule mpm_netware_module>

    ThreadStackSize        65536

    StartThreads                250

    MinSpareThreads         25

    MaxSpareThreads        250

    MaxThreads                 1000

    MaxConnectionsPerChild   0

</IfModule>

 

<IfModule mpm_mpmt_os2_module>

    StartServers             2

    MinSpareThreads          5

    MaxSpareThreads         10

    MaxConnectionsPerChild   0

</IfModule>

 

<IfModule mpm_winnt_module>

    ThreadsPerChild        150

    MaxConnectionsPerChild   0

</IfModule>

 

<IfModule !mpm_netware_module>

    MaxMemFree            2048

</IfModule>

 

<IfModule mpm_netware_module>

    MaxMemFree             100

</IfModule>

Directives that are implemented by more than one multi-processing module (MPM)

mpm_common

01  CoreDumpDirectory

02  EnableExceptionHook

03  GracefulShutdownTimeout

04  Listen

05  ListenBackLog

06  ListenCoresBucketsRatio

07  MaxConnectionsPerChild

08  MaxMemFree

09  MaxRequestWorkers

10  MaxSpareThreads

11  MinSpareThreads

12  PidFile

13  ReceiveBufferSize

14  ScoreBoardFile

15  SendBufferSize

16  ServerLimit

17  StartServers

18  StartThreads

19  ThreadLimit

20  ThreadsPerChild

21  ThreadStackSize

oracle> httpd -l

Compiled in modules:

  core.c

  mod_so.c

  http_core.c

 

List all modules:  httpd -M

 

httpd -V:

Server MPM:     prefork

      threaded:     no

           forked:     yes (variable process count)

 

 

 

Machine generated alternative text:
Balanced Apache Tuning Improves Performance and Throughput 
Heavy Load 
http requests 
http requests 
http requests 
http requests 
Removing ServerLimit will 
make Apache default to 16, 
so a maximum of 16 http 
worker processes could be 
spawned as demand 
increases. Increasing 
ServerLimit allows more 
httpd.worker processes. 
Apache HTTP Server 
Fewer threads sharing 
more connections 
create a better 
balance in demand on 
OAP connections 
Fewer 
ThreadsPerChild 
reduces the 
number of threads 
that have to wait in 
queue for an open 
OAP connection to 
help mitigate 
contention 
WebLogic 
Access Server 
ID Store 
Increasing Max Connections 
and AAA Timeout Threshold 
help throughput, minimize 
busy waiting threads, and 
unresponsive connection 
resets 
Policy 
Webgate Definition: 
Max Connections 8 
AAA Timeout Threshold 20 
client _ request _ retry _ attempts 2 
htt 
htt 
htt 
htt 
Webgate 
d.worker 
64 Threads 
d.worker 
64 Threads 
d.worker 
64 Threads 
d.worker 
64 Threads 
LDAP 
Database 
Increasing retry 
attempts may help 
threads contacting 
a busy Access 
Server to try again 
before giving up. 
Apache Tuning Configurations: 
ThreadsPerChild 64 
MaxClients ThreadsPerChild * ServerLimit 
MaxClients 512

 

 

Machine generated alternative text:
Apache Prefork Mode 
listener 
socket 
queue 
one request/ 
process at a time 
Apache Worker Mode 
httpd 
listener 
socket 
queue 
each process 
handles multiple 
requests, one in 
each of its 
threads. If all 
threads are full in 
a process, use an 
empty thread in 
another process. 
httpd.worker 
httpd.worker 
httpd.worker 
additional processes 
created to service 
simultaneous requests 
as necessary 
additional processes 
can be created if 
necessary 
thread 
thread 
thread 
thread 
thread 
thread 
httpd.worker 
httpd.worker

 

 

 

CoreDumpDirectory Directive

  Directory where Apache HTTP Server attempts to switch before dumping core

  CoreDumpDirectory directory

 

EnableExceptionHook Directive

  Enables a hook that runs exception handlers after a crash

  EnableExceptionHook On|Off

 

GracefulShutdownTimeout Directive

  Specify a timeout after which a gracefully shutdown server will exit.

  GracefulShutdownTimeout seconds

 

Listen Directive

  IP addresses and ports that the server listens to

  Listen [IP-address:]portnumber [protocol]

 

ListenBackLog Directive

  Maximum length of the queue of pending connections

  ListenBackLog backlog

 

ListenCoresBucketsRatio Directive

  Ratio between the number of CPU cores (online) and the number of listeners buckets

  ListenCoresBucketsRatio ratio

 

MaxConnectionsPerChild Directive

  Limit on the number of connections that an individual child server will handle during its life

  MaxConnectionsPerChild number

 

MaxMemFree Directive

  Maximum amount of memory that the main allocator is allowed to hold without calling free()

  MaxMemFree KBytes

 

MaxRequestWorkers Directive

  Maximum number of connections that will be processed simultaneously

  MaxRequestWorkers number

 

MaxSpareThreads Directive

  Maximum number of idle threads

  MaxSpareThreads number

 

MinSpareThreads Directive

  Minimum number of idle threads available to handle request spikes

  MinSpareThreads number

 

PidFile Directive

  File where the server records the process ID of the daemon

  PidFile filename

 

ReceiveBufferSize Directive

  TCP receive buffer size

  ReceiveBufferSize bytes

 

ScoreBoardFile Directive

  Location of the file used to store coordination data for the child processes

  ScoreBoardFile file-path

 

SendBufferSize Directive

  TCP buffer size

  SendBufferSize bytes

 

ServerLimit Directive

  Upper limit on configurable number of processes

  ServerLimit number

 

StartServers Directive

  Number of child server processes created at startup

  StartServers number

 

StartThreads Directive

  Number of threads created on startup

  StartThreads number

 

ThreadLimit Directive

  Sets the upper limit on the configurable number of threads per child process

  ThreadLimit number

 

ThreadsPerChild Directive

  Number of threads created by each child process

  ThreadsPerChild number

 

ThreadStackSize Directive

  The size in bytes of the stack used by threads handling client connections

  ThreadStackSize size

 

 

Created with Microsoft OneNote 2016.