XML/HTML代码

Apache Server Status for www.blogguy.cn
Server Version: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch
Server Built: Apr 19 2010 19:57:58 -------------------------------------------------------------------------------- Current Time: Monday, 19-Jul-2010 05:58:58 MSD
Restart Time: Monday, 19-Jul-2010 05:49:34 MSD
Parent Server Generation: 0
Server uptime: 9 minutes 24 seconds
5 requests currently being processed, 4 idle workers
_K_W._W_KK......................................................
................................................................
................................................................
................................................................
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: 24279 in state: _ , 20020 in state: K , 29820 in state: _
29821 in state: W , 7553 in state: _ , 29830 in state: W
7560 in state: _ , 20286 in state: K , 20255 in state: K -------------------------------------------------------------------------------- To obtain a full report with current status information you need to use the ExtendedStatus On directive. -------------------------------------------------------------------------------- Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch Server at www.blogguy.cn Port 80

  

接下来一行一行的看

首先访问地址是:http://IP:端口/server-status,这是基本格式,如果你要启用本页面的自动刷新功能,可以这样http://IP:端口/server-status?refresh=10,表示每10秒钟自动刷新本页面。

接下来的3行

Apache Server Status for 
Server Version: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch 
Server Built: Apr 19 2010 19:57:58

表示服务的配置地址,版本,安装日期等,不是重点略看一下。

接下来的是重点了

Current Time: Monday, 19-Jul-2010 05:58:58 MSD //表示blogguy.cn的服务器上的时间
Restart Time: Monday, 19-Jul-2010 05:49:34 MSD //上次重启时间
Parent Server Generation: 0 //大概是这样一个东西,apache在正常运行后,apache的父进程会重读配置文件,如果配置文件有改动那么就强制所有apache的子进程重启,Parent Server Generation就是记录这个重启次数的。
Server uptime: 9 minutes 24 seconds //apache的持续运行时间,blogguy.cn刚重启哈,才被卡死
5 requests currently being processed, 4 idle workers //当前任务运行状况,正在处理的请求是5个,空闲的活动是4个

_K_W._W_KK......................................................
................................................................
................................................................
................................................................

的含义是:

_:等待连结中。
     S:启动中。
     R: 正在读取要求。
    W:正在送出回应。
    K:处于保持联机的状态。
    D:正在查找 DNS。
    C:正在关闭连结。
    L:正在写入记录文件。
    G:进入正常结束程序中。
    I:处理闲置。
    .:尚无此程序。

PID Key:

24279 in state: _ ,   20020 in state: K ,   29820 in state: _ 
   29821 in state: W ,   7553 in state: _ ,   29830 in state: W 
   7560 in state: _ ,   20286 in state: K ,   20255 in state: K

描述的是每个活动的状态信息,前面的数字代表进程号

To obtain a full report with current status information you need to use the ExtendedStatus On directive.//如果你需要看到更加详细的服务器状态报告,你需要把相应的选项打开。意思是说,本来server-status还可以提供一些选项给你看的,可惜你没有打开,如果你打开你可以看到流量信息,cpu信息等。但是官方文档说这样会导致安全隐患。

vi /etc/apache2/apache2.conf

在文件中添加一句:ExtendedStatus On

/etc/init.d/apache2 restart

重启然后再访问http://IP:端口/server-status,看看效果:

XML/HTML代码

Apache Server Status for www.blogguy.cn
Server Version: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch
Server Built: Apr 19 2010 19:57:58 -------------------------------------------------------------------------------- Current Time: Monday, 19-Jul-2010 06:43:17 MSD
Restart Time: Monday, 19-Jul-2010 06:43:01 MSD
Parent Server Generation: 0
Server uptime: 15 seconds
Total accesses: 14 - Total Traffic: 56 kB
CPU Usage: u.02 s0 cu0 cs0 - .133% CPU load
.933 requests/sec - 3822 B/second - 4096 B/request
6 requests currently being processed, 3 idle workers
_KKKK__WW.......................................................
................................................................
................................................................
................................................................
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
0-0 21825 0/3/3 _ 0.00 7 6043 0.0 0.03 0.03 61.148.109.86 blogguy.cn GET /templates/default/logo.jpg HTTP/1.1
1-0 21831 2/2/2 K 0.00 12 0 4.9 0.00 0.00 61.148.109.86 blogguy.cn GET /templates/default/img/utf8.jpg HTTP/1.1
2-0 21858 1/1/1 K 0.00 12 0 0.6 0.00 0.00 61.148.109.86 blogguy.cn GET /templates/default/img/wap.gif HTTP/1.1
3-0 21877 1/1/1 K 0.00 11 0 1.0 0.00 0.00 61.148.109.86 blogguy.cn GET /templates/default/img/rss.gif HTTP/1.1
4-0 21878 1/1/1 K 0.00 11 2 0.6 0.00 0.00 61.148.109.86 blogguy.cn GET /include/seccode.php HTTP/1.1
5-0 21882 0/1/1 _ 0.01 2 52 0.0 0.00 0.00 66.249.68.236 blogguy.cn GET /archives-201235-53.html HTTP/1.1
6-0 21884 0/1/1 _ 0.01 2 61 0.0 0.01 0.01 220.181.7.131 blogguy.cn GET / HTTP/1.1
7-0 21885 4/4/4 W 0.00 0 0 5.5 0.01 0.01 210.13.219.42 blogguy.cn GET /server-status HTTP/1.1
8-0 21886 0/0/0 W 0.00 7 392864518 0.0 0.00 0.00 61.156.219.185 blogguy.cn GET /attachments/date_200711/jimozaichangge.mp3 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.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch Server at www.blogguy.cn Port 80

  

apache的server-status如何分析的技术说明的更多相关文章

  1. 开启Apache的server status监测

    从httpd.conf 打开 status_module#LoadModule status_module modules/mod_status.so修改成LoadModule status_modu ...

  2. Apache Server Status详解

    Apache的日志如果靠分析日志或者查看服务器进程来监视Apache运行状态的话,比较繁冗.不过在Apache 1.3.2及以后的版本中就自带一个查看Apache状态的功能模块server-statu ...

  3. 开启Apache Server Status

    开启Apache Server Status 发布时间:August 1, 2008 分类:Apache <DdZend工具提供下载> <PHP中MD5函数效率> Apache ...

  4. Apache Server Status主机状态查看

    10月30日,国外安全研究人员发现由于对apache设置不严,导致服务器状态暴露于公网.本来apache有一个叫server-status 的功能,为方便管理员检查服务器运行状态的.它是一个HTML页 ...

  5. Apache HTTP Server应用的几个场景

    Apache HTTP Server应用的几个场景 前言 尽管Apache具有重量级.耗资源.低性能(相比其它的WebServer)的特点,但是同时它也具有兼容性强.稳定性高.模块丰富等特点,且处理动 ...

  6. Apache http Server 2.4 安装与配置

    前言 Apache官网从2.2之后,不再提供windows的msi或exe安装版本,现在Apache http Server有两个分支2.2及2.4 注意事项 如果之前有安装2.2的版本,请先卸载 A ...

  7. apache外网不能访问分析与解决方法

    apache安装好以后,在本机可以用:http://localhost 或者 http://127.0.0.1进行访问,但是,在外网(相对本机来说的,局域网也算)不能访问. 这种情况可以分为两个问题, ...

  8. apache http server 多线程模式

    一般apache采用prefork和worker机制,通过apachectl -l命令查看默认使用的prefork机制.需要修改prefork策略 那么需要做如下修改: 1,/usr/local/ap ...

  9. Appium Server源码分析之作为Bootstrap客户端

    Appium Server拥有两个主要的功能: 它是个http服务器,它专门接收从客户端通过基于http的REST协议发送过来的命令 他是bootstrap客户端:它接收到客户端的命令后,需要想办法把 ...

随机推荐

  1. PostgreSQL 的命令行工具 psql 的常用命令

    1. 连接服务器: psql -h 192.168.1.88 -U username -d databasename 2. 切换数据库: \c dbname 3. 列出所有数据库: \l 4. 列出所 ...

  2. Linux学习笔记 1 环境变量 2 vi命令

    1 环境变量篇 1.1  修改 查看 生效 系统环境变量 1 涉及系统环境变量的文件   -->  .bash_profile --> /etc/profile 2 该文件位置 /root ...

  3. [ZOJ2069]Greatest Least Common Multiple

    [ZOJ2069]Greatest Least Common Multiple 题目大意: 给定一个正整数\(n\),将其分成若干个正整数之和,最大化这些数的LCM.保证答案小于\(10^{25}\) ...

  4. [HNOI2007]神奇游乐园

    Description: 在方格图上找一条回路使经过的权值最小 Hint: \(n<=100,m<=6\) Solution: 一开始又看错题了...稍有细节的水题,详见代码 #inclu ...

  5. mysql:general_log 日志、数据库线程查询、数据库慢查询

    开启general log会将所有到达MySQL Server的SQL语句记录下来.一般不会开启开功能,因为log的量会非常庞大.但个别情况下可能会临时的开一会儿general log以供排障使用.  ...

  6. python网络编程(十)

    select版-TCP服务器 1. select 原理 在多路复用的模型中,比较常用的有select模型和epoll模型.这两个都是系统接口,由操作系统提供.当然,Python的select模块进行了 ...

  7. 卷积cnn总结

    阅读了很多篇文章后,还是觉得有两篇文章很好,所以基本上就吸收搬过来了. 从神经网络到卷积神经网络(CNN) 我们知道神经网络的结构是这样的: 那卷积神经网络跟它是什么关系呢? 其实卷积神经网络依旧是层 ...

  8. python之函数第二篇

    一.名称空间与作用域 名称空间分类: 内置名称空间 import this dir(buil-in) 查看全部内置 全局名称空间 局部名称空间 在函数体内等 查询全局和局部 globals()方法可以 ...

  9. HDFS JournalNode 故障

    背景 某天凌晨四点左右,HBase RegionServer 宕机自动拉起,查看日志发现是HDFS 在进行HA切换,15次重试仍连不上可写的active,于是挂了.所以根本问题是hdfs. 日志定位 ...

  10. 【搜索】WAR大佬的SET @upcexam6201

    时间限制: 1 Sec 内存限制: 128 MB 题目描述 WAR大佬认为一个包含重复元素的集合认为是优美的,当且仅当集合中的元素的和等于他们的积. 求包含n个元素的优美的集合的个数. WAR大佬当然 ...