CLOSE_WAIT? Close_wait is a headache when the project goes online.
The project is in beta testing and is about to be released soon. Now, the beta testing is very busy. Today, the O & M team sent a bunch of statuses and forgot about them. In short, there is a connection waiting to be closed when the HTTP request is sent, as a result, the CLOSE_WAIT status has been accumulated and has not been released. This will certainly cause problems for a long time.
Well, I have a closer look and found that this problem occurs when I call the SMS interface on the Internet. The api is provided by the SMS supplier.
HttpClient client = new HttpClient ();
PostMethod method = null;
......
Method. releaseConnection ();
Client. getHttpConnectionManager (). closeIdleConnections (0 );
When using HttpClient, You need to disable the release link, but this is not done in the api.
You only need to add the last two sentences. repacking and publishing can solve this problem.