Tag

TIME_WAIT

0 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
May 4, 2024 · Fundamentals

Understanding HTTP and TCP: From URL to Browser Rendering

The article walks through every step from typing a URL to final page rendering, detailing URL parsing, DNS lookup, TCP three‑way handshake and termination, HTTP request/response structure, congestion and flow control mechanisms, and the browser’s DOM, CSS, layout and painting processes.

HTTPTIME_WAITbrowser
0 likes · 13 min read
Understanding HTTP and TCP: From URL to Browser Rendering
Cognitive Technology Team
Cognitive Technology Team
Feb 17, 2024 · Fundamentals

Understanding TCP Connection Termination: Four-Way Handshake, Half‑Close, Shutdown, and TIME_WAIT

This article explains how TCP connections are gracefully closed using the four‑way handshake, describes half‑close and half‑open states, compares the close and shutdown system calls, details the TIME_WAIT state and its impact, and offers practical techniques to reduce or avoid TIME_WAIT accumulation.

TIME_WAITconnection terminationnetwork programming
0 likes · 12 min read
Understanding TCP Connection Termination: Four-Way Handshake, Half‑Close, Shutdown, and TIME_WAIT
Efficient Ops
Efficient Ops
Aug 15, 2022 · Fundamentals

Why Does TIME_WAIT Accumulate in High‑Concurrency Scenarios and How to Fix It?

Under high‑concurrency loads, massive TIME_WAIT TCP connections can exhaust local ports, causing “address already in use” errors; this article explains the root causes, impact on services, and practical mitigation strategies such as keep‑alive headers, socket reuse, and reducing the TIME_WAIT timeout.

TIME_WAIThigh concurrencynetworking
0 likes · 7 min read
Why Does TIME_WAIT Accumulate in High‑Concurrency Scenarios and How to Fix It?
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 8, 2022 · Databases

Analyzing Excessive TIME_WAIT Connections on a MySQL Server and Effective Mitigation

The article investigates why a MySQL server shows a large number of TCP connections in TIME_WAIT state, examines OS and MySQL logs, tests sysctl adjustments, captures network packets to reveal short‑lived client connections, and concludes that using persistent connections can eliminate the issue.

MySQLTIME_WAITnetwork troubleshooting
0 likes · 6 min read
Analyzing Excessive TIME_WAIT Connections on a MySQL Server and Effective Mitigation
Efficient Ops
Efficient Ops
Jul 6, 2021 · Operations

Mastering TCP TIME-WAIT: When to Optimize and How

This article explains the purpose of the TCP TIME-WAIT state, the scenarios it protects against, common misconceptions, and practical Linux kernel tweaks—such as fast recycle, socket reuse, and tw_buckets settings—to manage TIME-WAIT efficiently on high‑concurrency servers.

LinuxTIME_WAITnetwork operations
0 likes · 8 min read
Mastering TCP TIME-WAIT: When to Optimize and How
Top Architect
Top Architect
Jan 26, 2021 · Fundamentals

Understanding and Handling Excessive TIME_WAIT TCP Connections in High‑Concurrency Scenarios

The article explains why large numbers of TIME_WAIT TCP connections appear under high concurrency, analyzes the underlying TCP four‑handshake mechanism and port exhaustion issues, and provides practical solutions such as socket reuse, reducing TIME_WAIT duration, and configuring keep‑alive connections.

NetworkTIME_WAITnginx
0 likes · 10 min read
Understanding and Handling Excessive TIME_WAIT TCP Connections in High‑Concurrency Scenarios
Efficient Ops
Efficient Ops
Oct 20, 2020 · Operations

Why Do TIME_WAIT Connections Surge in High‑Concurrency Scenarios and How to Fix Them

During high‑concurrency traffic, servers can accumulate large numbers of TCP connections in the TIME_WAIT state, which can exhaust local ports and cause “address already in use” errors; this article explains the phenomenon, its underlying TCP mechanics, and practical configuration and kernel tweaks to mitigate the issue.

LinuxTIME_WAITnetworking
0 likes · 9 min read
Why Do TIME_WAIT Connections Surge in High‑Concurrency Scenarios and How to Fix Them
Efficient Ops
Efficient Ops
Jul 14, 2020 · Operations

Why Enabling tcp_tw_recycle Can Crash Your Web Service and How to Fix It

This article explains how an unstable response time caused by misconfigured public load balancers and the kernel parameters net.ipv4.tcp_tw_recycle and net.ipv4.tcp_tw_reuse led to frequent monitoring alerts, details the diagnostic steps taken, and provides concrete remediation recommendations.

TIME_WAITkernel-tuningload balancer
0 likes · 19 min read
Why Enabling tcp_tw_recycle Can Crash Your Web Service and How to Fix It
Efficient Ops
Efficient Ops
Jul 7, 2020 · Fundamentals

Why Do TIME_WAIT Connections Accumulate in High‑Traffic Servers and How to Fix Them?

Under high‑traffic conditions, servers can generate massive numbers of TCP TIME_WAIT sockets, consuming local ports and causing “address already in use” errors; this article explains the underlying causes, impact on services, and practical mitigation strategies such as keep‑alive headers and socket reuse.

TIME_WAITnetworkingnginx
0 likes · 9 min read
Why Do TIME_WAIT Connections Accumulate in High‑Traffic Servers and How to Fix Them?
Efficient Ops
Efficient Ops
Jun 17, 2020 · Operations

Mastering TCP: Decode the 11 Connection States and Solve Nginx TIME_WAIT Issues

This article explains the 11 TCP connection states—including the three‑way handshake and four‑way termination—illustrated with packet captures, shows how to inspect them using netstat or ss, and discusses common Nginx TIME_WAIT problems and strategies for troubleshooting and performance tuning.

LinuxNetworkTIME_WAIT
0 likes · 7 min read
Mastering TCP: Decode the 11 Connection States and Solve Nginx TIME_WAIT Issues
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 18, 2020 · Information Security

How Securing MySQL with TCP Wrappers Can Cause an Outage

This article examines a MySQL outage triggered by TCP wrappers, detailing how high thread counts, DNS latency, TIME_WAIT socket exhaustion, and frequent reads of /etc/hosts.allow and /etc/hosts.deny can block connections, and provides troubleshooting steps and mitigation recommendations.

MySQLTCP wrappersTIME_WAIT
0 likes · 11 min read
How Securing MySQL with TCP Wrappers Can Cause an Outage
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Nov 14, 2019 · Fundamentals

How to Replace TCP FIN with RST Using SO_LINGER in Go

This article explains why TIME_WAIT occurs, its resource impact, and demonstrates two optimization strategies—accelerating TIME_WAIT reclamation and using the SO_LINGER option to send an RST packet instead of the normal FIN handshake, with complete Go client and server examples and packet‑capture analysis.

GoSO_LINGERSocket Programming
0 likes · 8 min read
How to Replace TCP FIN with RST Using SO_LINGER in Go
Qunar Tech Salon
Qunar Tech Salon
Nov 6, 2018 · Operations

Analyzing TCP Connection States and Resolving TIME_WAIT, CLOSE_WAIT, and SYN_RECV Issues in a Java/Tomcat/HBase System

This article walks through a real‑world incident where sudden traffic drops were traced to abnormal TCP states—TIME_WAIT, CLOSE_WAIT, and SYN_RECV—by examining monitoring data, explaining the TCP handshake, reviewing relevant kernel parameters, and debugging Java/ZooKeeper/HBase code to identify and fix the root cause.

CLOSE_WAITHBaseSYN_RECV
0 likes · 20 min read
Analyzing TCP Connection States and Resolving TIME_WAIT, CLOSE_WAIT, and SYN_RECV Issues in a Java/Tomcat/HBase System
360 Tech Engineering
360 Tech Engineering
May 24, 2018 · Operations

Common Short‑Connection Errors [99] and [110] in Linux: Causes, Code Analysis, and Optimizations

This article examines why frequent short‑lived TCP connections on Linux trigger the [99] could not assign requested address and [110] connection timeout errors, explains the underlying TIME‑WAIT port exhaustion and listen‑queue overflow mechanisms, and offers verification experiments and practical mitigation strategies.

LinuxNetwork TuningTIME_WAIT
0 likes · 8 min read
Common Short‑Connection Errors [99] and [110] in Linux: Causes, Code Analysis, and Optimizations
360 Quality & Efficiency
360 Quality & Efficiency
Feb 8, 2018 · Fundamentals

Understanding TCP TIME_WAIT State and Optimization Techniques

This article explains the TCP TIME_WAIT state, its role in connection termination, the performance impact of large numbers of TIME_WAIT sockets, and practical optimization methods such as using keep‑alive and tuning Linux kernel parameters to mitigate the issue.

LinuxNetwork TuningPerformance Testing
0 likes · 8 min read
Understanding TCP TIME_WAIT State and Optimization Techniques
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Aug 11, 2016 · Fundamentals

Mastering TCP: The Three-Way Handshake and Four-Way Termination Explained

This article breaks down the TCP three‑way handshake and four‑way termination processes, explaining each packet exchange, the role of sequence numbers, the TIME_WAIT state, and why these steps are essential for reliable full‑duplex communication.

Full-duplexTIME_WAITfour-way termination
0 likes · 8 min read
Mastering TCP: The Three-Way Handshake and Four-Way Termination Explained
Tencent Music Tech Team
Tencent Music Tech Team
May 20, 2016 · Fundamentals

In‑Depth Analysis of TCP Connection Timeout, TIME_WAIT, Nagle Algorithm and Kernel Parameters

This article examines three common TCP issues—missing client‑side socket timeouts leading to monitor‑killed processes, excessive TIME_WAIT sockets after service failures and their kernel tunables, and 40 ms keep‑alive latency caused by Nagle and delayed ACK—explaining kernel behavior and offering practical configuration fixes.

Connection TimeoutLinux kernelNagle algorithm
0 likes · 19 min read
In‑Depth Analysis of TCP Connection Timeout, TIME_WAIT, Nagle Algorithm and Kernel Parameters