tomcat+APR使用后的对比
xiaojao
|
1#
xiaojao 发表于 2007-04-29 11:48
tomcat+APR使用后的对比
单独的TOMCAT做WEB服务器,后来增加APR功能,对比如下:带*号的是比较的不同结果
(第一个文件21K,第二个文件500多K,第三个MP3文件,3M多),可以看到文件越大,使用APR后TOMCAT处理性能提高也越明显. 遇到一个难题,由于TOMCAT使用了操作系统的一些东西吧,在大访问量的站点上,重起TOMCAT时会看起不来,老是说端口已经被占用.在单机上测试没有问题,这个怎么解决? 比较: [ 1 ] 到 [ 2 ] [ 1 ] D:\Program Files\SecureCRT\download\haveapr.txt [ 2 ] D:\Program Files\SecureCRT\download\noapr.txt ----------------------------------------------------- ======= 1 This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0 2 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ 3 Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ 4 5 Benchmarking 192.168.1.110 (be patient).....done 6 7 8 Server Software: Apache-Coyote/1.1 9 Server Hostname: 192.168.1.110 10 Server Port: 8080 11 12 Document Path: /favicon.ico 13 Document Length: 21630 bytes 14 15 Concurrency Level: 100 ======= 16 * Time taken for tests: 0.712650 seconds * Time taken for tests: 0.421366 seconds ======= 17 Complete requests: 10 18 Failed requests: 0 19 Write errors: 0 ======= 20 * Total transferred: 2207860 bytes * Total transferred: 2186000 bytes 21 * HTML transferred: 2184630 bytes * HTML transferred: 2163000 bytes 22 * Requests per second: 14.03 [#/sec] (mean) * Requests per second: 23.73 [#/sec] (mean) 23 * Time per request: 7126.500 [ms] (mean) * Time per request: 4213.660 [ms] (mean) 24 * Time per request: 71.265 [ms] (mean, across all concurrent requests) * Time per request: 42.137 [ms] (mean, across all concurrent requests) 25 * Transfer rate: 3025.33 [Kbytes/sec] received * Transfer rate: 5064.48 [Kbytes/sec] received ======= 26 27 Connection Times (ms) 28 min mean[+/-sd] median max ======= 29 * Connect: 8 11 1.6 12 12 * Connect: 198 199 1.2 200 201 30 * Processing: 596 673 39.4 692 695 * Processing: 144 147 2.8 147 154 31 * Waiting: 592 669 38.6 688 688 * Waiting: 134 138 3.6 139 144 32 * Total: 604 684 40.7 704 704 * Total: 345 347 2.1 347 352 ======= 33 34 Percentage of the requests served within a certain time (ms) ======= 35 * 50% 704 * 50% 347 36 * 66% 704 * 66% 348 37 * 75% 704 * 75% 348 38 * 80% 704 * 80% 349 39 * 90% 704 * 90% 352 40 * 95% 704 * 95% 352 41 * 98% 704 * 98% 352 42 * 99% 704 * 99% 352 43 * 100% 704 (longest request) * 100% 352 (longest request) ======= 44 This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0 45 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ 46 Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ 47 48 Benchmarking 192.168.1.110 (be patient).....done 49 50 51 Server Software: Apache-Coyote/1.1 52 Server Hostname: 192.168.1.110 53 Server Port: 8080 54 55 Document Path: /WinImage7.rar 56 Document Length: 521377 bytes 57 58 Concurrency Level: 100 ======= 59 * Time taken for tests: 0.379739 seconds * Time taken for tests: 0.569000 seconds ======= 60 Complete requests: 10 61 Failed requests: 0 62 Write errors: 0 ======= 63 * Total transferred: 52158100 bytes * Total transferred: 36365637 bytes 64 * HTML transferred: 52137700 bytes * HTML transferred: 36350337 bytes 65 * Requests per second: 26.33 [#/sec] (mean) * Requests per second: 17.57 [#/sec] (mean) 66 * Time per request: 3797.390 [ms] (mean) * Time per request: 5690.000 [ms] (mean) 67 * Time per request: 37.974 [ms] (mean, across all concurrent requests) * Time per request: 56.900 [ms] (mean, across all concurrent requests) 68 * Transfer rate: 134131.61 [Kbytes/sec] received * Transfer rate: 62413.00 [Kbytes/sec] received ======= 69 70 Connection Times (ms) 71 min mean[+/-sd] median max ======= 72 * Connect: 6 32 9.6 36 39 * Connect: 49 56 3.2 58 59 73 * Processing: 334 340 9.6 339 367 * Processing: 494 498 4.0 499 508 74 * Waiting: 111 115 3.1 116 120 * Waiting: 136 140 3.1 141 145 75 * Total: 373 373 0.0 373 373 * Total: 553 555 1.7 556 558 ======= 76 77 Percentage of the requests served within a certain time (ms) ======= 78 * 50% 373 * 50% 556 79 * 66% 373 * 66% 556 80 * 75% 373 * 75% 557 81 * 80% 373 * 80% 557 82 * 90% 373 * 90% 558 83 * 95% 373 * 95% 558 84 * 98% 373 * 98% 558 85 * 99% 373 * 99% 558 86 * 100% 373 (longest request) * 100% 558 (longest request) ======= 87 This is ApacheBench, Version 2.0.41-dev <$Revision: 1.141 $> apache-2.0 88 Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ 89 Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ 90 91 Benchmarking 192.168.1.110 (be patient).....done 92 93 94 Server Software: Apache-Coyote/1.1 95 Server Hostname: 192.168.1.110 96 Server Port: 8080 97 98 Document Path: /tz.mp3 99 Document Length: 3699482 bytes 100 101 Concurrency Level: 100 ======= 102 * Time taken for tests: 2.5929 seconds * Time taken for tests: 4.568747 seconds ======= 103 Complete requests: 10 104 Failed requests: 0 105 Write errors: 0 106 Total transferred: 369971400 bytes 107 HTML transferred: 369948200 bytes ======= 108 * Requests per second: 4.99 [#/sec] (mean) * Requests per second: 2.19 [#/sec] (mean) 109 * Time per request: 20059.290 [ms] (mean) * Time per request: 45687.470 [ms] (mean) 110 * Time per request: 200.593 [ms] (mean, across all concurrent requests) * Time per request: 456.875 [ms] (mean, across all concurrent requests) 111 * Transfer rate: 180116.05 [Kbytes/sec] received * Transfer rate: 79080.76 [Kbytes/sec] received ======= 112 113 Connection Times (ms) 114 min mean[+/-sd] median max ======= 115 * Connect: 8 13 3.3 13 18 * Connect: 66 70 3.6 72 76 116 * Processing: 1977 1982 3.3 1983 1987 * Processing: 4442 4445 2.1 4446 4448 117 * Waiting: 134 139 3.6 141 144 * Waiting: 206 211 3.4 211 216 118 * Total: 1995 1995 0.0 1995 1995 * Total: 4514 4516 1.5 4517 4518 ======= 119 120 Percentage of the requests served within a certain time (ms) ======= 121 * 50% 1995 * 50% 4517 122 * 66% 1995 * 66% 4517 123 * 75% 1995 * 75% 4518 124 * 80% 1995 * 80% 4518 125 * 90% 1995 * 90% 4518 126 * 95% 1995 * 95% 4518 127 * 98% 1995 * 98% 4518 128 * 99% 1995 * 99% 4518 129 * 100% 1995 (longest request) * 100% 4518 (longest request) |