Test environment:Operating system: CentOS release 6.6 (Final)Apache Performance Test Tool Ab:this is Apachebench, Version 2.31.Apache 's own stress test software AB test. 2.Apache Benchmark abbreviation AB,AB is the Apache benchmark test tool. 3.yum-y Install Httpd-tools # can be installed separately AB4.AB pressure te
AB command formatThe AB command is placed below the Apache directory bin directory using the following method:
/ab-n 3000-c http://www.local.com/(This is the page address of the server under test)Where-n represents each concurrency, and-C represents the total number of sent2. Analysis of test results[email protected] bin]#/
Web site Performance Stress testing is an essential part of the performance tuning process of the server website, only to let the server in the case of high pressure, can really reflect the software, hardware and other improper settings exposed problems.Performance testing tools are now most commonly found in the following categories: AB, Http_load, Webbench, siege. AB is an Apache-brought stress test tool
Before using, you need to verify that the server has Apache Http Server installed, and if it is not installed, you need to first install:
$ sudo yum install httpd$ ab-vThis is apachebench, Version 2.3 Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to the Apache Software Foundation, http://www.apache.org/
The following is an explanation of some of the commonly used parameters for
PHP uses AB in Apache to test the website's stress performance. Open the installation tool of the apacheserver (wampserverplugin is used, and an executable program of AB .exe is included in the bindirectory, which is the stress testing tool to be introduced. Run commands on Windows to open the installation path of the Apache server (wampserverplugin is used, and an executable program of
Ultra-practical pressure test tool-ab Toolwrite in front
Before learning AB tools, we need to know a few concepts about stress testing
Throughput rate (requests per second)Concept: A quantitative description of the server concurrency processing capability, in reqs/s, refers to the number of requests processed per unit of time for a concurrent user. The maximum number of requests per unit of t
Common Linux Network Tools: Http stress testing AB and linux stress testing
The full name of AB is Apache stress, which is a self-built Network stress testing tool of Apache. Compared with LR and JMeter, AB is the simplest and most common Http stress testing tool I know.
The AB command has very low requirements on the
We have our own servers, and sometimes we need to test how much data our servers can resist, which will help us deploy and configure our servers, and we have our own free performance testing tools in Apache, Ab (Apache bench) in the Apache bin directory, It can simulate multiple concurrent requests, meaning it is primarily used to test how many requests your Apache can handle per second.
Command syntax
AB
AB is a performance testing tool for Apache Hypertext Transfer Protocol (HTTP. It is designed to describe the execution performance of the currently installed Apache, mainly to show how many requests can be processed per second by your installed Apache. # AB-v can see its basic information # ab-n1000-c10: 81t. php: this is a basic command-n1000 indicates that the
AB is a performance testing tool provided by the Apache server. It can simulate access to a specified URL and generate a report on access efficiency, we can see the performance of the website under high pressure.
AB .exe in Windows is generally in the bin directory of the Apache installation directory. Here are a few examples I have actually used:
400 requests for http: // localhost/dz7/index. phpab -n 400
AB is an HTTP stress testing tool that comes with Apache.ApacheBenchIt is easier to use than Microsoft's wast, HP's LoadRunner, and qaload.AB is an installation component of Apache. Therefore, you must download and install Apache before using it. This command is located in the bin folder under the Apache installation directory.AB is a benchmark testing dedicated for HTTP server. It can simulate multiple concurrent requests at the same time.AB is desig
Unity5 packaging mechanism, a resource to play AB and resource management scheme. 1. Hit AB: 1. Set platform 2. Clear All resources assetbundlename: string[] Abnamearr = Assetdatabase.getallassetbundlenames (); Assetdatabase.removeassetbundlename (abnamearr[i],true); 3. Create the AB directory 4. According to the configuration to find the resources needed
1. there are two basic options-c-n :. ab-c100-n10000127.0.0.1index.php-c100 is: 100 Concurrent-n10000 each time that: a total of 10000 requests are sent 2. test result analysis [junjie2 @ loginhtdocs] $ data1apachebinab-c1000-n5000010.10.10.10a.
1. there are two basic options-c-n :. /AB-c 100-n 10000 http: // 127.0.0.1/index. php-c 100: 100-n 10000 concurrent requests each time: a total of 10000 requests ar
Use Apache AB tool for stress testing and apache stress testing
AB command PrincipleThe Apache AB command simulates multi-thread concurrent requests, tests server load pressure, and tests the pressure on other Web servers such as nginx, lighthttp, and IIS.The AB tool that comes with Apache is very easy to use (the PHP
The previous article has said, recently received the task of optimizing interface and SQL, contacted the druid, monitoring the SQL, and now start the interface of the stress test, here using Apache's own performance test tool--ab (not Anglababy OH)
First look at AB. Apache's AB command simulates multithreaded concurrent requests, tests server load pressures, and
How to use
For example, the address to be measured: http://localhost:8080/web/test/ajax/testDB.doUse AB to simulate concurrent pressure:
ab-n1000-c100 http://localhost:8080/web/test/ajax/testDB.do
Parameter-N: Total requestsParameter-C: concurrent numberFor the above command, the meaning is: a total of 1000 requests, 100 concurrent each time. That is to say, the 1000 requests are divided into 10 batches,
in a very short period of time, resulting in a lot of time_wait, so that the use of the available port number, so the new connection can not bind the port, so to change the configuration of the client machine,In sysctl.conf Riga:
Net.ipv4.tcp_tw_reuse = 1 means to turn on reuse. Allows time-wait sockets to be re used for a new TCP connection, which defaults to 0, indicating shutdown;Net.ipv4.tcp_timestamps=1 turns on support for TCP timestamps, if the entry is set to 0, one of the following set
AB "master-slave copy"A is the main library, and B is the one from the library. Generally is AB copy, you can also AB copy.Example:What is the main function of implementation?The CREATE DATABASE ABC is executed in the main library, and the ABC library is created automatically from the libraryMySQL open log function, you create DATABASE ABC library in the library,
AB is Apache's own Web performance test tool, installed Apache default installation ab,ab is a command line tool, Linux under the installation of Apache can be used directly 1.ab simple use and test indicator introductionTest case: Ab-n 50-c www.cnblogs.com/N for send 5
Apache comes with AB, which is very easy to use and AB can initiate test requests locally directly on the Web server. This is critical because we want to test the processing time of the server without including the data on the network transmission time and the user PC's local computing time.It is clear that the essence of AB's testing is HTTP-based, so it can be said that it is a black-box performance test
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.