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

推荐订阅源

The Hacker News
The Hacker News
C
Cisco Blogs
P
Privacy & Cybersecurity Law Blog
Cloudbric
Cloudbric
S
Security Affairs
PCI Perspectives
PCI Perspectives
The Last Watchdog
The Last Watchdog
AWS News Blog
AWS News Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
N
News and Events Feed by Topic
W
WeLiveSecurity
T
Tenable Blog
L
LINUX DO - 最新话题
T
Tor Project blog
Help Net Security
Help Net Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
爱范儿
爱范儿
O
OpenAI News
Hacker News - Newest:
Hacker News - Newest: "LLM"
Y
Y Combinator Blog
I
Intezer
C
Check Point Blog
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
S
Securelist
P
Privacy International News Feed
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
量子位
SecWiki News
SecWiki News
L
Lohrmann on Cybersecurity
T
Threat Research - Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Scott Helme
Scott Helme
H
Help Net Security
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
Spread Privacy
Spread Privacy
Know Your Adversary
Know Your Adversary
I
InfoQ
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
N
News | PayPal Newsroom
小众软件
小众软件
C
CERT Recently Published Vulnerability Notes

博客园 - 老管

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

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