易创论坛 - 因你而精彩
  [Search] 搜索   [Recent Topics] 最新主题   [Hottest Topics] 热门主题   [Members]  会员列表   [Groups] 返回首页 
[Moderation Log] 管理日志   [Register] 会员注册 / 
[Login] 登入 
No buffer space available (maximum connections reached?)问题  XML
论坛首页 » 易创天成技术交流
发表人 内容
eworkday



注册时间: 17/02/2009 09:38:31
文章: 761
离线

摘录一

Dan,

Erland's already explained what recv is. The buffer the error message is
talking about refers to the TCP/IP stack's buffers. The error you're seeing
can be caused by multiple things: too much data queued up for send via
TCP/IP or you're out of ephemeral sockets. The big problem is that the
number of available ephmeral sockets doesn't change just because you have a
massive amount of RAM. I'm not a Winsock expert, but running out of
ephemeral sockets is common problem on Windows. Well, not that common, but
it's a fairly well known occurrence amoung the networking guru's (I'm *not*
one of those).

> (Is it at all relevant that sql server is running on the same box?)


Maybe: it definitely won't help

> I know for a fact we are not using too many TCPIP sockets or running
> too many socket servers.



Are you sure? Because it's not just how many you have open simultaneously:
if you're rapidly opening and closing sockets you could cause the problem
you're seeing... there's a timeout period before the socket you closed is
returned to the available pool. Also, I haven't worked with Java's sockets
that much: if you don't explicitly close the socket, does it stick around
until a garbage collection cycle?

Download tcpview.exe from sysinternals.com: when the problem occurs, fire it
up and see what process has the greatest number of sockets out there. If
I'm correct, you'll probably see a bunch of sockets associated with one or a
few processes (and they'll probably be in the TIME_WAIT state...)


Here's some links that may help

A discussion of ephemeral ports

http://www.tcpipguide.com/free/t_TCP...Applicatio.htm

See this for some help on the Windows side (but be careful!)

http://support.microsoft.com/default...b;EN-US;196271

See this for someone with a similar problem...

http://forum.java.sun.com/thread.jsp...sageID=3177261






参考文章:
sql server causes No buffer space available (maximum connections reached?): recv failed
No buffer space (JVM_Bind)
TCPView 2.4 版(用于 Windows)
How to prevent "No buffer space available (maximum connections reached?)" errors in ColdFusion MX
java.net.SocketException: No buffer space available (maximum connections reached?): JVM_Bind
resin优化(上)
Avoiding TCP/IP Port Exhaustion

这篇文章被编辑了 7 次. 最近一次更新是在 08/10/2010 23:38:44


易创天成
[MSN]
 
论坛首页 » 易创天成技术交流
前往:   
Powered by JForum 2.1.8 © JForum Team. Improved by EWorkday