- <Connector port="8080" protocol="HTTP/1.1"
- redirectPort="8443"
- connectionTimeout="20000"
- />
- 修改后:
- <Connector port="8080" protocol="HTTP/1.1"
- maxHttpHeaderSize="8192" useBodyEncodingForURI="true"
- maxThreads="1000" minSpareThreads="25" maxSpareThreads="75"
- redirectPort="8443"
- enableLookups="false"
- compression="on"
- compressionMinSize="2048"
- compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"
- connectionTimeout="20000"
- disableUploadTimeout="true"
- />
<Connector port="8080" protocol="HTTP/1.1"redirectPort="8443"connectionTimeout="20000"/>修改后:<Connector port="8080" protocol="HTTP/1.1"maxHttpHeaderSize="8192" useBodyEncodingForURI="true"maxThreads="1000" minSpareThreads="25" maxSpareThreads="75"redirectPort="8443"enableLookups="false"compression="on"compressionMinSize="2048"compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain"connectionTimeout="20000"disableUploadTimeout="true"/>
- ab -c 1000 -n 10000 http:
ab -c 1000 -n 10000 http://www.xxx.com/index.jsp
- Document Path: /index.jsp
- Document Length: 337 bytes
-
- Concurrency Level: 1000
- Time taken for tests: 11.892186 seconds
- Complete requests: 10000
- Failed requests: 0
- Write errors: 0
- Total transferred: 5891178 bytes
- HTML transferred: 3370674 bytes
- Requests per second: 840.89 [#/sec] (mean)
- Time per request: 1189.219 [ms] (mean)
- Time per request: 1.189 [ms] (mean, across all concurrent requests)
- Transfer rate: 483.76 [Kbytes/sec] received
-
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 10 230.3 0 9000
- Processing: 0 743 2564.5 33 11859
- Waiting: 0 742 2564.3 33 11859
- Total: 1 753 2578.3 33 11883
-
- Percentage of the requests served within a certain time (ms)
- 50% 33
- 66% 37
- 75% 39
- 80% 40
- 90% 156
- 95% 3952
- 98% 11844
- 99% 11865
- 100% 11883 (longest request)
Document Path: /index.jspDocument Length: 337 bytesConcurrency Level: 1000Time taken for tests: 11.892186 secondsComplete requests: 10000Failed requests: 0Write errors: 0Total transferred: 5891178 bytesHTML transferred: 3370674 bytesRequests per second: 840.89 [#/sec] (mean)Time per request: 1189.219 [ms] (mean)Time per request: 1.189 [ms] (mean, across all concurrent requests)Transfer rate: 483.76 [Kbytes/sec] receivedConnection Times (ms)min mean[+/-sd] median maxConnect: 0 10 230.3 0 9000Processing: 0 743 2564.5 33 11859Waiting: 0 742 2564.3 33 11859Total: 1 753 2578.3 33 11883Percentage of the requests served within a certain time (ms)50% 3366% 3775% 3980% 4090% 15695% 395298% 1184499% 11865100% 11883 (longest request)
修改后测试结果:
- Document Path: /index.jsp
- Document Length: 337 bytes
-
- Concurrency Level: 1000
- Time taken for tests: 1.827710 seconds
- Complete requests: 10000
- Failed requests: 0
- Write errors: 0
- Total transferred: 5952434 bytes
- HTML transferred: 3405722 bytes
- Requests per second: 5471.33 [#/sec] (mean)
- Time per request: 182.771 [ms] (mean)
- Time per request: 0.183 [ms] (mean, across all concurrent requests)
- Transfer rate: 3179.94 [Kbytes/sec] received
-
- Connection Times (ms)
- min mean[+/-sd] median max
- Connect: 0 37 30.0 30 128
- Processing: 36 140 48.6 147 351
- Waiting: 4 83 39.9 77 306
- Total: 68 178 53.5 187 475
-
- Percentage of the requests served within a certain time (ms)
- 50% 187
- 66% 198
- 75% 202
- 80% 205
- 90% 212
- 95% 220
- 98% 230
- 99% 430
- 100% 475 (longest request)
Document Path: /index.jspDocument Length: 337 bytesConcurrency Level: 1000Time taken for tests: 1.827710 secondsComplete requests: 10000Failed requests: 0Write errors: 0Total transferred: 5952434 bytesHTML transferred: 3405722 bytesRequests per second: 5471.33 [#/sec] (mean)Time per request: 182.771 [ms] (mean)Time per request: 0.183 [ms] (mean, across all concurrent requests)Transfer rate: 3179.94 [Kbytes/sec] receivedConnection Times (ms)min mean[+/-sd] median maxConnect: 0 37 30.0 30 128Processing: 36 140 48.6 147 351Waiting: 4 83 39.9 77 306Total: 68 178 53.5 187 475Percentage of the requests served within a certain time (ms)50% 18766% 19875% 20280% 20590% 21295% 22098% 23099% 430100% 475 (longest request)
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。