+ -
当前位置:首页 → 问答吧 → vmstat: malloc failed: Not enough space

vmstat: malloc failed: Not enough space

时间:2010-06-03

来源:互联网

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

怎么回事?

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

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

作者: welcome008   发布时间: 2010-06-03

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

作者: taopgbucuo   发布时间: 2010-06-03

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

作者: bj161109   发布时间: 2010-06-03

估计已经被分配了

作者: easybegin   发布时间: 2010-06-03

版主呢?

大侠呢?

作者: welcome008   发布时间: 2010-06-03



QUOTE:
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

貌似不是这个的问题哦

作者: welcome008   发布时间: 2010-06-03

顶起

作者: welcome008   发布时间: 2010-06-03

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.

作者: asx_liu   发布时间: 2010-06-03

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


QUOTE:
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]

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

作者: welcome008   发布时间: 2010-06-03

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

作者: welcome008   发布时间: 2010-06-03