Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8491961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:34:56+00:00 2026-06-10T22:34:56+00:00

I am just restoring a database which I dumped few minutes back to make

  • 0

I am just restoring a database which I dumped few minutes back to make some changes. Mongorestore taking around 100% CPU and much more time than expected. I thought, it may be due to indexes I created, but, the problem is same while restoring even a single collection. A collection is about 314MB in size and has about 185000 documents.
Usually, this thing does not happen. It might be due to less disk space on my system, but that too is 11GB.
Can anyone help me, what problem it could be?

Note: I’m doing things from mongo client. No driver included.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:34:57+00:00Added an answer on June 10, 2026 at 10:34 pm

    As you indicated in the comments that this was related to logging, then I would suggest taking a couple of steps:

    First, use log rotation. This can be done via a command to the database or by sending the SIGUSR1 signal to the process, so it is very easy to script or enable as a cron job on a regular basis. More information here:

    http://www.mongodb.org/display/DOCS/Logging#Logging-Rotatingthelogfiles

    Second, verify your logging level. Starting with -v = log level 1; -vv = log leve 2 etc. You can adjust it both at start up and during runtime. For the runtime adjustment, you use the setParameter command:

    // connect to the database or mongos
    use admin;
    // check the log level
    db.runCommand({getParameter : 1, logLevel: 1})
    { "logLevel" : 0, "ok" : 1 }
    // set it higher
    db.runCommand({setParameter : 1, logLevel: 1})
    // back to default levels
    { "was" : 0, "ok" : 1 }
    db.runCommand({setParameter : 1, logLevel: 0})
    { "was" : 1, "ok" : 1 }
    

    Finally you can also run with –quiet to cut down on some of the messaging also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just a knowledge question which I would like to ask: For example, I have
Just playing around with Wordpress / Contact Form 7 . Is it possible to
Just wondering: I'm trying to set up an adaptive image handler in Coldfusion8, which
Simple problem. I'm working on a single SQL Server database which is shared between
I've just moved a database from a SQL 2000 instance to a SQL 2008
I have a CVS database which gives a V6 range 2001:1800::/32 and a country
I would like to completely empty the entire database, restoring it to the way
There has been some discussion on the SO community wiki about whether database objects
I am restoring a mysql database with perl on a remote server with about
I have a database of around 20GB. I need to delete 5 tables &

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.