Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to mongodb and i installed it on xen para virtual vm and when given command

"mongo" terminal freezed and on the top output command mongo is taking almost 100% CPU.

Is this a bug,or does the mongo command made the scheduler to consider the process interactive and resulted in more cpu usage?

Running Mongo 2.0.4,Ubuntu 12.04, 3.2.0-23-generic as VM

share|improve this question
up vote 2 down vote accepted

This is not normal behavior, no, the mongo shell itself is quite lightweight and should consume very little resources unless you are running something complex in terms of javascript. A simple connection to a mongod instance should not cause this kind of problem. Despite running the shell and mongod on multiple VMs I have never seen this behavior, hence I can't really suggest what might be causing it.

As a general recommendation, I would not use 2.0.4, it is well over a year old, and has been superseded by 5 minor versions in the 2.0 branch (as of writing this) and by 2 major versions (2.2 and 2.4). Hence, you might be running into an old bug that I am not remembering. At the very least I would recommend getting hold of 2.0.9 and preferably using 2.4.4+

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.