Web Stress test Tool Apache-ab Explained
Many Web stress test tools are now charged, but Apache comes with a free stress test tool, the AB tool (command). Specifically, you can find a Ab.exe file in the bin directory under the root directory of Apache. Use it to roughly check how your program performs.
The specific usage is as follows, excerpt from the net. If there is any mistake, please correct me.
Forma
1. The most basic care two options-c-nExample:./ab-c 100-n 10000 http://127.0.0.1/index.php
-C 100 that is: 100 per concurrent-N 10000 that is: Send a total of 10,000 requests
2. Test results Analysis
[Junjie2@login htdocs]$/data1/apache/bin/ab-c 1000-n 50000 "http://10.10.10.10/a.php"This is apachebench, Version 1.3d Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Copyright (c)
stress testing tools http_load webbench AB Summary ABABIs a powerful test tool provided by Apache.Apache is installed,You can view its description.Reference$./AB./AB: Wrong number of argumentsUsage:./AB [Options] [http: //] hostname [: Port]/pathOptions are:-N requests number of requests to perform-C concurrency numbe
Parameters of the stress test command and Chinese annotations of the output results
Permalink
I used to install APACHE without knowing how to test APACHE performance. now I have found a test tool. It is the test tool AB (APACHE benchmark) that comes with apache. it is under the bin directory of APACHE.Format:./AB [options] [http: //] hostname [: port]/pathParameters:-N requests Number of requests to pe
Using AB for page pressure test AB is a very useful stress test tool from Apache, and when Apache is installed, you can find AB 1 under bin. We can simulate 100 concurrent users and send 1000 requests to a page./ab-n1000-c100 Http://vm1.jianfeng.com/a.html where-n represents the number of requests, and-C represents the
AB command principleApache's AB commands simulate multi-threaded concurrent requests, test server load pressures, and test the pressure of Nginx, Lighthttp, IIS and other Web servers.The AB command is very low on the computer that emits the load, does not consume a lot of CPU, and does not take up too much memory, but it can cause huge load to the target server,
2015.10.44 minutes Apache comes with AB pressure test tool using:win8.1 wampserver2.5-apache-2.4.9-mysql-5.6.17-php5.5.12-64bcan refer to part of the explanation there is a diagram, I just open the cmd window, into the Apache installation directory (AB is usually Apache comes with test tools, so you can execute the command that needs to be tested), my F:\wamp\bin\apach\apache2.4.9\ Bin directory: Two modes
the test project name. The value is one of the following values: FILEIO,CPU,MEMORY,THREADS,MUTEX,OLTP--debug=[on|off] Displays more debug information. The default is off. --validate=[on|off] Perform validation checks where possible. The default is off.Use of the help command:List all commandsSysbench--helpLists the specified test item usage instructionsSysbench--TEST=CPU HelpTo view the parameters of a specific test itemSysbench--test=threads Help
Name of parameter
Describe
Use Apache AB to do site performance testing, below is the test results analysis:After installing Apache AB, you can enter AB-N1000-C10 http://101.200 in CMD. . /To test the site you want to test.D:\Program Files (x86) \apache ABGT;AB-N1000-C10http://101.200. *.*/this is Apachebench, Version2.3655654$>copyright1996Adam
A clean CentOS environment
Install the JDK and configure the environment variables
Direct installation via yum-y install httpd command
After installation enter Usr/sbin/apachectl start Apache.
Apache AB performs a stress test with the following path:/usr/bin/ab, executed under the/usr/bin path./AB-V display version that Apache
AB command principleApache's AB commands simulate multi-threaded concurrent requests, test server load pressures, and test the pressure of Nginx, Lighthttp, IIS and other Web servers.The AB command is very low on the computer that emits the load, does not consume a lot of CPU, and does not take up too much memory, but it can cause huge load to the target server,
transfer of data is 289884bytes, the run time is 10.0148 seconds2. 5916 mean bytes/connection shows the average amount of data transmitted per connection 289884/49=59163. 4.89274 fetches/sec, 28945.5 bytes/secIndicates that the response request per second is 4.89274, and the data passed per second is 28945.5 bytes/sec4. msecs/connect:28.8932 mean, 44.243 max, 24.488 min indicates that the average response time per connection is 28.8932 msecs, maximum response time 44.243 msecs, minimum response
1. Install AB command
sudo apt-get install apache2-utils
2.ab Command parameter description
Usage:ab [Options] [http[s]://]hostname[:p ort]/path options are://Total requests-N requests number of requests to Perform house//concurrent Request number total requests (n) = number of concurrent (c)-c concurrency number of multiple requests to make-t TI Melimit Seconds to Max. Wait for Responses-b windowsize t
/wKioL1Rd3Z2BdOb-AAEFET1dZWw799.jpg "title=" 1.jpg " alt= "Wkiol1rd3z2bdob-aaefet1dzww799.jpg"/>View MySQL information:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/F7/wKiom1Rd3XfjlIqRAALkWuHwgas105.jpg "title=" 1.jpg " alt= "Wkiom1rd3xfjliqraalkwuhwgas105.jpg"/>FOUR: AB Pressure performance testing tools:Common options for the AB test tool:-N: The total number of connections to test, that i
Today, referring to the stress test, think of the previous AB, and then re-find the next information, and recorded the next.The AB command creates many concurrent access threads, simulating multiple visitors accessing a URL address at the same time.Its test target is URL-based, so it can be used to test the load pressure of Apache, as well as other Web servers such as Nginx, Lighthttp, Tomcat, and IIS.The
in the Apache server suite, there is a called ab(apachebench) tool. apachebench is primarily used to test Apache server execution efficiency.Apachebench can simulate a continuous online request for a particular URL while simultaneously simulating the same online request at the same point in time, thus leveraging apachebench can help us in the development of the site to simulate the actual line possible situation, using the simulated data as the bas
AB is a very easy-to-use stress testing tool. It does not need to be installed in linux. Here are several key parameters of AB and examples of use.Requests per second: the number of Requests per second. This is an important parameter value, indicating the server throughput.Time per request: average user request wait TimeTime per request: average server processing Time, that is, the reciprocal of server thro
Open the installation path of the Apache server (I use wampserver), there is a Ab.exe executable program in the bin directory, it is the stress test tool to be introduced.
Under the Windows System command line, go to the directory where the Ab.exe program is located and execute the Ab.exe program. Note the direct double-click does not work correctly.
vcd4kpha+icagicagicbkoii72lo1l734yotexcwppgjypgo8l3a+cjxwpia8aw1nihnyyz0= "http://www.2cto.com/uploadfile/ Collfiles/20140614/20140614091
Posts posted on the 7D Forum look good to add to your blog ~~~
I used to install Apache without knowing how to test Apache performance.Now we have found a test tool.. It is the test tool AB (APACHE benchmark) that comes with Apache. It is under the bin directory of Apache.Format:./AB [Options] [http: //] hostname [: Port]/pathParameters:-N requests number of requests to perform// The number of requests exe
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.