`
85977328
  • 浏览: 1871046 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

tomcat7.0性能优化-挑战极限精简版

 
阅读更多
服务器关键配置(2个物理CPU,每个CPU是4核心8线程)
Intel(R) Xeon(R) CPU E5620 @2.40GHz

附件
${tomcat_home}/conf/server.xml的配置,已经经过生产环境高并发的检验
操作系统内核优化/etc/sysctl.conf
压力测试的空跑JSP文件test.jsp

以下使用apache-bench做的压力测试
你的tomcat空跑QPS能达到 27522.05 [#/sec]吗?

./ab -n 50000 -c 1024 http://10.10.224.27:8092/performance/test.jsp
Server Software:        Apache-Coyote/1.1
Server Hostname:        10.10.224.27
Server Port:            8092

Document Path:          /performance/test.jsp
Document Length:        253 bytes

Concurrency Level:      1024
Time taken for tests:   1.090 seconds
Complete requests:      30000
Failed requests:        0
Write errors:           0
Total transferred:      15130782 bytes
HTML transferred:       7625673 bytes
Requests per second:    27522.05 [#/sec] (mean)
Time per request:       37.207 [ms] (mean)
Time per request:       0.036 [ms] (mean, across all concurrent requests)
Transfer rate:          13555.67 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        2    5   1.2      5      17
Processing:     4    7   1.3      7      22
Waiting:        2    5   1.3      5      15
Total:          9   12   1.8     12      37

Percentage of the requests served within a certain time (ms)
  50%     12
  66%     13
  75%     13
  80%     13
  90%     13
  95%     14
  98%     17
  99%     22
100%     37 (longest request)
6
7
分享到:
评论
5 楼 静夜独窗 2016-12-15  
你好,能说一下server.xml增加的配置是怎么影响性能的吗,最好结合代码实例说明
4 楼 chinesejie 2014-06-12  
我用了你的配置,怎么跑QPS都是1200。。用了默认配置跑,结果还是一样。。真是没办法
3 楼 一个java程序员 2013-12-16  
鼓励鼓励,加油楼主。
2 楼 85977328 2013-08-21  
iceswear 写道
我也总结了一篇关于tomcat 7优化,欢迎交流 http://gitsea.com/2013/07/02/tomcat-%E5%B9%B6%E5%8F%91%E4%BC%98%E5%8C%96/


好的,谢谢
1 楼 iceswear 2013-08-20  
我也总结了一篇关于tomcat 7优化,欢迎交流 http://gitsea.com/2013/07/02/tomcat-%E5%B9%B6%E5%8F%91%E4%BC%98%E5%8C%96/

相关推荐

Global site tag (gtag.js) - Google Analytics