JSP、struts2、sitemesh性能测试结果

tomcat最大配置500个线程,启动时配置20个线程

 

 

命令: ab -k -t 200 -c 100 -n 1000 http://xxx/core/login.do




都去掉了log4j Struts生产环境 去掉sitemesh后










Document Path /cems2/core/login.do /cems2/core/login.do



Document Length 9251 bytes 5046 bytes










Concurrency Level 50 100



Time taken for tests 2.678 seconds 1.398 seconds



Complete requests 1000 1000



Failed requests 0 0



Write errors 0 0



Keep-Alive requests 0 1000



Total transferred 9490386 bytes 5347408 bytes



HTML transferred 9278753 bytes 5106552 bytes



Requests per second 373.36 [#/sec] (mean) 715.36 [#/sec] (mean)



Time per request 133.919 [ms] (mean) 139.789 [ms] (mean)



Time per request 2.678 [ms] (mean, across all concurrent requests) 1.398 [ms] (mean, across all concurrent requests)



Transfer rate 3460.29 [Kbytes/sec] received 3735.68 [Kbytes/sec] received



多次重复执行 <400/s 700/s左右(连续10次执行时)










命令:

ab -k -t 200 -c 100 -n 1000 -C '。。。'

http://xxx/security/staffMgr\!list.do







Struts生产环境 去掉sitemesh后 压力减少提升不明显 table非标签输出,无sitemesh table非标签输出,有sitemesh







Document Path /cems2/security/staffMgr!list.do /cems2/security/staffMgr!list.do /cems2/security/staffMgr!list.do /cems2/security/staffMgr!list.do /cems2/security/staffMgr!list.do
Document Length 19036 bytes 6189 bytes 6189 bytes 3300 bytes 16147 bytes







Concurrency Level 25 100 25 100 100
Time taken for tests 12.843 seconds 11.669 seconds 10.120 seconds 8.140 seconds 10.590 seconds
Complete requests 1000 1000 1000 1000 1000
Failed requests 0 0 0 0 0
Write errors 0 0 0 0 0
Keep-Alive requests 0 0 0 0 0
Total transferred 19177000 bytes 6335855 bytes 6330000 bytes 3444441 bytes 16288000 bytes
HTML transferred 19036000 bytes 6194714 bytes 6189000 bytes 3303300 bytes 16147000 bytes
Requests per second 77.86 [#/sec] (mean) 85.69 [#/sec] (mean) 98.82 [#/sec] (mean) 122.85 [#/sec] (mean) 94.43 [#/sec] (mean)
Time per request 321.078 [ms] (mean) 1166.937 [ms] (mean) 252.994 [ms] (mean) 814.020 [ms] (mean) 1059.041 [ms] (mean)
Time per request 12.843 [ms] (mean, across all concurrent requests) 11.669 [ms] (mean, across all concurrent requests) 10.120 [ms] (mean, across all concurrent requests) 8.140 [ms] (mean, across all concurrent requests) 10.590 [ms] (mean, across all concurrent requests)
Transfer rate 1458.18 [Kbytes/sec] received 530.22 [Kbytes/sec] received 610.85 [Kbytes/sec] received 413.22 [Kbytes/sec] received 1501.95 [Kbytes/sec] received

<80/s(5次连续35->77) <90/s(5次连续) <100/s(5次连续) <135/s(5次连续) <100/s(5次连续)

100的并发依然可以达到<80/s

稳定在130 75->94
命令: ab -k -t 300 -c 100 -n 1000 -C '...' http://xxx/archiveQueryAction.do?method=findArchiveQueryKinds











Document Path /web9800/archiveQueryAction.do?method=findArchiveQueryKinds /web9800/index.jsp



Document Length 3229 bytes 11728 bytes










Concurrency Level 100 100



Time taken for tests 4.249 seconds 9.573 seconds



Complete requests 1000 1000



Failed requests 0 0



Write errors 0 0



Keep-Alive requests 984 0



Total transferred 3394920 bytes 11867000 bytes



HTML transferred 3229000 bytes 11728000 bytes



Requests per second 235.34 [#/sec] (mean) 104.46 [#/sec] (mean)



Time per request 424.923 [ms] (mean) 957.301 [ms] (mean)



Time per request 4.249 [ms] (mean, across all concurrent requests) 9.573 [ms] (mean, across all concurrent requests)



Transfer rate 780.22 [Kbytes/sec] received 1210.58 [Kbytes/sec] received



你可能感兴趣的:(C++,c,jsp,struts,Security)