Home > other >  Http_load & amp; Ab test question of the tomcat
Http_load & amp; Ab test question of the tomcat

Time:09-27


There are two questions about the performance test, has been confused for a long time, which people give explain

Test use tomcat is installed the default home page,

1. Use different tools, test results, the results of the same tools test sometimes is not the same as
Server configuration: 1 core 1 gb of memory, tomcat6
Maxthreads, acceptCount value as the default values, the test results are as follows:
Maxthreads + acceptCount should represent the acceptable maximum concurrent traffic, defaults to 200 + 100=300
Arguably, it should be at the time of 300 concurrent access, http_load should not display error, the results appeared in the 180 concurrent fault (" bad byte counts ")

2. In the 4 core, 4 gb of memory on the server, test to the performance of the maximum concurrent traffic (acceptable), seems to be 1 nuclear server than 1 gb of memory, no too big change?


-- -- -- -- -- -- -- -- -- test output -- -- -- -- --
[root @ I - vyyaz6i1 ~] # http_load - 30-180 - s p v uri
http://121.201.63.133:8080/: byte count wrong
http://121.201.63.133:8080/: byte count wrong
1490 fetches, 180 Max parallel, 1.1657 e+07 bytes, in 30.0001 seconds
7823.48 mean bytes/connection
49.6665 fetches/SEC, 388566 bytes/SEC
Msecs/connect: mean, 197.334 2201.22 Max and min 0.42
Msecs/first - response: 670.052 mean, 11131.6 to 0.684 min Max,
2 bad byte counts & lt; - 180 concurrent, http_load shows wrong
The HTTP response codes:
Code 200-1488
[root @ I - vyyaz6i1 ~] # cat uri
http://121.201.63.133:8080/
[root @ I - vyyaz6i1 ~] # ab - 180 - c t 30 http://121.201.63.133:8080/
This is ApacheBench, Version 2.3 & lt; $Revision: 655654 $& gt;
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Very 121.201.63.133 (be patient)
Finished 1488 requests


Server Software: Apache - Coyote/1.1
Server Hostname: 121.201.63.133
Server Port: 8080

The Document Path:/
The Document Length: 7834 bytes

Concurrency Level: 180
Time seems for tests: 30.041 seconds
Complete requests: 1488
Failed requests: 0 & lt; -- -- -- -- -- 180 concurrent, ab shows that there is nothing wrong with
The Write errors: 0
Total transferred: 12965925 bytes
HTML transferred: 12561092 bytes
Requests per second: 49.53 #/SEC (mean)
Time per request: 3633.994 [ms] (mean)
Time per request: 20.189 [ms] (mean that'll all concurrent requests)
Transfer rate: 421.49 Kbytes/SEC received

The Connection Times (ms)
Min mean (+/- sd) median Max
Connect: 3 164 118 1198 219.1
Processing: 70 2585 580 26474 3988.6
Waiting: 3 854 132 15535 2488.6
Total: 93 2750 796 26515 3980.6

Percentage of the requests served within a certain time (ms)
50% of 796
66% of 2789
75% of 3252
80% of 3632
90% of 5433
95% of 16231
98% of 16469
99% of 16523
100% by 26515 (the longest request)
[root @ I - vyyaz6i1 ~] #


CodePudding user response:

Under the top that people answer
  • Related