| Measure the performance of your Web Server with Apache Benchmark Posted: 21 May 2011 11:00 PM PDT Free Software -
MANY tool that can be used to measure the performance of the web server, one of them by using the web stress tool for windows. But can also use the APache Benchmark (AB) from the Apache HTTP Server is one of the widely used web server on the internet.This is the Apache Benchmark tool to measure the performance of apache, with ab we can see the capabilities of apache to serve the request from the client. But the question is we often discover about apache benchmark is how do I install and where to download the apache benchmark.
AB has installed automatically when installing the Apache HTTP Server, if apache already installed then the benchmarking tool is also already automatically exists. This is usually the location tool ab in-directory. Apache benchmark Tool can be used not only for the Apache web server, but for others as well as the Lighthttpd, Nginx or Miscrosoft IIS.
How to use AB is as follows:
# ab-n 1000-c 1000 ' http://202.xxx.xxx.xxx/mongotest/comment/get_data/20/10 '
-The Parameter c is the number of concurrent (simultaneous) requests are made, with the example above means the number of request that is created is 1000 request in one time.
-The Parameter n is the number of connections made to the server, with the example above means that the connection is made is 1,000 connections. This consumes resource server Ab, ranging from memory (RAM), bandwidth and processor. Enter the number of connections and the appropriate request conccurent, so that the web server not to run out of resource and then hang.
-The last Parameter is the URL, the page will be processed by the web server in the-benchmark.
Example of benchmark results as follows: [root @ monggo-lho-mas ~] #/usr/local/apache2/bin/ab-c 1000-n 1000 ' http://202.xxx.xxx.xxx/mongotest/comment/get_data/20/10 ' 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/
Benchmarking 202. xxx. xxx. xxx (be patient) Completed 100 requests Completed 200 requests Completed 300 requests Completed 400 requests Completed 500 requests Completed 600 requests Completed 700 requests Completed 800 requests Completed 900 requests Completed 1,000 requests
Finished 1,000 requests
Server Software: Apache 2.2.11/ Server Hostname: 202. xxx. xxx. xxx
Server Port: 80
Document Path:/mongotest/comment/get_data/20/10 Document Length: 8417 bytes
Concurrency Level: 1000 Time taken for tests: 53292 seconds Complete requests: 1000 Failed requests: 0 Write errors: 0 Total transferred: 8621000 bytes HTML transferred: 8407000 bytes Requests per second: 18.76 [#/sec] (mean) Time per request: 53291.611 [ms] (mean) Time per request: 53292 [ms] (mean, across all concurrent requests) Transfer rate: 157.98 [Kb/sec] received Connection Times (ms) min mean [+/-sd] median max Connect: 1 101 20.4 103 132 Processing: 87 15912 17447.4 7328 53159 Waiting: 87 17,518 17447.3 7326 53159
Total: 88 16014 17,202.6 7441 5329
Percentage of the requests served within a certain time (ms) 50% 7441 66% 14105 75% 26339 80% 26871 90% 51923 95% 52661 98% 52947 99% 53134
100% 53290 (longest request)
Note the points Time per request, meaning that the server is capable of serving 18.76 request per second to the URL in the benchmark. Apache benchmark is a pretty good tool, the result is quite informative. Apache benchmark can be used to supplement the results of the benchmarks used by other tools.
Source: http://techno.okezone.com/read/2011/04/08/92/443936/mengukur-performa-web-server-dengan-apache-benchmark Fds7 |
0 komentar:
Posting Komentar