Apache上的设置
打开<Apache Installation>\conf\httpd.conf,进行如下修改:
1、 设置允许查看Apache运行状态的主机:
LoadModule status_module modules/mod_status.so
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order allow,deny
Deny from nothing
Allow from all
</Location>
<Location /server-info>
SetHandler server-info
Order allow,deny
Deny from nothing
Allow from all
</Location>
这样改变以后重新启动Apache,在浏览器中输入http://servername/server-status就可以看到Apache运行时的信息,
而输入http://servername/server-status?auto就会看到如下信息:
看到这样的信息就表示修改成功,这样就可以使用LoadRunner监视Apache了。
二、LoadRunner上的设置
经过以上第一项设置以后就可以使用LoadRunner监控Apache的运行情况了,在LoadRunner可用的监视器中双击Web Server Resource Graphs下的Apache节点,然后在右边对应的窗口中添加Apache所在主机的IP地址,并且加入计数器后单击OK,这样就可以在LoadRunner中实时显示Apache的运行状态信息了。
注意:您可能收到如下消息【Monitor name :Apache. Parsing error, cannot find token: BusyServers. Measurement: BusyServers|192.168.0.186. Hints: 1) Such a measurement does not exist, or the html page may be different from the supported one. 2) Try to replace the Apache.cfg with appropriate Apache_<version>.cfg file in <Installation>\dat\monitors and rerun the application (entry point: CApacheMeasurement::NewData). [MsgId: MMSG-47479]】,这是由于要监视Apache的版本提供的计数器与LoadRunner默认的计数器不一致导致的。此时建议先关闭Controller,打开<Installation>\dat\monitors下的apache.cfg文件(其它文件名类似Apache_<version>.cfg的是Apache监视配置的备份,只有apache.cfg是生效的):
1、 修改Counter0=IdleServers为Counter0=IdleWorkers,同时修改注释信息Label0=#Idle Servers (Apache)为Label0=#Idle Workers (Apache),描述信息也建议修改;
2、 修改Counter4=BusyServers为Counter4=BusyWorkers,同时修改注释信息Label4=#Busy Servers (Apache)为Label4=#Busy Workers (Apache) ,描述信息也建议修改。
然后保存并关闭该文件,重新打开Controller并添加计数器,这样监视就正常了。
Apache CPU Usage (Apache)这个指标还是没有数据,因为Windows上没有这个指标
- 大小: 77.1 KB
- 大小: 24.6 KB
- 大小: 120.9 KB
分享到:
相关推荐
使用LoadRunner监控Apache的步骤使用LoadRunner监控Apache的步骤
LoadRunner监控Apache.doc
使用LoadRunner监控Linux方法 使用LoadRunner监控Linux方法 使用LoadRunner监控Linux方法 使用LoadRunner监控Linux方法
使用Loadrunner监控DB2数据库.
使用LoadRunner监控Apach服务器的步骤
在做性能测试时我们经常需要监控服务器上各种进程占用内存、CPU、IO等的资源使用情况,本文档告诉你如何通过LoadRunner监控MySQL在Apache下的CPU占用情况,帮助你监控分析服务器端的性能情况。
loadrunner怎么监控Apache,指标等。
loadRunner监控Apach服务器步骤
loadrunner监控linux必备插件
介绍loadrunner监控 unix/linux所需要进程, 以及如何启动进程
loadrunner监控tomcat、监控 tomcat、监控web服务器, 利用loadrunner脚本监控tomcat。
loadrunner 监控Linux资源服务开启
LoadRunner监控Windows资源时,常常遇到无权限的问题,会报错显示不能链接等。本文档,帮助大家解决LoadRunner 监控Windows资源时无权限问题。希望对大家有所帮助。
LoadRunner监控window系统各项指标详解LoadRunner监控window系统各项指标详解
资源名称:loadrunner监控linux资源安装服务步骤资源截图: 资源太大,传百度网盘了,链接在附件中,有需要的同学自取。
loadrunner监控windows和linux资源 loadrunner监控windows和linux资源
LoadRunner监控websphere。apache、Windows、Linux、orcal、weblogic以及LoadRunner介绍 为了节约大家搜寻的时间。我将他们整理到一起。如果有什么疑问请留言。或者有更好的资源请通知一下呵呵^.^
LoadRunner监控Linux与Windows方法