Tomcat性能测试
来源:互联网 发布:武汉淘宝天猫培训机构 编辑:程序博客网 时间:2024/06/11 16:42
测试环境
- OS: Linux Red Hat 4.4.7-11
- Memery: 16G
- CPU: 4 Processor(Intel(R) Xeon(R))
- JDK:1.8
- Web服务器r: Tomcat 7.x
- 测试工具: Jmeter-2.9
- Monitor Tools: jconsole,jvisualvm,jstat
Prepare
Run a simple servlet at the Server container,as exclude Application delay,It just return a echo word.
Reference
- Cient Thread: Mock User Request
- Average: Response Time,unit:ms
- Throughput: Query per Second,The formula is: Throughput = (number of requests) / (total time).
- Maxthreads:The maximum num of connections that the server will accept and process.
Case 1
Server parameters as default
maxThread: 200
422
<15003171545<1
10003822415<1
15003269197<1
As the table shows,The Throughput increase with the client's increase.But it decrease obviousely when client num over 1000.
Check the server,we can see every work thread is busy
Case 2
maxThread: 500
15004173458<3
20005842815<3
30008862487<3
Case 3
maxThread: 5000
1000310105<2
When the client over 1000,The Client Http tools appear many error logs,It shows "client Non HTTP response message: Read timed out",
check the tomcat log to get the error:
It shows The maxTheads number exceed the limiting Number of Processes Available,The CentOs max user processes default is 1024,update the param
at file /etc/security/limits.d/90-nproc.conf as following,
Case 4
continue the test,
maxThread: 5000
15002115106<3
20002205820<3
Case 5
1.update the JVM options
JAVA_OPTS="$JAVA_OPTS -Xms3g -Xmx5g -Xss512K -XX:PermSize=256m -XX:MaxPermSize=512m "
2.maxThread: 5000
2016926
5000
3.61000
22081225000
4.021500
34882385000
4.3200044678695000
8.2
Now,Check the JVM,
It seam there's enought Memory,and The GC frequency is not hight,So exclude the VM Memory factor, And As the case 5 shows,
Load is over the CPU max load,It have arrive the bottleneck of system.
- Tomcat性能的测试
- Tomcat性能的测试
- Tomcat性能测试
- 性能测试之Tomcat优化
- Tomcat性能测试分析工具
- 性能测试之Tomcat优化
- jboss tomcat weblogic websphere 性能对比测试
- jboss tomcat weblogic websphere 性能对比测试
- 性能测试中用LambdaProbe监控Tomcat
- 性能测试中用LambdaProbe监控Tomcat
- jvisualvm远程调用tomcat测试性能
- tomcat 性能优化及压力测试
- 性能测试中用LambdaProbe监控Tomcat
- 性能测试中用LambdaProbe监控Tomcat
- 性能测试之Tomcat性能调优视频教程
- jboss tomcat weblogic websphere 性能对比测试 (1)
- jboss tomcat weblogic websphere 性能对比测试 (1)
- jboss tomcat weblogic websphere 性能对比测试 (1)
- 数据中心机房设备发热量精确计算方法
- Windows下搭建Python机器学习环境
- rails中使用form.select创建动态的下拉菜单
- 一个通用的分页方法
- <meta http-equiv="X-UA-Compatible" content="IE=Edge">
- Tomcat性能测试
- 使用Python进行描述性统计
- 封装和接口思想
- mysql数据库事务详细剖析
- 阿里云在美推出MaxCompute大数据计算平台
- Opencv配置环境_win7_64_Opencv3.1_vs2013
- Oracle dblink 创建于删除
- oracle 单列数据分组合并
- TARS快速入门(NodeJs)