View concurrent connections in Nginx

Source: Internet
Author: User
By viewing the Nginx concurrent connections, we can clear the load of the website. There are two ways to view Nginx concurrency (the reason is that I only know two ways), one is through the web interface, the other is through the command, the web view is more accurate than the command display result... by viewing the Nginx concurrent connections, we can clear the load of the website. There are two ways to view Nginx concurrency (the reason is that I only know two ways), one is through the web interface, the other is through the command, web view is more accurate than Command View. The following describes the two viewing methods: No1, through the browser to view through the web interface to view Nginx needs to enable the status module, that is, install Nginx with -- with-http_stub_status_module and then Configure Nginx. conf, add the following content to the server point: location/status {stub_status on; access_log/usr/local/nginx/logs/status. log; auth_basic "NginxStatus";} After configuring Nginx, you can access http through a browser: // view No2 in localhost/status and run the command to view # netstat-n | awk '/^ tcp/{++ S [$ NF]} END {for (a in S) print a, S [a]} 'resolution: CLOSED // no connection is active or LISTEN is in progress // The server is waiting for the incoming call SYN_RECV // a connection request has arrived, wait to confirm that the SYN_SENT // application has started, open a connection to ESTABLISHED // normal data transmission status/current number of concurrent connections FIN_WAIT1 // The application says it has completed FIN_WAIT2 // the other side has agreed to release ITMED_WAIT // wait until all groups die CLOSING // both sides attempt to disable TIME_WAIT at the same time // the other side has initialized a release LAST_ACK // wait until all groups die
Related Article

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.