Hunt down java.net.SocketException: No buffer space available

前端 未结 3 1977
囚心锁ツ
囚心锁ツ 2021-01-12 03:35

Hi I have very ugly problem with: java.net.SocketException: No buffer space available (maximum connections reached?) It is client-server app. Client is Windows XP SP2 32

3条回答
  •  花落未央
    2021-01-12 04:25

    It certainly sounds like you are leaking Sockets somehow in your app.

    • Check that your code always closes the Sockets it opens ... even in the event of some exception; i.e. do the close in a finally block.
    • If your code uses URL connections, make sure that they get disconnected.
    • I'm not an expert, but should your code close its InitialContext object?

提交回复
热议问题