Questions tagged [time-wait]
34 questions
1
vote
1 answer
Lots of TIME_WAIT from same IP address
I've seen a lot of questions with people concerned about lots of TIME_WAITs in netstat. I'm having a similar problem but all the TIME_WAITs are coming from the same IP address. I get over 200 of the following line:
tcp6 0 0 myip:80 …

user213510
- 11
- 1
- 3
1
vote
2 answers
How to diagnose large number of TIME_WAIT connections
We have a production issue with only one of our servers and have correlated slow performance to an abundance of sockets in the TIME_WAIT state. Without drawing this question into a huge backstory, we basically know that every time the server is…

Mara
- 139
- 1
- 11
1
vote
1 answer
How to reduce the timeout for TIME_WAIT connections on OpenBSD?
I'm running http_load on OpenBSD 5.2, to test how good my nginx setup is, and I've noticed that cold runs are much faster than warm runs, and with every run the performance goes down very dramatically (e.g. from 3735 replies per second on a cold…

cnst
- 13,848
- 9
- 54
- 76
1
vote
0 answers
Does TIME_WAIT affect dynamic ports?
I've read a bit about TIME_WAIT connections, and know they should be harmless to my server (connection closed, so no resource connected with this socket).
Recently, my server reached the magic number of 60k ports in TIME_WAIT state; and I'm…

csgwro
- 61
- 6
1
vote
1 answer
Connection between nginx and Varnish
I am using nginx as reverse proxy with varnish in the background. I have LAMP fueling varnish. The problem I am seeing on Varnish server is that the connection from nginx is getting established everytime a request is served.
We are serving more than…

Sparsh Gupta
- 1,127
- 7
- 21
- 31
1
vote
0 answers
Lots of TIME_WAIT connections with nginx reverse-proxy
I'm using nginx as reverse proxy to redirect some traffic to openfire XMPP server. Here's what I see in netstat:
972 connections to port 80 from outside (includes website and redirected XMPP over http)
of them 231 in TIME_WAIT, seems like normal
272…

Poma
- 1,299
- 6
- 24
- 35
0
votes
1 answer
Why does one of four-way handshake miss with the command nc
I'm using the command nc to simulate the TCP connection with a client and a server.
I execute the command nc -l 1234 and tcpdump -i eth0 port 1234 at the server and I execute the command nc IP_OF_SERVER 1234 at the client.
Then I type abcd and a…

Yves
- 117
- 1
- 6
0
votes
0 answers
How to check on CentOS 7.7 which process take 1 min because of slow page loading (TTFB 1 min)
I'm using CentOS version 7.7.
A few days ago my frontend page (not whole website) TTFB is exactly 1 min.
How I can check which process causes that?
I'm using PHP 7.3 php-fpm ON
Any way to check which process cause waiting for the first byte 60…

Aleks Per
- 101
- 3
0
votes
0 answers
Why is server is waiting with second request untill first is fisnished
Not sure what it is, but everytime I try to run one http request from browser, second must wait for first to fisnish. Is it server side configuration/seciurirty?
For example, I have 2 files long.php and short.php. After making request to long.php…

Gacek
- 1,201
- 2
- 10
- 10
0
votes
0 answers
How to configure for many stateless requests?
I am a data scientist / machine learning developer. Sometimes, I have to expose my models by providing an endpoint. I usually do this via Flask and gunicorn:
exampleproject.py:
import random
from flask import Flask
app =…

Martin Thoma
- 277
- 4
- 13
0
votes
1 answer
my website can get ping but status always "Waiting" when visiting via browser
When i tried to use CMD.exe and then typed :
ping fgroupindonesia.com
it returns a true respond such as :
C:\Users\admin>ping fgroupindonesia.com
Pinging fgroupindonesia.com [219.83.68.83] with 32 bytes of data:
Reply from 219.83.68.83: bytes=32…

gumuruh
- 101
- 3
0
votes
1 answer
Netcat - socket in time_wait when echoing and piping, but not when invoked directly
I'm testing an application using netcat (nc) and I'm getting very low throughput on network connections. When I ran netstat -tnpo I see numerous TCP sessions in TIME_WAIT. I'm sending data to my application via a bash script as indicated…

AnthonyK
- 240
- 2
- 6
0
votes
1 answer
How to trace TIME_WAIT sessions using tcpdump (or similar tool)
I have a server with large number of TIME_WAIT sessions.
These are sessions that the server closed, but the client didn't close.
I want to analyze a sample session, to understand what happens there.
Simple "brute force" analysis of tcpdump output…

Ophir Yoktan
- 175
- 2
- 8
0
votes
1 answer
Limiting outgoing connections by port to control nf_conntrack usage
I would like to make my system more resilient against certain failure. When the
system makes rapid outbound TCP connections fail, the nf_conntrack table
fills up with TIME_WAIT entries. This causes other operations on the
system to fail as…

nhed
- 590
- 1
- 8
- 14
0
votes
1 answer
PHP Adodb many sleeping connections
Already asked the question on stackoverflow but i guess this might be a better place for it.
I'm currently struggeling with a strange problem:
while using adodb as connection layer for php, it leaves many sleeping and unneeded connections behind.…

simplyray
- 111
- 3