Why too many FTP connections are going in CLOSE_WAIT state ?

Solution Verified - Updated -

Issue

  • Too many FTP connections are going in CLOSE_WAIT state and the number keep increasing.
  • Due to this users are unable to connect to FTP server and server performance is going down.
user@HOSTNAME] $ cat sos_commands/networking/netstat_-neopa |grep -i close_wait
tcp6       1      0 192.168.1.35:21         192.168.1.1:61744       CLOSE_WAIT  0          4150607    14023/vsftpd         keepalive (7044.60/0/0)
tcp6       1      0 192.168.1.35:21         192.168.1.1:60142       CLOSE_WAIT  0          4154744    14424/vsftpd         keepalive (7110.13/0/0)
tcp6       1      0 192.168.1.35:21         192.168.1.1:61935       CLOSE_WAIT  0          4156420    14353/vsftpd         keepalive (7077.36/0/0)
tcp6       1      0 192.168.1.35:21         192.168.1.1:60793       CLOSE_WAIT  0          4162021    15251/vsftpd         keepalive (7142.90/0/0)
tcp6       1      0 192.168.1.35:21         192.168.1.1:62918       CLOSE_WAIT  0          4167866    15741/vsftpd         keepalive (7175.67/0/0)
tcp6       1      0 192.168.1.35:21         192.168.1.1:62670       CLOSE_WAIT  0          4150914    14232/vsftpd         keepalive (7077.36/0/0)
tcp6       1      0 192.168.1.35:21         192.168.1.1:60551       CLOSE_WAIT  0          4156120    14745/vsftpd         keepalive (7142.90/0/0)
user@HOSTNAME] $ 

Environment

  • Red Hat Enterprise Linux (All Version).
  • FTP client / server setup.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content