What is the reason for Tcp CLOSE_WAIT?

A java service. Resources cannot be accessed because there are too many CLOSE_WAIT for other threads to enter.

the figure is as follows:

clipboard.png

Mar.18,2021

close_wait is caused by no ack on your server after the client initiates fin, so see if you forgot to release the link in the program, for example, stream does not have close.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3d138-2bbb9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3d138-2bbb9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?