IHS Caching Mustgather¶
Background¶
IBM HTTP Server includes caching components that can save responses to memory or disk based on standard HTTP caching mechanisms.
Collecting data manually¶
9.0 and later¶
Stop IHS.
Set
LogLevel
totrace8
Uncomment the
mod_net_trace
example in httpd.conf (or httpd.conf.default if the sample is not present). Ensure theNetTraceFile
path is valid and has ample free space.Append the following directive to httpd.conf
GlobalLog logs/cache-debug.log "%h %l %u %t "%r" %>s %b %D %{RH}e %{WAS}e Age=%{Age}o CCI%{Cache-Control}i %{Last-Modified}o ETAGO=%{Etag}o IM=%{If-Match}i INM=%{If-None-Match}i IMS=%{If-Modified-Since}i CCO=%{Cache-Control}o EXP=%{Expires}o V=%{Vary}o CH=%{cache-hit}e CR=%{cache-revalidate}e CI=%{cache-invalidate}e CS=%{cache-status}e"
If using
mod_disk_cache
, specify a temporaryCacheRoot
in httpd.conf for the recreateStart IHS
Recreate the problem
Collect the nettrace, error, access, cache-debug.log, IHS configuration files, and a zip of the
CacheRoot
if applicable. If it is not feasible to send the entireCacheRoot
, find the relevant entries withgrep -a
on the files in the root.
8.5.5 and earlier¶
Stop IHS.
Set
LogLevel
todebug
Uncomment the
mod_net_trace
example in httpd.conf (or httpd.conf.default if the sample is not present). Ensure theNetTraceFile
path is valid and has ample free space.Append the following directive to httpd.conf, once globally and once per virtual host with a unique filename as the first parameter:
CustomLog logs/cache-debug.log "%h %l %u %t "%r" %>s %b %D %{RH}e %{WAS}e Age=%{Age}o CCI%{Cache-Control}i %{Last-Modified}o ETAGO=%{Etag}o IM=%{If-Match}i INM=%{If-None-Match}i IMS=%{If-Modified-Since}i CCO=%{Cache-Control}o EXP=%{Expires}o V=%{Vary}o CH=%{cache-hit}e CR=%{cache-revalidate}e CI=%{cache-invalidate}e CS=%{cache-status}e"
If using
mod_disk_cache
, specify a temporaryCacheRoot
in httpd.conf for the recreateStart IHS
Recreate the problem
Collect the nettrace, error, access, cache-debug.log(s), IHS configuration files, and a zip of the
CacheRoot
if applicable. If it is not feasible to send the entireCacheRoot
, find the relevant entries withgrep -a
on the files in the root.