1、在httpd.conf增加或者取出相关行注释:
Loadmodule status_module modules/mod_status.so
SetHandler server-status
Order deny,allow
Deny from all
Allow from [你的IP地址或者主机名]
为了限只其他人访问这个页面,所以指定IP地址访问。
2、重启IHS后访问/server-status的页面,(http://IP/server-status/)就会有以下内容显示:
Apache Status
Apache Server Status for TESTserver
- Server Version: IBM_HTTP_Server
- Server Built: Oct 14 2010 17:31:15
- Current Time: Tuesday, 08-Mar-2011 13:51:25 BEIST
- Restart Time: Tuesday, 08-Mar-2011 11:43:30 BEIST
- Parent Server Generation: 0
- Server uptime: 2 hours 7 minutes 54 seconds
- 1 requests currently being processed, 74 idle workers
................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ..____W____________________.........................____________ _____________................................................... ................................................................ ................................................................ ..............................................__________________ _______......................................................... ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................ ................................................................
Scoreboard Key:
“_
” Waiting for Connection,
“S
” Starting up,
“R
” Reading Request,
“W
” Sending Reply,
“K
” Keepalive (read),
“D
” DNS Lookup,
“C
” Closing connection,
“L
” Logging,
“G
” Gracefully finishing,
“I
” Idle cleanup of worker,
“.
” Open slot with no current process
PID Key:
1663052 in state: _ , 1663052 in state: _ , 1663052 in state: _ 1663052 in state: _ , 1663052 in state: W , 1663052 in state: _ 1663052 in state: _ , 1663052 in state: _ , 1663052 in state: _ 1663052 in state: _ , 1663052 in state: _ , 1663052 in state: _ 1663052 in state: _ , 1663052 in state: _ , 1663052 in state: _ 1663052 in state: _ , 1663052 in state: _ , 1663052 in state: _ 1663052 in state: _ , 1663052 in state: _ , 1663052 in state: _ 1663052 in state: _ , 1663052 in state: _ , 1663052 in state: _ 1663052 in state: _ , 1335480 in state: _ , 1335480 in state: _ 1335480 in state: _ , 1335480 in state: _ , 1335480 in state: _ 1335480 in state: _ , 1335480 in state: _ , 1335480 in state: _ 1335480 in state: _ , 1335480 in state: _ , 1335480 in state: _ 1335480 in state: _ , 1335480 in state: _ , 1335480 in state: _ 1335480 in state: _ , 1335480 in state: _ , 1335480 in state: _ 1335480 in state: _ , 1335480 in state: _ , 1335480 in state: _ 1335480 in state: _ , 1335480 in state: _ , 1335480 in state: _ 1335480 in state: _ , 1335480 in state: _ , 1482800 in state: _ 1482800 in state: _ , 1482800 in state: _ , 1482800 in state: _ 1482800 in state: _ , 1482800 in state: _ , 1482800 in state: _ 1482800 in state: _ , 1482800 in state: _ , 1482800 in state: _ 1482800 in state: _ , 1482800 in state: _ , 1482800 in state: _ 1482800 in state: _ , 1482800 in state: _ , 1482800 in state: _ 1482800 in state: _ , 1482800 in state: _ , 1482800 in state: _ 1482800 in state: _ , 1482800 in state: _ , 1482800 in state: _ 1482800 in state: _ , 1482800 in state: _ , 1482800 in state: _
To obtain a full report with current status information you need to use the ExtendedStatus On
directive.
IBM_HTTP_Server Server at TESTserver Port 80
注意:此页面只显示当前IHS的实时状态,而且至少需要占用IHS一个线程来显示管理统计页;当IHS的线程池沾满的时候该页面也无法访问。因此使用这个方法监测有一定的局限性。