当前位置:网站首页>关于出现大量close_wait状态的理解
关于出现大量close_wait状态的理解
2022-07-31 04:10:00 【滴水可藏海】
以web服务器产生大量的close_wait状态为例
1.close_wait状态介绍:
客户端主动关闭连接,服务器接收到客户端的FIN,但是还没有发送自己的FIN,此时的状态为close_wait状态,大量的close_wait状态拖累服务器性能
2.close_wait产生的原因:
某种情况下客户端关闭了连接,但是我方忙于读写,没有关闭连接
3.解决方法:
思想:检查出客户端已经关闭的连接,关闭他
之所以会出现这种问题,肯定是服务器端的连接释放的代码存在问题
1.当服务器读写失败时,可以选择关闭连接
2.定期向连接发送询问数据,检查收到的回复数据包(Heart-Beat线程发送指定格式的心跳数据包)
3.修改keep-live参数(超时时间,tcp检查间隔时间:keeplive探测包发送的间隔,tcp检查次数:如果对方不予应答,探测包发送的次数)
ps:服务器出现大量的close_wait状态,这个锅肯定是服务器端的coder背!
边栏推荐
- binom二项分布,
- Mysql 45 study notes (twenty-five) MYSQL guarantees high availability
- Automation strategies for legacy systems
- IIR filter and FIR filter
- Select the smoke test case, and make the first pass for the product package entering QA
- 识Flutter 基本组件之showTimePicker 方法
- 已解决(最新版selenium框架元素定位报错)NameError: name ‘By‘ is not defined
- C语言表白代码?
- Can‘t load /home/Iot/.rnd into RNG
- LocalDate加减操作及比较大小
猜你喜欢

Mysql 45 study notes (23) How does MYSQL ensure that data is not lost

组件传值 provide/inject
![[C language] Three-pointed chess (classic solution + list diagram)](/img/64/18ed08b64f9618bbd7f24ee16e6a6f.jpg)
[C language] Three-pointed chess (classic solution + list diagram)

(八)Math 类、Arrays 类、System类、Biglnteger 和 BigDecimal 类、日期类

How to develop a high-quality test case?
![[Dynamic programming] Maximum sum of consecutive subarrays](/img/3d/10731cc64d1c69d2beb3666ae0f064.png)
[Dynamic programming] Maximum sum of consecutive subarrays

5. How does the SAP ABAP OData service support the $filter operation

C language confession code?

Thinking about data governance after Didi fines

(8) Math class, Arrays class, System class, Biglnteger and BigDecimal classes, date class
随机推荐
type_traits metaprogramming library learning
安全20220722
log level and print log note
(八)Math 类、Arrays 类、System类、Biglnteger 和 BigDecimal 类、日期类
How to develop a high-quality test case?
高等数学---第九章二重积分
浅识Flutter 基本组件之CheckboxListTile组件
[Swift] Customize the shortcut that pops up by clicking the APP icon
endian mode
Select the smoke test case, and make the first pass for the product package entering QA
RESTful api接口设计规范
Web container and IIS --- Middleware penetration method 1
MATLAB/Simulink&&STM32CubeMX工具链完成基于模型的设计开发(MBD)(三)
LeetCode每日一练 —— 138. 复制带随机指针的链表
进程间通信
立足本土,链接全球 | 施耐德电气“工业SI同盟”携手伙伴共赴未来工业
$parent/$children 与 ref
已解决:不小心卸载pip后(手动安装pip的两种方式)
[AUTOSAR-RTE]-5-Explicit (explicit) and Implicit (implicit) Sender-Receiver communication
The third is the code to achieve