Statistics of connection data for port 80
Netstat-nat | Grep-i "80" | Wc-l
Count HTTPD Protocol Connections
Ps-ef | grep httpd | Wc-l
Statistics of connected, state-establish
Netstat-na | Greo Establish | Wc-l
Find out which IP connection is the most, and seal it off
Netstat-na | grep Establish | awk {print $} | Awk-f:{print $1}| Sort | uniq-c | Sort-r +on
View the current number of concurrent accesses to Apache
Netstat-na | grep Establis | Wc-l
See how many processes are there
Ps-aux | grep httpd | Wc-l
To view the number of concurrent requests for Apache and its TCP connection status
Netstat-nt | awk ' {++s[$NF]}end{for (A in S) print A,s[a]} '
SYN_RECV indicates the number of requests that are waiting to be processed; established indicates normal data transfer status; Time_wait indicates the number of requests that have been processed, waiting for the time-out to complete.
Status: Description
CLOSED: No connection is active or in progress
LISTEN: The server is waiting to enter the call
SYN_RECV: A connection request has arrived, waiting for confirmation
syn_sent: Application has started, open a connection
established: Normal data transfer status
fin_wait1: Application says it's done
Fin_wait2: The other side has agreed to release
itmed_wait: Waiting for all packets to die
CLOSING: Both sides try to close simultaneously
time_wait: The other side has initialized a release
Last_ack: Waiting for all packets to die
View the number of concurrent requests for HTTP and their TCP connection status