httpload简单测试单机tomcat和resin

一,测试材料

       在新的环境上准备用resin,网上对于resin和tomcat的说法不一。自己做了一个简单测试。实际效果还待生产测试。

       1,http_load-12mar2006.tar.gz

       2,apache-tomcat-7.0.57

       3,Resin-4.0.41

       4,测试工程为最简单的java HelloWord项目,请求一个servlet地址,返回“helloword”

       5,resin为默认配置

       6,tomcat 配置

<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="5000" minSpareThreads="5000" maxIdleTime="600000"/>
    <Connector port="8080" enableLookups="false"  protocol="org.apache.coyote.http11.Http11NioProtocol"                
               executor="tomcatThreadPool"                                                                                        
               connectionTimeout="20000"                                                                                 
               keepAliveTimeout="300000"                                                                             
               maxKeepAliveRequests="-1"                                                                                          
               redirectPort="8443" /> 

二,tomcat测试结果

      1,50并发,30秒钟

[root@nj129 http_load-12mar2006]# http_load -p 50 -s 30 url_file 
662864 fetches, 50 max parallel, 5.89949e+07 bytes, in 30 seconds
89 mean bytes/connection
22095.5 fetches/sec, 1.9665e+06 bytes/sec
msecs/connect: 0.233606 mean, 1.018 max, 0.045 min
msecs/first-response: 1.58377 mean, 302.295 max, 0.201 min
HTTP response codes:
  code 200 -- 662864

       2,1000并发,30秒

[root@nj129 http_load-12mar2006]# http_load -p 1000  -s 30 url_file   
793396 fetches, 1000 max parallel, 7.06122e+07 bytes, in 30 seconds
89 mean bytes/connection
26446.5 fetches/sec, 2.35374e+06 bytes/sec
msecs/connect: 24.5914 mean, 15000.4 max, 0.057 min
msecs/first-response: 4.52192 mean, 3075.39 max, 0.235 min
HTTP response codes:
  code 200 -- 793396

        3,2000并发,30秒

[root@nj129 http_load-12mar2006]# http_load -p 2000  -s 30 url_file 
816333 fetches, 1318 max parallel, 7.22442e+07 bytes, in 30 seconds
88.4985 mean bytes/connection
27211.1 fetches/sec, 2.40814e+06 bytes/sec
msecs/connect: 24.7848 mean, 15000.2 max, 0.054 min
msecs/first-response: 4.37757 mean, 1442.29 max, 0.245 min
4600 bad byte counts
HTTP response codes:
  code 200 -- 811733


三,resin测试结果


        1,50并发,30秒

[root@nj129 http_load-12mar2006]# http_load -p 50 -s 30 url_file    
1168972 fetches, 50 max parallel, 1.04039e+08 bytes, in 30 seconds
89 mean bytes/connection
38965.7 fetches/sec, 3.46795e+06 bytes/sec
msecs/connect: 0.236969 mean, 0.905 max, 0.045 min
msecs/first-response: 0.291621 mean, 1.308 max, 0.152 min
HTTP response codes:
  code 200 -- 1168972


         2,2000并发,30秒

[root@nj129 http_load-12mar2006]# http_load -p 2000 -s 30 url_file           
1129334 fetches, 58 max parallel, 1.00511e+08 bytes, in 30.0001 seconds
89 mean bytes/connection
37644.3 fetches/sec, 3.35034e+06 bytes/sec
msecs/connect: 0.234226 mean, 1.027 max, 0.043 min
msecs/first-response: 0.292432 mean, 1.875 max, 0.149 min
HTTP response codes:
  code 200 -- 1129334


         3,3000并发,30秒

[root@nj129 http_load-12mar2006]# http_load -p 3000 -s 30 url_file  
1101253 fetches, 68 max parallel, 9.80115e+07 bytes, in 30 seconds
89 mean bytes/connection
36708.4 fetches/sec, 3.26705e+06 bytes/sec
msecs/connect: 0.231664 mean, 0.939 max, 0.044 min
msecs/first-response: 0.294246 mean, 3.896 max, 0.151 min
HTTP response codes:
  code 200 -- 1101253







  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值