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.

Menu