vmstat: malloc failed: Not enough space

发布于 2022-09-08 11:39:38 字数 145 浏览 12 评论 9

本帖最后由 welcome008 于 2010-06-03 22:52 编辑

怎么回事?

使用top看还有5百兆的空闲的

但是使用root帐号可以使用vmstat

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

猫七 2022-09-09 20:51:16

不用查了,估计是库文件有问题

我很坚强 2022-09-09 20:51:15

本帖最后由 welcome008 于 2010-06-03 22:54 编辑

You should give us the output of  the vmstat,top,swap -s ,dmesg and so on.We couldn't diagnose the p ...
asx_liu 发表于 2010-06-03 17:39

% vmstat
vmstat: malloc failed: Not enough space
但是使用root帐号可以:
# vmstat 2 10
kthr      memory            page            disk          faults      cpu
r b w   swap  free  re  mf pi po fr de sr s0 s3 -- --   in   sy   cs us sy id
0 0 0 2308416 321576 6  20  2  3  3  0  0  1  0  0  0  294   61  147 27  3 70
0 0 0 2538608 617152 6  10  0  0  0  0  0  0  0  0  0  276 1934  504  8  0 91
0 0 0 2538608 617152 0   0  0  0  0  0  0  0  0  0  0  277 1972  507  9  0 91
4 0 0 2538608 617152 0  67  0  0  0  0  0  0  0  0  0  278 2301  506 10  1 88
0 0 0 2538104 616440 6   6  0  0  0  0  0  0  0  0  0  272 1936  499  8  0 91
0 0 0 2538088 616424 0  71  0  0  0  0  0  0  0  0  0  279 2442  544 18  1 81
0 0 0 2537544 615656 6   6  0  0  0  0  0  0  0  0  0  267 1936  523  8  0 92
0 0 0 2537544 615656 0   0  0  0  0  0  0  0  0  0  0  275 1887  524  8  0 92
2 0 0 2537544 615656 6   6  0  0  0  0  0  0  0  0  0  274 2055  538  9  0 91
0 0 0 2537312 615384 0  14  0  0  0  0  0  0  0  0  0  281 2302  534 11  0 89
#
%top
65 processes: 63 sleeping, 1 running, 1 on cpu
CPU states: 90.6% idle,  9.2% user,  0.2% kernel,  0.0% iowait,  0.0% swap
Memory: 1024M phys mem, 598M free mem, 2052M total swap, 1987M free swap
% swap -l
交换文件             dev  swaplo blocks   free
/dev/dsk/c1t0d0s1   32,1      16 4202672 4070128
%dmesg
Jun  2 22:01:45 SD-01 ftpd[26068]: [ID 265846 daemon.notice] repeated login failures from xx.xx.xx.xx [xx.xx.xx.xx]
Jun  3 04:10:00 SD-01 named[13527]: [ID 873579 daemon.notice] stopping command channel on 127.0.0.1#953
Jun  3 04:10:00 SD-01 named[13527]: [ID 873579 daemon.notice] exiting
Jun  3 04:10:44 SD-01 named[219]: [ID 873579 daemon.notice] starting BIND 9.5.1b1 -4 -n 1 -c /opt/aibind/etc/named.conf
Jun  3 04:10:44 SD-01 named[219]: [ID 873579 daemon.notice] command channel listening on 127.0.0.1#953
Jun  3 04:10:44 SD-01 named[219]: [ID 873579 daemon.error] zone localhost/IN: loading from master file localhost.hosts failed: file not found
Jun  3 04:10:44 SD-01 named[219]: [ID 873579 daemon.notice] running
Jun  3 17:53:31 SD-01 ftpd[10182]: [ID 265846 daemon.notice] repeated login failures from xx.xx.xx.xx [xx.xx.xx.xx]

那个重复登录失败的有很多条,在这里省略了,再无其他输出了

暮凉 2022-09-09 20:49:16

You should give us the output of  the vmstat,top,swap -s ,dmesg and so on.We couldn't diagnose the problem just above you said.I suspect there is no enough swap space,or something you put in the /tmp filesystem.

兔姬 2022-09-09 20:47:32

顶起

一梦等七年七年为一梦 2022-09-09 19:25:58

This is a common problem, check your crontab entries and make sure you are
not running the /usr/lib ...
bj161109 发表于 2010-06-03 11:39

这是crontab -l的输出:
10 3 * * * /usr/sbin/logadm
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
#10 3 * * * /usr/lib/krb5/kprop_script ___slave_kdcs___
10 4 * * * pkill -x named
* * * * * ( /opt/aibind/script/named_dog > /dev/null )

这是/var/spool/cron/crontabs/sys的内容:

#ident  "@(#)sys        1.5     92/07/14 SMI"   /* SVr4.0 1.2   */
#
# The sys crontab should be used to do performance collection. See cron
# and performance manual pages for details on startup.
#
# 0 * * * 0-6 /usr/lib/sa/sa1
# 20,40 8-17 * * 1-5 /usr/lib/sa/sa1
# 5 18 * * 1-5 /usr/lib/sa/sa2 -s 8:00 -e 18:01 -i 1200 -A

貌似不是这个的问题哦

月亮邮递员 2022-09-09 18:54:23

版主呢?

大侠呢?

尘曦 2022-09-09 15:34:05

估计已经被分配了

晌融 2022-09-09 14:27:06

This is a common problem, check your crontab entries and make sure you are
not running the /usr/lib/sa/sa1 script twice at the same time. typically
int the /var/spool/cron/crontabs/sys file there are two lines executing
the /usr/lib/sa/sa1 script so you need to make sure these are never
executing at the same time

月牙弯弯 2022-09-08 21:21:33

看看,不过一直没有遇到过这种事

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文