惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
量子位
B
Blog RSS Feed
Schneier on Security
Schneier on Security
L
LINUX DO - 最新话题
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
Hacker News: Ask HN
Hacker News: Ask HN
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google DeepMind News
Google DeepMind News
N
News | PayPal Newsroom
阮一峰的网络日志
阮一峰的网络日志
Microsoft Security Blog
Microsoft Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Tailwind CSS Blog
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
PCI Perspectives
PCI Perspectives
aimingoo的专栏
aimingoo的专栏
D
Docker
T
The Exploit Database - CXSecurity.com
Last Week in AI
Last Week in AI
W
WeLiveSecurity
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
Vercel News
Vercel News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
O
OpenAI News
C
Cisco Blogs
Hacker News - Newest:
Hacker News - Newest: "LLM"
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Threat Research - Cisco Blogs
Cisco Talos Blog
Cisco Talos Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Help Net Security
Help Net Security
Scott Helme
Scott Helme
The Hacker News
The Hacker News
Y
Y Combinator Blog
A
Arctic Wolf
V
V2EX
P
Proofpoint News Feed
Simon Willison's Weblog
Simon Willison's Weblog
A
About on SuperTechFans
S
Securelist
G
Google Developers Blog
Cyberwarzone
Cyberwarzone
The GitHub Blog
The GitHub Blog

博客园 - 老管

freebsd.org改版 安装lilina续 - 更改首页显示天数 不重启更新rc.conf socks5-v1.0r11.tar.gz安装笔记 在线rss阅读聚合器lilina-0.7安装笔记 设置CMOS使服务器断电来电后自动开机 使win2003自动登陆 freebsd下安装GIMP FreeBSD5.4Release中文工作站安装笔记 (Freebsd5.4R+Gnome2.10.0) 《freebsd下gdm的安装》续 freebsd下gdm的安装 安装freebsd后win2000不能进入 vsmon.exe进程对CPU资源的占用问题 FreeBSD代理服务器(proxy)的“改造” 找出windows2000的boot.ini文件 不重启机器的情况下重启rc.conf 突然断电导致freebsd服务器文件系统检测错误-fsck 一次网络故障的排除-都是3COM光纤模块惹的祸 关于squid禁止某些站点的访问的控制 (acl语句)
代理服务器又出现mbuf clusters exhausted 故障 ..
老管 · 2005-07-09 · via 博客园 - 老管

上学期05年1月17日发生了代理服务器mbuf clusters exhausted ,当时只是以为服务器被攻击了,但昨晚(05-04-11)服务器又出现相同的故障,显示All mbuf clusters exhausted , Please see tuning(7) 。局域网上网时断时续,我用SSH登陆到服务器(也时断时续),然后netstat -m 果然

8887/80000/80000 mbufs in use (current/peak/max):
791 mbufs allocated to data
96 mbufs allocated to packet headers
8782/10000/10000 mbuf clusters in use (current/peak/max)
25508 Kbytes allocated to network (25% of mb_map in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

然后我用netstat -a命令,发现有一个地址192.168.31.97一直出现,占到了整个输出的大半,我想可能问题是出在那台机器上,可能是中毒了。马上检查,发现是中毒了。

今天早上,我在freebsdchina也搜到了delphij的一个关于mbuf的老贴子,也看了昨天我在freebsdchina发的求救贴的回贴,发现了一个问题:导致这种情况不一定是外网的攻击,有可能是你内网的机器中毒发大量数据包的病毒。就像我这台192.168.31.97一样。

可以先这样解决:

1、用netstat -a查看将有异常(在Foreign Address一项中IP的出现次数多的)的机器立即隔断与局域网的连接。

2、把maxuser设置成256

3、编辑/boot/defaults/loader.conf ,编辑kern.ipc.nmbclusters="65536"

4、重启server

看了前辈们的贴子和自己的经历暂时只想到这样解决,如有更好的方法,我想听听老大们是怎么解决的?