Apache HTTP Server Version 2.4
Description: | MPM/thread monitoring module for IBM HTTP Server |
---|---|
Status: | Extension |
Module Identifier: | mpmstats_module |
Source File: | mod_mpmstats.c |
This module logs periodic information about IBM HTTP Server processing threads in the error log. Prior to V7R0, it was only available as part of the ihsdiag mustgather tool.
mpmstats: rdy 24 bsy 1 rd 0 wr 1 ka 0 log 0 dns 0 cls 0
...
module mod_test.c took 5000ms to return OK in phase handler
...
mpmstats (long-running requests): bsy: 3 in mod_test.c
Apache MPM event
.TrackModules
Description: | Configures interval based reporting even when all threads are |
---|---|
Syntax: | AlwaysReport ON|OFF |
Default: | OFF |
Context: | server config |
Status: | Extension |
Module: | mod_mpmstats |
Set this directive to on to print a report even when all threads in the server are idle.
Description: | Sets threshold for "approaching MaxClients..." notice |
---|---|
Syntax: | MPMStatsBusyThreshold ratio |
Default: | MPMStatsBusyThreshold 0.9 |
Context: | server config |
Status: | Extension |
Module: | mod_mpmstats |
Compatibility: | IHS 9.0.5.5 and later (PH24265) |
By default, IHS periodically warns if 90% of the servers threads are busy. Use this directive to change the threshold by specifying a value between ".01" and "1.0".
Description: | Copies "approacing MaxClients..." notice to z/OS system log |
---|---|
Syntax: | MPMStatsSystemLog ON|OFF |
Default: | MPMStatsSystemLog OFF |
Context: | server config |
Status: | Extension |
Module: | mod_mpmstats |
Compatibility: | IHS 9.0.5.5 and later on z/OS (PH24265) |
This directive copies the "approaching MaxClients..." message to the z/OS system log. The message has the format as shown below
BPXM023I ($USERID) CRIHS0003I $JOBNAME mpmstats: approaching MaxClients ($THREADSUSED/$MAXCLIENTS)
Description: | Configures the interval for writing thread statistics |
---|---|
Syntax: | ReportInterval #-of-seconds |
Default: | 0, but default configuration has ReportInterval 300 |
Context: | server config |
Status: | Extension |
Module: | mod_mpmstats |
Every ReportInterval
number of seconds, this module reports
thread statistics if the server is non-idle.
Description: | Sets a trigger for modules exceeding a specific timeout |
---|---|
Syntax: | SlowThreshold seconds | millisecondsms |
Default: | unset |
Context: | server config |
Status: | Extension |
Module: | mod_mpmstats |
This directive causes requests or module invocations which take more than the specified timeout to generate two new messages:
ReportInterval
, that
thread will be individually reported in this modules output in the form
mpmstats (long-running requests): bsy: 3 in mod_test.c
TrackHooksOptions
logslow
, when a module uses more than the threshold time in any phase of processing,
an immediate ErrorLog entry of the form:
module mod_test.c took 5000ms to return OK in phase handler
Description: | Enables SMF reporting of mpmstats data |
---|---|
Syntax: | SMFReportInterval seconds |
Default: | 0 |
Context: | server config |
Status: | Extension |
Module: | mod_mpmstats |
Compatibility: | IHS 8.5.5 and later on z/OS only |
If set to a non-zero value, IHS writes an SMF Type 103 Subtype 13 record with the following contents.
field | length |
---|---|
parent process ID | 4 |
ready threads | 4 |
busy threads | 4 |
reading threads | 4 |
writing threads | 4 |
logging threads | 4 |
dns threads | 4 |
closing threads | 4 |
keepalive threads | 4 |
bytes served | 8 |
requests served | 8 |
servername len | 4 |
servername | $servername_len |
Description: | Enables reporting of time spent in individual Apache phases |
---|---|
Syntax: | TrackHooks allhooks | post_read_request | check_userid | check_user_access | auth_checker | handler |
Default: | unset |
Context: | server config |
Status: | Extension |
Module: | mod_mpmstats |
This directive allows the time spent in each Apache phase to be recorded in an environment variable. Original documentation on this feature
Description: | Enables more detailed tracking of hooks |
---|---|
Syntax: | TrackHooksOptions millis|permodule|logslow|notice|allopts |
Default: | unset |
Context: | server config |
Status: | Extension |
Module: | mod_mpmstats |
This directive allows the time spent in each Apache phase to be recorded in an environment variable. Original documentation on this feature
SlowThreshold
is exceeded. Without the "notice" option below, the message is logged at INFO level.logslow
condition occurs, log at NOTICE level instead of INFODescription: | Enables reporting of individual modules busy on a thread |
---|---|
Syntax: | TrackModules ON|OFF |
Default: | ON |
Context: | server config |
Status: | Extension |
Module: | mod_mpmstats |
This directive, which depends on ExtendedStatus
, enables reporting of which
Apache modules are executing on active threads.
mpmstats: bsy: 1 in mod_was_ap22_http.c