互联网服务内存ps

奇怪的问题,连ps都运行不了,说内存不足

今天听用户说生产环境的其中一台主机好多命令都执行不了了,但oracle业务不受影响,下面是相关的执行命令,从提示来看说是内存不足了,但lsps -a显示交换区都还没用完呢,这怎么回事呢?如何解决这个问题呢?重启也许可以解决,但现在想找个不重启就能解决的办法,最好是知道是什么原因引...显示全部
今天听用户说生产环境的其中一台主机好多命令都执行不了了,但oracle业务不受影响,下面是相关的执行命令,从提示来看说是内存不足了,但lsps -a显示交换区都还没用完呢,这怎么回事呢?如何解决这个问题呢?重启也许可以解决,但现在想找个不重启就能解决的办法,最好是知道是什么原因引起的,这台机器平时除了些巡检工作外,不会进行其它操作。

$ ps
Could not load program ps:
Symbol resolution failed for /usr/lib/libwlm.a(shr.o) because:
There is not enough memory for the process.
System error: Error 0
$ lsps -a
Page Space      Physical Volume   Volume Group    Size %Used Active Auto  Type m
hd6             hdisk0            rootvg       10240MB     1   yes   yes    lv 0
$ topas
Could not load program topas:
Symbol resolution failed for /usr/lib/libxcurses.a(shr4.o) because:
There is not enough memory for the process.
System error: Error 0
$ wmstat 1
ksh: wmstat:  not found
$ vmstat 1
System Configuration: lcpu=16 mem=31104MB
kthr    memory              page              faults        cpu
----- ----------- ------------------------ ------------ -----------
r  b   avm   fre  re  pi  po  fr   sr  cy  in   sy  cs us sy id wa
5  0 2815231 1041439   0   0   0   0    0   0 125 18952 3175 10  1 89  0
5  0 2815231 1041439   0   0   0   0    0   0 134 18766 3202 10  1 89  0
5  0 2815230 1041440   0   0   0   0    0   0 124 17284 2985 10  1 89  0
^C$
$ iostat
Could not load program iostat:
Symbol resolution failed for /usr/lib/libwlm.a(shr.o) because:
There is not enough memory for the process.
System error: Error 0收起
参与13

查看其它 11 个回答风影子的回答

风影子风影子数据库管理员深圳
倒没怀疑到数据库上去,数据库为rac环境,听用户说业务没受到任何影响,这个节点的数据库访问及查询等都是正常的。
这个有可能是数据库引起的么?总共是32G的内存,SGA和PGA目前总共加起来设置都不超过10G,虽然按经验SGA要分配总内存80%中的80%,PGA要分配总内存80%的20%,但业务量不算太大,平时也没什么性能问题,所以也没去加大SGA和PGA。
互联网服务 · 2011-09-29
浏览2002

回答者

风影子
数据库管理员深圳
擅长领域: 服务器LinuxUnix

风影子 最近回答过的问题

回答状态

  • 发布时间:2011-09-29
  • 关注会员:1 人
  • 回答浏览:2002
  • X社区推广