View the number of Apache concurrent requests and their TCP connection status in LINUX

Source: Internet
Author: User

View the number of Apache concurrent requests and their TCP connection status in LINUX.
Banquet
 
View the number of httpd processes (that is, the number of concurrent requests that Apache can process in prefork mode ):
Linux Command:
 
Ps-ef | grep httpd | wc-l
 
Sample returned results:
1388
It indicates that Apache can process 1388 concurrent requests. Apache can automatically adjust this value based on the load. The peak value of each server in my group has reached 2002.
 
 
--------------------------------------------------------------------------------
 
 
View the number of concurrent Apache requests and their TCP connection status:
Linux Command:
 
Netstat-n | awk '/^ tcp/{++ S [$ NF]} END {for (a in S) print a, S [a]}'
 
(This statement was obtained from Wang dawang, Technical Director of Sina interactive community division. It is very good)
Sample returned results:
LAST_ACK 5 (number of requests awaiting processing)
SYN_RECV 30
ESTABLISHED 1597 (NORMAL Data Transmission status)
FIN_WAIT1 51
FIN_WAIT2 504
TIME_WAIT 1057 (processed, number of requests waiting for timeout)
 
Status: Description
CLOSED: No connection is active or in progress
LISTEN: the server is waiting for incoming call
SYN_RECV: a connection request has arrived, waiting for confirmation
SYN_SENT: The application has started. Open a connection.
ESTABLISHED: normal data transmission status
FIN_WAIT1: The application says it has been completed
FIN_WAIT2: the other side has agreed to release
ITMED_WAIT: wait until all groups die
CLOSING: both sides attempt to close at the same time
TIME_WAIT: the other side has initialized a release.
LAST_ACK: waiting for all groups to die

Author: ERDP Technical Architecture"

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.