使用JMeter监视Web服务器

时间:2012-04-30 11:00:53

标签: performance webserver tomcat6 monitoring jmeter

我试图在JMeter的帮助下监控我的Web服务器的性能。我按照给出的规则来配置JMeter以测试给定here的Web服务器。

即使按照以下步骤操作,我收到401 Unauthorized错误: You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp

我编辑了tomcat-users.xml以添加以下行:

<role rolename="manager-status"/>
<user username="tomcat" password="s3cret" roles="manager-status"/>

请建议。

1 个答案:

答案 0 :(得分:4)

您需要在JMeter脚本中加入“HTTP Authorization Manager”。在那里,您指定了访问网站的凭据

相关问题