Ticket #10696 (closed defect: invalid)

Opened 6 years ago

Last modified 5 years ago

MongoDB idling at 15-20% CPU usage

Reported by: lazymanc Owned by:
Priority: major Component: other
Version: VirtualBox 4.1.18 Keywords: mongodb, cpu, idle
Cc: Guest type: Linux
Host type: Mac OS X


I'm experiencing an issue where mongodb consumes 15-20% CPU constantly when idle. This is especially inconvenient when trying to develop on a laptop as it drains the battery a lot more quickly than necessary.


The mongod process idles at 15-20% cpu usage on the ubuntu guest, even when no connections are active. I have converted the same VM image and run it under Parallels and the issue goes away (mongodb idling at 0-1% cpu). Others have mongodb running under vmware and xen and cannot reproduce the issue, so it appears to be specific to virtualbox.


Screen Shot 2012-06-23 at 20.19.12.png Download (129.4 KB) - added by lazymanc 6 years ago.
screenshot of top

Change History

Changed 6 years ago by lazymanc

screenshot of top

comment:1 Changed 6 years ago by Hachiman

Could you please attach the log?

comment:2 Changed 6 years ago by frank

  • Status changed from new to closed
  • Resolution set to invalid

No response, closing.

comment:3 Changed 5 years ago by Froggy01

Hi All,

I have exactly the same behaviour with MongoDB and VirtualBox here.

The Ubuntu 12.04 VM was exported from a KVM machine hosted on CentOs (qemu-img convert -O vdi Ubuntu.qcow2 Ubuntu.vdi) and imported into VirtualBox on Win 7 as a new machine with existing image.

Enverything works normally except the mongo process consuming 10-20% CPU even when no mongo request is performed.

The mongodb log show no difference beteen KVM/VirtualBox...

Calling strace show the same series of 'select' calls on both nodes:

select(13, [11 12], NULL, NULL, {0, 5127}) = 0 (Timeout)
select(13, [11 12], NULL, NULL, {0, 10000}) = 0 (Timeout)
select(13, [11 12], NULL, NULL, {0, 10000}) = 0 (Timeout)
select(13, [11 12], NULL, NULL, {0, 10000}) = 0 (Timeout)

@Frank, what log were you requesting ?

Version 0, edited 5 years ago by Froggy01 (next)
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use