In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Ab
The ab instruction is a performance testing tool for apache, which can test the performance of the current apache server and show how many http requests can be processed per second.
The scope of application of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora.
1. Grammar
Ab [options]
2. Parameter list
Option
Description
-A name: pass
Provide a user name and password to the server
-b
Buffer size of the tcp connection
-c
Number of concurrent requests. Default is 1.
-C cookie-name = value
Add cookie
-e csv-file
Specify the resulting csv file
-g
Write the test results to the specified gnuplot file
-h
Display help information
-H
Attach additional header information to the request
-I
Execute HEAD requests in http instead of GET
-k
Start the keepalive function
-n
Specify the number of requests in the test session
-p
Specify the file that contains post data
-Q
If the number of requests is greater than 150, the Coab instruction shows progress after processing 10% or 100 requests.
-r
Do not exit when there is a socket receiving error
-t
Specify the maximum description of the test
-T
Specify Content-type information
-v
Set the level at which information is displayed
-V
Display version information
-x
A string that sets the attributes of the table tag
-X
Set up a proxy server
-y
Set the tr label
-z
Set the td label
3. Examples
Test performance
[root@localhost ~] # ab-n 10-c 10 http://www.qq.com/ 10 requests and 10 concurrent requests
This 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/
Benchmarking www.qq.com (be patient)... apr_poll: The timeout specified has expired (70007)
Total of 6 requests completed
A Linux learning platform has been made, and a prototype has come out at present, which you can refer to and use.
Link: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ password: n7bk
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.