配合ab压测tomcat站点的并发量,适当调整JVM参数,堆栈,连接数
00、修改conf/tomcat-user.xml
1. 在$Tomcat_Home/conf/tomcat-users.xml下配置一个tomcat user,并使用http://localhost:8080/manager 访问。
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="swang6" password="swang6" roles="manager-gui"/>
</tomcat-users>