Tomcat6 优化
来源:百度文库 编辑:神马文学网 时间:2024/04/28 14:45:24
Java代码
Java代码
Java代码
修改后测试结果:
Java代码
- redirectPort="8443"
- connectionTimeout="20000"
- />
- 修改后:
- 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"
- />
修改后:
Java代码
- ab -c 1000 -n 10000 http://www.xxx.com/index.jsp
ab -c 1000 -n 10000 http://www.xxx.com/index.jsp
Java代码
- 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)
修改后测试结果:
Java代码
- 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)
Tomcat6 优化
Tomcat6 优化
Tomcat6 Adminstration Tool
Tomcat6 类装载器分析
apache+tomcat6.0+ssl 服务器集群
为tomcat6批量生成安全证书
Jbpm4.2+tomcat6+oracle9i安装过程
tomcat6.0The Apache Tomcat Native library whi...
comet之 Tomcat6 的servlet异步处理实现
comet之 Tomcat6 的servlet异步处理实现 - birdmen - Jav...
搜索引擎优化
SQL优化
系统优化
XP优化
MySQL 优化
广域网优化
优化系统
BIOS优化
优化XP
优化级
优化网络
优化MACD1
优化MA
排名优化