RedHatLinux5 performance testing and monitoring

Source: Internet
Author: User
Linux stress testing software tool: AB generally comes with this stress testing tool when you install the httpd system package. We can use rpm & ndash; qlhttpd | less command to check whether such a package exists in your software package/usr/bin/abAb [option] [http [s] // hostname [: port]/path-c concurrent Request volume is when we execute an AB

Linux stress testing software

Tool: AB

Generally, this stress testing tool is provided when you install the httpd system package.

Rpm-ql httpd | less

This command is used to check whether such a package exists in your software package.

/Usr/bin/AB

AB [option] [http [s] // hostname [: port]/path

-C: The number of concurrent requests is the number of concurrent connection requests sent when we execute an AB command. The maximum number of apache connection requests is less than 3000, and the more requests each second, indicates that the processing capability is stronger.

-N indicates the total number of requests when you execute benchmarking.

For example: AB-c 100-n 1000 http://www.abc.com/the test result is the test site. You can also run PS aux | grep http through the test process.

Load Testing

Tool: http-load

Test Tool: http_load-12mar2006.tar.tar requires source code Installation

Tar-xvf http_load-12mar2006.tar.tar

Music http_load-12mar2006/usr/local/src/

Cd/usr/local/src/

Cd/http_load-12mar2006/

Make

Make install

Mkdir-pv/usr/local/man/man1 create multi-level subdirectory v to indicate detailed information

Make install

Server Load balancer is a tool, and the source code is installed in the/usr/local/directory. You only need to check the bin and sbin directories, the bin directory of the common binary tool that can be executed by a common account and the files that can be executed by the Administrator are stored in sbin.

Http-load [option] url_file (a common text file containing the website address you need to test)

-F number of requests

-P concurrency count

-S time limit within how long it must be completed

-R-Specified Rate

The status code consists of three numbers. The first number defines the response category and has five possible values:

1xx: indicates that the request has been received and continues to be processed.

2xx: Success-indicates that the request has been successfully received, understood, and accepted

3xx: Redirection-further operations are required to complete the request

4xx: client error-the request has a syntax error or the request cannot be implemented

5xx: Server Error -- the server fails to fulfill the valid request

Common status codes, status descriptions, and descriptions:

200 OK // client request successful

400 Bad Request // The client Request has a syntax error and cannot be understood by the server

401 Unauthorized // The request is Unauthorized. This status code must be used with the WWW-Authenticate header domain

403 Forbidden // The server receives the request but rejects the service.

404 Not Found // The requested resource does Not exist. For example, the incorrect URL is entered.

500 Internal Server Error // unexpected Server Error

503 Server Unavailable // The Server cannot process client requests currently and may return to normal after a period of time

Eg: HTTP/1.1 200 OK (CRLF)

For more details, please continue reading the next page highlights: http://www.linuxidc.com/Linux/2013-09/89889p2.htm

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.