lost and found ( for me ? )

Apache: mod_status モジュール

mod_status はステータス確認モジュール

# cat /etc/redhat-release
CentOS release 5.4 (Final)

# httpd -v
Server version: Apache/2.2.3
Server built:   Sep  3 2009 17:38:51

- httpd.conf

ExtendedStatus On

    SetHandler server-status

# apachectl restart

# apachectl status
                       Apache Server Status for localhost

   Server Version: Apache/2.2.3 (CentOS)

   Server Built: Sep 3 2009 17:38:51

   --------------------------------------------------------------------------

   Current Time: Saturday, 10-Apr-2010 01:29:46 JST

   Restart Time: Saturday, 10-Apr-2010 01:29:28 JST

   Parent Server Generation: 1

   Server uptime: 17 seconds

   Total accesses: 0 - Total Traffic: 0 kB

   CPU Usage: u0 s0 cu0 cs0

   0 requests/sec - 0 B/second -

   1 requests currently being processed, 7 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
#

# apachectl fullstatus
                       Apache Server Status for localhost

   Server Version: Apache/2.2.3 (CentOS)

   Server Built: Sep 3 2009 17:38:51

   --------------------------------------------------------------------------

   Current Time: Saturday, 10-Apr-2010 01:30:14 JST

   Restart Time: Saturday, 10-Apr-2010 01:29:28 JST

   Parent Server Generation: 1

   Server uptime: 45 seconds

   Total accesses: 1 - Total Traffic: 2 kB

   CPU Usage: u0 s0 cu0 cs0

   .0222 requests/sec - 45 B/second - 2048 B/request

   1 requests currently being processed, 7 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

Srv PID   Acc  M CPU  SS    Req    Conn Child Slot  Client   VHost    Request
                                                                   GET
0-1 2846 0/1/1 _ 0.00 27 0         0.0  0.00  0.00 127.0.0.1 127.1 /server-status
                                                                   HTTP/1.1
                                                                   GET
1-1 2847 0/0/0 W 0.00 0  479705379 0.0  0.00  0.00 127.0.0.1 127.1 /server-status
                                                                   HTTP/1.1

   --------------------------------------------------------------------------

    Srv  Child Server number - generation
    PID  OS process ID
    Acc  Number of accesses this connection / this child / this slot
     M   Mode of operation
    CPU  CPU usage, number of seconds
    SS   Seconds since beginning of most recent request
    Req  Milliseconds required to process most recent request
   Conn  Kilobytes transferred this connection
   Child Megabytes transferred this child
   Slot  Total megabytes transferred this slot

   --------------------------------------------------------------------------

    Apache/2.2.3 (CentOS) Server at localhost Port 80
#

ブラウザからも状態を確認できる。 http://127.1/server-status


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.