设为首页 收藏本站
查看: 883|回复: 0

[经验分享] 虚拟机内tomcat6系统软硬调优

[复制链接]

尚未签到

发表于 2018-12-5 11:20:45 | 显示全部楼层 |阅读模式
  app-server调优完成
以下为单台虚拟机tomcat-APP-SERVER性能
  未做优化前
###1000并发,访问50万次,
[root@init ~]# ab -c 1000 -n 500000 http://www.xxx.com.cn/
This is ApacheBench, Version 2.0.40-dev  apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.xxx.com.cn (be patient)
Completed 50000 requests
Completed 100000 requests
Completed 150000 requests
Completed 200000 requests
Completed 250000 requests
Completed 300000 requests
Completed 350000 requests
Completed 400000 requests
Completed 450000 requests
Finished 500000 requests

Server Software: Apache-Coyote/1.1
Server Hostname: www.xxx.com.cn
Server Port: 80

Document Path: /
Document Length: 15441 bytes

Concurrency Level: 1000
Time taken for tests: 310.793616 seconds
Complete requests: 500000
Failed requests: 0
Write errors: 0
Total transferred: 7836000000 bytes
HTML transferred: 7720500000 bytes
Requests per second: 1608.78 /sec (mean)
Time per request: 621.587 [ms] (mean)
Time per request: 0.622 [ms] (mean, across all concurrent requests)
Transfer rate: 24621.95 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 505 2186.7 0 92988
Processing: 1 105 558.9 63 27229
Waiting: 0 98 558.8 58 27165
Total: 1 610 2273.4 65 93056

Percentage of the requests served within a certain time (ms)
50% 65
66% 79
75% 98
80% 121
90% 3035
95% 3083
98% 9049
99% 9083
100% 93056 (longest request)

###优化后
###1000并发,访问50万次,
[root@init ~]# ab -c 1000 -n 500000 http://www.xxx.com.cn/;date
This is ApacheBench, Version 2.0.40-dev  apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.xxx.com.cn (be patient)
Completed 50000 requests
Completed 100000 requests
Completed 150000 requests
Completed 200000 requests
Completed 250000 requests
Completed 300000 requests
Completed 350000 requests
Completed 400000 requests
Completed 450000 requests
Finished 500000 requests

Server Software: Apache-Coyote/1.1
Server Hostname: www.xxx.com.cn
Server Port: 80

Document Path: /
Document Length: 15441 bytes

Concurrency Level: 1000
Time taken for tests: 159.443106 seconds
Complete requests: 500000
Failed requests: 0
Write errors: 0
Total transferred: 7836000000 bytes
HTML transferred: 7720500000 bytes
Requests per second: 3135.92 /sec (mean)
Time per request: 318.886 [ms] (mean)
Time per request: 0.319 [ms] (mean, across all concurrent requests)
Transfer rate: 47994.20 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 256 1298.1 2 45016
Processing: 3 57 107.9 41 3713
Waiting: 1 42 106.0 27 3650
Total: 3 314 1305.2 45 45331

Percentage of the requests served within a certain time (ms)
50% 45
66% 56
75% 67
80% 76
90% 146
95% 3040
98% 3088
99% 3243
100% 45331 (longest request)

#########before
Requests per second: 1608.78 /sec (mean)
Time per request: 621.587 [ms] (mean)
Time per request: 0.622 [ms] (mean, across all concurrent requests)
Transfer rate: 24621.95 [Kbytes/sec] received
########after
Requests per second: 3135.92 /sec (mean)
Time per request: 318.886 [ms] (mean)
Time per request: 0.319 [ms] (mean, across all concurrent requests)
Transfer rate: 47994.20 [Kbytes/sec] received
####
在软件与硬件调整下,单台主机性能提升明显





运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-643572-1-1.html 上篇帖子: Nginx+Tomcat7+Memcached负载均衡集群+session共享 下篇帖子: TOMCAT运行一闪而过的一个原因
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表