Linux uses the netstat command to view the number of concurrent connections

Source: Internet
Author: User

This article shares with you the main isLinuxUseNetstatcommand to view the number of concurrent connectionsRelated content, come together to look at it, hope that everyone to learn Linux help. Netstat-n | awk '/^tcp/{++s[$NF]} END {for (a in S) print A, s[a]} ' explanation : examples of returned results: Last_ack 5 (number of requests waiting to be processed) SYN_RECV 30 Established 1597 (Normal data transfer status) Fin_wait1 51 Fin_wait2 504 Time_wait 1057 (The number of requests to wait for the timeout to finish processing) 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: Wait for all packets to die CLOSING: Try to close both sides simultaneously Time_wait: A release was initialized on the other side of the Last_ack: Wait for all packets to dieIf you just want to see the current number of concurrent connections, you can use the following command: netstat-nat|grep established|wc-l Source: Tan9le's Blog

Linux uses the netstat command to view the number of concurrent connections

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.