我正试图在JMeter的帮助下监控我的Web服务器的性能。我遵循给出的规则来配置JMeter,以测试网络服务器为here。使用JMeter监控Web服务器
即使下面我得到一个401错误未经授权的步骤后: 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"/>
请指点。
JMeter正在使用正常的HTTPRequest。如果您正在执行JMeter,您可以使用机器上的普通浏览器访问您的Web服务器吗? –
是的,我可以从我的网络浏览器 –