Reputation: 1007
I am trying to monitor the performance of my web server with the help of JMeter. I followed the rules that were given to configure JMeter to test the web server as given here.
Even after following the steps I am getting a 401 Unauthorized error:
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
I edited the tomcat-users.xml to add the following lines:
<role rolename="manager-status"/>
<user username="tomcat" password="s3cret" roles="manager-status"/>
Please advice.
Upvotes: 0
Views: 1935
Reputation: 4444
You need to include an "HTTP Authorization Manager" to your JMeter script. There you specify your credentials to access the site
Upvotes: 4