linux top 内存详细,linux top 剩余内存

内存低于16G的,就不要玩mongodb了######呵呵,mogodb的速度就是操作内存!######哥,我30G的内存呢######NB了######Objects 3217961 Data Size 1.26g Storage Size 1.61g Extents 137 Indexes 60 Index Size 209.54m 数据也不大######有多少吃多少,cpu用得多了,就吃少了.######

引用来自“LimSteven”的答案

有多少吃多少,cpu用得多了,就吃少了.

cpu用得多了,就吃少了.  不明白这句话

重点是,他吧内存吃完后,就真的吃完啦,是实打实的内存,不是缓存,最后搞得系统死机,严重啊

连限制进程的内存都不起作用

######

http://docs.mongodb.org/manual/faq/fundamentals/#does-mongodb-require-a-lot-of-ram

MongoDB automatically uses all free memory on the machine as its cache.....If another process suddenly needs half the server’s RAM, MongoDB will yield cached memory to the other process.

######

引用来自“Wolsan_Hsu”的答案

http://docs.mongodb.org/manual/faq/fundamentals/#does-mongodb-require-a-lot-of-ram

MongoDB automatically uses all free memory on the machine as its cache.....If another process suddenly needs half the server’s RAM, MongoDB will yield cached memory to the other process.

谢谢你

从我的top中可以观察到

Mem:  30212128k total, 25190188k used,  5021940k free,   384288k buffers

总内存30G used使用啦25G左右,free 只有5G 而缓存buffers则只有3.8G

按照linux内存使用规则 使用内存=used-buffers-cached(25-3.8=21.2)

这里算出来的21G是是实打实的被占用啦,是不会释放的.(21.2+5(这个是剩余)=27.2)

总内存是30G 用30-27.2就可以知道cached用啦8.8G,

相对我Data Size 1.26g 这么大,退一步在加上Index Size 209.54m

也不应该使用21G这么大的内存吧,应该是mongos有内存泄漏吧

######用 free -m 来查看######

哈哈算错啦,top是没有cached的

所以使用内存就是used-buffers(25-3.8=21.2) ######因为速度快

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值