简体   繁体   中英

What can be the cause of java.net.SocketException: recv failed: Insufficient buffer space?

A customer receive the error "java.net.SocketException: recv failed: Insufficient buffer space" on windows. With the netstat command we see only approx. 100 socket connections. I have change the MaxUserPort to 60000 like described at http://support.microsoft.com/default.aspx?scid=kb;EN-US;196271

I know that this Java error is equals to the socket error 10055 WSAENOBUFS. But I have no idea where I should search for the cause of this problem. Any ideas?

I know it has been some time (11 years), but I found a solution on that page: https://wiki.scn.sap.com/wiki/display/ABAP/WSAENOBUFS%3A+10055%3A+No+buffer+space+available

It is for SAP, however remedy is the same.

In short, it says: You are trying to reuse the same port after it is closed. This is probably your application extensively opens and closes the network connections. Remedy is to tweak with network parameters so that operation system shall release the closed ports faster.

I think it would be better to investigate why the application uses extensive amount of ports.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM