View the Nginx server state configuration method through the browser _nginx

Source: Internet
Author: User
Tags nginx server

Copy Code code as follows:

Location/nginx-status {
Stub_status on;
#access_log/var/log/nginx/mmt_nginx_status.log;
Access_log off;
Allow 192.168.0.10;
Deny all;
#auth_basic "Nginxstatus";
}

Visit url:http://192.168.0.11/nginx-status

Results:

Copy Code code as follows:

Active connections:178
Server accepts handled requests
102547 102547 206588
reading:0 writing:38 waiting:140

Analytical:

Active Connections: The number of active connections initiated against the backend (server). The
Server accepts handled Requests:nginx handled 102,547 connections, successfully creating 102,547 handshakes (proving that there were no failures), processing 206,588 requests (averaging 29884 per handshake) 15392 = 1.94 data requests). The
Reading:nginx the number of header information read to the client. The
Writing:nginx the number of header information returned to the client.
Waiting: When Keep-alive is turned on, this value is equal to active– (reading + writing), meaning that the nginx has been processed and is waiting for the next request instruction to reside in the connection.
Therefore, in the case of high efficiency, the request is quickly processed, the number of waiting is normal. If the number of reading + writing is high, the concurrent traffic is very large and is being processed.
(end)

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.