当前位置:网站首页>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!
边栏推荐
- [C language] Three-pointed chess (classic solution + list diagram)
- [Swift] Customize the shortcut that pops up by clicking the APP icon
- BP神经网络
- BUG destroyer!!Practical debugging skills are super comprehensive
- Safety 20220718
- No qualifying bean of type question
- The use of beforeDestroy and destroyed
- The idea project obviously has dependencies, but the file is not displayed, Cannot resolve symbol 'XXX'
- C# 实现PLC的定时器
- (四)递归、可变参数、访问修饰符、理解 main 方法、代码块
猜你喜欢
BP神经网络
递归实现汉诺塔问题
idea工程明明有依赖但是文件就是显示没有,Cannot resolve symbol ‘XXX‘
「 每日一练,快乐水题 」1331. 数组序号转换
识Flutter 基本组件之showTimePicker 方法
[C language] General method of base conversion
[Swift]自定义点击APP图标弹出的快捷方式
"A daily practice, happy water problem" 1331. Array serial number conversion
(4) Recursion, variable parameters, access modifiers, understanding main method, code block
强化学习:从入门到入坑再到拉屎
随机推荐
errno error code and meaning (Chinese)
MySQL数据库增删改查(基础操作命令详解)
Why don't you programmers make a living off your own projects?And have to work for someone else?
《DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction》论文笔记
高等数学---第九章二重积分
ENSP,划分VLAN、静态路由,三层交换机综合配置
Safety 20220715
qlib架构
Redis 使用LIST做最新评论缓存
IDEA common shortcut keys and plug-ins
ClickHouse:设置远程连接
mysql数据库安装(详细)
three.js make 3D photo album
Reinforcement learning: from entry to pit to shit
「 每日一练,快乐水题 」1331. 数组序号转换
$parent/$children 与 ref
浅识Flutter 基本组件之CheckboxListTile组件
Zotero如何删除自动生成的标签
type_traits元编程库学习
问题7:列表的拼接