In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "Nginx how to view the number of concurrent links", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "Nginx how to view the number of concurrent links" this article.
First, view through the interface
When viewing through the web interface, Nginx needs to open the status module, that is, when installing Nginx, add
-- with-http_stub_status_module
Then configure Nginx.conf and add the following to the server:
Location / status {
Stub_status on
Access_log / usr/local/nginx/logs/status.log
Auth_basic "NginxStatus"
}
After reloading Nginx after configuration, we can visit http://localhost/status through the browser to view:
Nginx load command
/ usr/local/nginx/sbin/nginx-t # detects configuration files for errors
/ usr/local/nginx/sbin/nginx-s reload # reload configuration file
View the result description:
Active connections / / the number of active connections currently being processed by Nginx.
Server accepts handledrequests / / handled a total of 5823 connections, successfully created 5823 handshakes, and processed a total of 7806 requests.
The number of Header messages read to the client by Reading / / nginx.
The number of Header messages returned to the client by Writing / / nginx.
Waiting / / when keep-alive is enabled, this value is equal to active- (reading+writing), which means that Nginx has finished processing the resident connection waiting for the next request instruction.
Check through the command
View command
$netstat-n | awk'/ ^ tcp/ {+ + S [$NF]} END {for (an in S) print a, S [a]}'
Result
TIME_WAIT 17
ESTABLISHED 3254
LAST_ACK 236
FIN_WAIT_1 648
FIN_WAIT_2 581
CLOSING 7
CLOSE_WAIT 4916
The results show that
CLOSED / / Connectionless is active or in progress
The LISTEN / / server is waiting for an incoming call
SYN_RECV / / A connection request has arrived, waiting for confirmation
SYN_SENT / / the application has started, open a connection
ESTABLISHED / / normal data transfer status / current concurrent connections
FIN_WAIT1 / / the app says it's done.
FIN_WAIT2 / / the other side has agreed to release
ITMED_WAIT / / wait for all groups to die
CLOSING / / both sides try to shut down at the same time
TIME_WAIT / / the other side has initialized a release
LAST_ACK / / wait for all groups to die
The above is all the contents of the article "how to check the number of concurrent links in Nginx". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.