Troubleshooting connections stuck in CLOSE_WAIT status

前端 未结 6 1864
悲&欢浪女
悲&欢浪女 2021-02-01 04:29

I have a Java application running in WebLogic 11g on Windows, which after several days, becomes unresponsive. One suspicious symptom I\'ve noticed is that a large number of conn

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-01 04:48

    I found this quote about CLOSE_WAIT pileups: "Something is either preventing progress to occur in the HTTP session (we are stuck so never end up calling close), or some bug has been introduced that prevents the socket from being closed. There are a number of ways this can happen."

    Think: Is there any way your application might be getting stuck while processing a request? Or WebLogic itself?

    Examine: Can you do Java thread dumps (kill -SIGQUIT can be used for that on the Oracle JVM for Linux) to try to see if in fact any of your threads ARE getting stuck?

    Examine the client side: First, find out the IP address or hostname of the clients that are connected to the CLOSE_WAIT sockets. Then, see if anything suspicious is happening on those clients.

提交回复
热议问题