The Linux under SS command uses

Source: Internet
Author: User

the SS is the abbreviation for the socket statistics. As the name implies, the SS command can be used to get socket statistics, which can display and netstat similar content. But the advantage of the SS is that it can show more and more detailed information about TCP and connection status, and is faster and more efficient than netstat.


When the number of socket connections for a server becomes very large, the execution speed is slow, either with the netstat command or the direct cat/proc/net/tcp. When the server maintains a connection of tens of thousands of times, using netstat equals wasting life, and using SS is to save time.

The World martial arts only fast not broken. The secret of the SS fast is that it leverages the TCP_DIAG in the TCP protocol stack. Tcp_diag is a module for analyzing statistics that gives you first-hand information in the Linux kernel, which ensures that the SS is fast and efficient. Of course, if you do not have tcp_diag,ss in your system, you can run normally, but the efficiency will become slightly slower. (but still faster than Netstat.) )

1. Command format:

SS [Parameter]

SS [Parameter] [filter]

2. Command function:

The SS command can be used to get socket statistics, which results in a similar output to the Netstat output, but it can display more detailed information about the status of TCP connections and is faster and more efficient than netstat. It uses the TCP protocol stack Tcp_diag (is a module for analyzing statistics), can directly from the first-hand kernel information, which makes the SS command fast and efficient. It can run normally without tcp_diag,ss.

3. Command parameters:

-H,--help help info

-N,--numeric does not resolve service name

-R,--resolve parse host name

-O,--options display timer information

-E,--extended display detailed socket (sockets) information

-P,--processes shows the process using the socket (socket)

-I,--info display TCP internal information

-S,--summary display socket (socket) Usage overview

-T,--tcp display only TCP sockets (sockets)

-U,--udp Show only UCP sockets (sockets)

-D,--DCCP Show only DCCP sockets (sockets)

This article is from the "xinsz08の parallel space-time" blog, be sure to keep this source http://xinsz08.blog.51cto.com/10565212/1917395

The Linux under SS command uses

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.