我正試圖在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服務器嗎? –
是的,我可以從我的網絡瀏覽器 –