当前位置:网站首页>Understanding of the presence of a large number of close_wait states
Understanding of the presence of a large number of close_wait states
2022-07-31 04:12:00 【Dripping water can hide the sea】
Take the web server generating a large number of close_wait states as an example
1.close_wait status introduction:
The client actively closes the connection, the server receives the client's FIN, but has not sent its own FIN. The state at this time is the close_wait state, and a large number of close_wait states drag down the server performance
2. Reason for close_wait:
In some cases, the client closes the connection, but we are busy reading and writing, and the connection is not closed
3. Workaround:
Idea: Check out the connection that the client has closed, close him
The reason why this problem occurs must be that there is a problem with the code of the connection release on the server side
1. When the server fails to read and write, you can choose to close the connection
2. Periodically send inquiry data to the connection and check the received reply data packets (Heart-Beat thread sends heartbeat data packets in the specified format)
3. Modify the keep-live parameters (timeout time, tcp check interval time: the interval between keeplive detection packets sent, tcp check times: if the other party does not respond, the number of times the detection packet is sent)
ps: There are a lot of close_wait states on the server. This pot must be the back of the coder on the server side!
边栏推荐
- [CV project debugging] CUDNN_CONVOLUTION_FWD_SPECIFY_WORKSPACE_LIMIT problem
- 「 每日一练,快乐水题 」1331. 数组序号转换
- ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)
- Redis uses LIST to cache the latest comments
- The use of beforeDestroy and destroyed
- Web container and IIS --- Middleware penetration method 1
- Learning DAVID Database (1)
- el-image标签绑定点击事件后没有有用
- 安全20220712
- C# 实现PLC的定时器
猜你喜欢

MySQL数据库必会的增删查改操作(CRUD)
![[C language] Three-pointed chess (classic solution + list diagram)](/img/64/18ed08b64f9618bbd7f24ee16e6a6f.jpg)
[C language] Three-pointed chess (classic solution + list diagram)
![[C language] General method of expression evaluation](/img/59/cf43b7dd16c203b4f31c1591615955.jpg)
[C language] General method of expression evaluation

postgresql 15源码浅析(5)—— pg_control

IDEA common shortcut keys and plug-ins

MySQL基础操作

C语言从入门到如土——数据的存储

Reinforcement learning: from entry to pit to shit

$attrs/$listeners

Know the showTimePicker method of the basic components of Flutter
随机推荐
Redis 统计用户新增和留存
BUG消灭者!!实用调试技巧超全整理
No qualifying bean of type 问题
SIP Protocol Standard and Implementation Mechanism
LocalDate addition and subtraction operations and comparison size
[shell basics] determine whether the directory is empty
(四)递归、可变参数、访问修饰符、理解 main 方法、代码块
C语言从入门到如土——数据的存储
Pytest e-commerce project combat (on)
扫雷游戏(c语言写)
log level and print log note
Implementation of a sequence table
LeetCode每日一练 —— OR36 链表的回文结构
Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
Component pass value provide/inject
$attrs/$listeners
[AUTOSAR-RTE]-5-Explicit (explicit) and Implicit (implicit) Sender-Receiver communication
ClickHouse:设置远程连接
【AUTOSAR-RTE】-5-Explicit(显式)和Implicit(隐式) Sender-Receiver communication
three.js 制作3D相册