Solution :
abis a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server.- It is designed to give you an impression of how your current Apache installation performs.
- This especially shows you how many requests per second your Apache installation is capable of serving.
- To minimize the impact of garbage collection, etc, it is recommended to use a tool such as apachebench
- To help identify memory leaks and selectively analyze response time.
Apache Bench can be used in the following way:
$ ab -c 5 -k -n 1000 "http://localhost:4503/content/geometrixx/en/company.html"this is ApacheBench, Version 2.3 <$Revision: 655654 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/TBenchmarking localhost (be patient)Completed 100 requestsCompleted 200 requestsCompleted 300 requestsCompleted 400 requestsCompleted 500 requestsCompleted 600 requestsCompleted 700 requestsCompleted 800 requestsCompleted 900 requestsCompleted 1000 requestsFinished 1000 requestsServer Software: Day-Servlet-Engine/4.1.52Server Hostname: localhostServer Port: 4503Document Path: /content/geometrixx/en/company.htmlDocument Length: 24127 bytesConcurrency Level: 5Time taken for tests: 69.766 secondsComplete requests: 1000Failed requests: 998(Connect: 0, Receive: 0, Length: 998, Exceptions: 0)Write errors: 0Keep-Alive requests: 0Total transferred: 24160923 bytesHTML transferred: 24010923 bytesRequests per second: 14.33 /sec (mean)Time per request: 348.828 [ms] (mean)Time per request: 69.766 [ms] (mean, across all concurrent requests)Transfer rate: 338.20 [Kbytes/sec] receivedConnection Times (ms)min mean[+/-sd] median maxConnect: 0 1 3.9 0 58Processing: 138 347 568.5 282 8106Waiting: 137 344 568.1 281 8106Total: 139 348 568.4 283 8106Percentage of the requests served within a certain time (ms)50% 28366% 32375% 35680% 37490% 43995% 51298% 104799% 1132100% 8106 (longest request)- apachebench also displays the time per request as the mean, across all concurrent requests;
- You can change the value of the concurrency parameter -c(number of multiple requests to perform at a time) to see any effects.
Command details :
Default is one request at a time.
-k -n requests
No comments:
Post a Comment