Tomcat调优(一)

1.https://blog.csdn.net/u010028869/article/details/51793821

首先在conf/tomcat-user.xml配置用户

在conf/ tomcat-users.xml下添加用户:

<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<user username="tomcat" password="tomcat" roles="admin-gui,admin,manager-gui,manager"/> 

记得重启

然后修改tomcat运行模式为nio,还有最大连接数

启动NIO模式

修改server.xml里的Connector节点,修改protocol为org.apache.coyote.http11.Http11NioProtocol

2.关于tomcat压力测试

https://blog.csdn.net/weixin_38336658/article/details/79664526

利用tomcat自带ab.exe进行测试


猜你喜欢

转载自blog.csdn.net/weixin_38336658/article/details/80603425
今日推荐