yb_lin

导航

2011年2月24日 #

Linux: CentOS and Out of socket memory

摘要: Just last night I upgraded a system with SWSoft's Virtuozzo to the latest kernel, as of Nov 2, 2006 and promptly reboot. After the reboot was complete and the Virtual Environments (VE's) back up and running, none of the IP's assigned to the VE's was accessible from outside the networ 阅读全文

posted @ 2011-02-24 17:59 废铁 阅读(851) 评论(0) 推荐(0) 编辑

解决大量TCPIP连接后出现“因为系统缺乏足够缓冲区空间或者因为队列已满无法执行套接字上操作”的问题

摘要: 用微软提供的方法,可以放开系统的限制,详细方法见下文,最大理论连接数6万左右,也就是4字节整数的最大值。实际服务器端程序的服务能力取决于开发模型,在 Window 下使用 IOCP 模型效率最高(2K/XP/2003下可用),另外最高并发连接数与服务器的硬件配置特别是内存有很大关系。我实测的最大并发连接数为 3.2万左右,有人通过增加内存和提高配置的方法使并发连接数增加到了5.1万左右,这个数字我没有验证过,仅供参考。症状loadTOCNode(1, 'symptoms');如果您尝试建立 TCP 连接从端口是大于 5000, 本地计算机响应并以下 WSAENOBUFS (10 阅读全文

posted @ 2011-02-24 17:48 废铁 阅读(1166) 评论(0) 推荐(0) 编辑