Ticket #61 (closed 总结: fixed)

Opened 14 years ago

Last modified 14 years ago

mongodb io交换比例高的问题

Reported by: chenchongqi Owned by:
Priority: major Milestone:
Component: 报价库 Version: 报价库4.0
Keywords: mongodb,swap,vmmemctl Cc:
Due Date:

Description (last modified by chenchongqi) (diff)

swap增高,换页频繁。

查了一下资料觉得比较有可能,即mongodb的mmap内存映射被虚拟机回收:
 http://blog.boxedice.com/2011/06/15/mongodb-cpu-cores-and-vmmemctl/

The thing to note here is in relation to MongoDB memory mapping files which may appear unused 
but actually be in use. If memory is paged out then this can affect performance. Since we 
solved the problem by adjusting the VM CPU configuration

这个后来经李思亮和刘海超手动实验证明,虚拟机确实会回收超过一段时间不用的内存映射,降低mongodb每个线程的内存,降低客户端链接数都可以减少这种状况,要彻底避免目前唯有修改虚拟机参数或者直接运行在物理机上才可以。

Attachments

exchange.png Download (6.6 KB) - added by chenchongqi 14 years ago.

Change History

Changed 14 years ago by chenchongqi

comment:1 Changed 14 years ago by chenchongqi

  • Status changed from new to closed
  • Resolution set to fixed
  • Description modified (diff)

comment:2 Changed 14 years ago by chenchongqi

  • Description modified (diff)
Note: See TracTickets for help on using tickets.