当前位置:网站首页>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!
边栏推荐
- beforeDestroy与destroyed的使用
- Safety 20220722
- 手把手实现图片预览插件(三)
- open failed: EACCES (Permission denied)
- 已解决:不小心卸载pip后(手动安装pip的两种方式)
- The application and practice of mid-to-platform brand advertising platform
- (五)final、抽象类、接口、内部类
- [AUTOSAR-RTE]-5-Explicit (explicit) and Implicit (implicit) Sender-Receiver communication
- Why SocialFi achievement Web3 decentralized social in the future
- (八)Math 类、Arrays 类、System类、Biglnteger 和 BigDecimal 类、日期类
猜你喜欢

Error EPERM operation not permitted, mkdir ‘Dsoftwarenodejsnode_cache_cacach两种解决办法

Win10 CUDA CUDNN 安装配置(torch paddlepaddle)

浅识Flutter 基本组件之CheckBox组件

The third is the code to achieve

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

No qualifying bean of type 问题

type_traits metaprogramming library learning

Zotero如何删除自动生成的标签

高等数学---第九章二重积分

C language from entry to such as soil, the data store
随机推荐
Safety 20220715
binom二项分布,
【SemiDrive源码分析】【MailBox核间通信】44 - 基于Mailbox IPCC RPC 实现核间通信(RTOS侧 IPCC_RPC Server 消息接收及回复 原理分析篇)
安全20220718
MATLAB/Simulink&&STM32CubeMX工具链完成基于模型的设计开发(MBD)(三)
Implementation of a sequence table
[shell basics] determine whether the directory is empty
进程间通信
Regarding the primary key id in the mysql8.0 database, when the id is inserted using replace to be 0, the actual id is automatically incremented after insertion, resulting in the solution to the repea
(五)final、抽象类、接口、内部类
$attrs/$listeners
(四)递归、可变参数、访问修饰符、理解 main 方法、代码块
IDEA common shortcut keys and plug-ins
(六)枚举、注解
Redis 使用LIST做最新评论缓存
Port inspection steps - 7680 port analysis - Dosvc service
C# 实现PLC的定时器
MATLAB/Simulink & & STM32CubeMX tool chain completes model-based design development (MBD) (three)
mysql数据库安装(详细)
The use of beforeDestroy and destroyed