• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

使用LoadRunner监控Apache的步骤

发布: 2008-10-08 14:28 | 作者: wyingquan | 来源: wyingquan的专栏 | 查看: 120次 | 进入软件测试论坛讨论

领测软件测试网

Apache上的设置

        打开<Apache Installation>\conf\httpd.conf,进行如下修改:

1、  设置允许查看Apache运行状态的主机

#

# Allow server status reports, with the URL of http://servername/server-status

# Change the ".your-domain.com" to match your domain to enable.

#

#取消一下代码前面的注释符号“#”,并且设置Order(顺序)为允许优先

<Location /server-status>

 

    SetHandler                                  server-status

 

    Order                                        allow,deny

 

    Deny from                                 nothing

 

    Allow from                                all

 

</Location>

        这样改变以后重新启动Apache在浏览器中输入http://servername/server-status就可以看到Apache运行时的信息,而输入http://servername/server-status?auto就会看到如下信息:

        

MILY: 宋体; mso-bidi-font-family: 宋体; mso-font-kerning: 0pt">Total Accesses: 124

Total kBytes: 444

CPULoad: 3.32432

Uptime: 37

ReqPerSec: 3.35135

BytesPerSec: 12288

BytesPerReq: 3666.58

BusyWorkers: 1

IdleWorkers: 7

Scoreboard: ____W___.........................

        看到这样的信息就表示修改成功,这样就可以使用LoadRunner监视Apache了。

        以下两步跟使用LoadRunner监视Apache无关,可以跳过不看。

2、  改变Apache的设置,打开详细状态开关;

#

# ExtendedStatus controls whether Apache will generate "full" status

# information (ExtendedStatus On) or just basic information (ExtendedStatus

# Off) when the "server-status" handler is called. The default is Off.

#

#取消了下面一行前面的注释符号“#”

 

ExtendedStatus On

 

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/

TAG: apache Apache loadrunner LoadRunner Loadrunner loadRunner

21/212>

关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网