Home > Operation and Maintenance > Linux Operation and Maintenance > Summary of detailed description of connection status

Summary of detailed description of connection status

零下一度
Release: 2017-06-10 10:19:46
Original
2231 people have browsed it

Check the number of concurrent connections and connection status of Nginx, etc. under Linux. 1. Check the number of concurrent requests of the web server (Nginx Apache) and its TCP connection status: netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S [a]}' or: netstat -n | awk '/^tcp/ {++state[$NF]} END {for(key in state) print key,"t",state[key]}'The return result is general As follows: LAST_ACK 5 (number of requests waiting to be processed) SYN_RECV 30 ESTABLIS

1. Detailed introduction on how to check the number of concurrent connections and connection status of Nginx under Linux

Summary of detailed description of connection status

Introduction: Check the number of concurrent connections and connection status of Nginx, etc. under Linux. 1. Check the number of concurrent requests of the Web server (Nginx Apache) and its TCP connection status: netstat -n | awk & 39;

2. PHP scheduled task detects user connection status

Summary of detailed description of connection status

Introduction: PHP scheduled task detects user connection status

3. View the number of concurrent apache requests and its TCP connection status

Summary of detailed description of connection status

##Introduction: I have built a group in the past two days Apache server, each server has 4G memory, using prefork mode. The number of connections set at the beginning was too few, and it took a long time to respond to user requests. Later, the configuration file httpd.conf of Apache 2.0.59 was modified. :

4. php three connection status processing

Summary of detailed description of connection status

Introduction: PHP features three connection status processing - normal, aborted, timeout

##5.

Centos65 Check the number of nginx concurrent connections and TCP connection status Command

Introduction:: This article mainly introduces Centos65 commands to view the number of nginx concurrent connections and TCP connection status. Students who are interested in PHP tutorials can refer to it.

6.

linux scheduled task php scheduled task detects user connection status

Introduction: linux scheduled task: linux plan Task php scheduled task detects user connection status: Scheduled task copy code is as follows: ignore_user_abort(); // The user closes the browser program and still executes set_time_limit(0); // Does not limit the program running time $interval = 3; // Program loop Interval time seconds $link = mysql_connect('localhost', 'username', 'paswd'); mysql_select_db('test'); mysql

[Related Q&A recommendations]:

How to send network requests regularly in Linux?

php - How to implement real-time collection of html in java, give me an idea. Thanks!

Java determines the connection status of the socket

PHP & Memcached connection status

node.js - Node connection mysql timeout problem

The above is the detailed content of Summary of detailed description of connection status. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template