VirtualBox

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#10696 closed defect (invalid)

MongoDB idling at 15-20% CPU usage

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

Description

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.

Details:

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.

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

by lazymanc, 12 years ago

screenshot of top

comment:1 by vasily Levchenko, 12 years ago

Could you please attach the log?

comment:2 by Frank Mehnert, 12 years ago

Resolution: invalid
Status: newclosed

No response, closing.

comment:3 by Froggy01, 11 years ago

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)
...

@Hachiman/Frank, what log were you requesting ?

Last edited 11 years ago by Froggy01 (previous) (diff)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use