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

  • Home
  • SEARCH
  • 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 8336763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:05:42+00:00 2026-06-09T04:05:42+00:00

Due to lack of memory mongod shut down automatically. (Debian) ~# reboot ~# mongo

  • 0

Due to lack of memory mongod shut down automatically. (Debian)

~# reboot
~# mongo
MongoDB shell version: 2.0.6
connecting to: test
Thu Aug  2 13:12:26 Error: couldn't connect to server 127.0.0.1 shell/mongo.js:8 4
exception: connect failed
~# mongo 127.0.0.1:27017
MongoDB shell version: 2.0.6
connecting to: 127.0.0.1:27017/test
> use database
> db.repairDatabase()
{
        "errmsg" : "exception: file /var/lib/mongodb/$tmp_repairDatabase_0/datab      ase.1 open/create failed in createPrivateMap (look in log for more information)"                            ,
        "code" : 13636,
        "ok" : 0
}
  1. Error: couldn’t connect to server … The error in the configuration, you do not know why?
  2. /var/lib/mongodb/$tmp_repairDatabase_0 and /var/lib/mongodb/_tmp a temporary folder? Can I remove them?

The database is working fine, but I’m afraid of what will happen the same thing as my base a week ago. I had to completely reinstall mongodb. link

UPD:

Just increased the size of RAM on the server and performed up to 3Gb db.repairDatabase () – all went well.

The problem was a lack of memory. (Memory-Mapped Files)
No start mongod – 136Kb of memory occupied.
After starting mongod – 1100Kb memory is occupied.
In my database objects 1165916.
The larger the object is created, the more memory is occupied.
How can I reduce the consumption of mongodb memory? Or the only way out – more memory?

  • 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-09T04:05:43+00:00Added an answer on June 9, 2026 at 4:05 am

    I think this, and your previous issue, have the same root cause – lack of resources. You indicate in your previous message that you only had ~1.4GB of memory and in this case the repair succeeded when you had more memory allocated. A repair has to walk through and rewrite the entire set of data, so it is going to be intensive.

    There is a detailed description of how MongoDB uses memory here:

    http://www.mongodb.org/display/DOCS/Checking+Server+Memory+Usage

    Don’t forget, your working set in RAM includes indexes as well as the data, so it’s not just a matter of the number of objects.

    If your working data set should fit inside the 1.4GB most of the time, then you likely don’t need the extra RAM, but, you are going to have to configure some swap for when it exceeds those limits (to avoid the OOM Killer and other issues – see here and here for more information). Without increasing the RAM, be prepared to have such usage be very slow also. In the previous issue you had no swap configured – that does not give the OS anywhere to go if you do something that consumes all the available memory, like a repair.

    Regarding the initial connection failure, I believe it may try to connect on localhost:27017 by default (rather than the IP) if no arguments are specified – is there any chance that your /etc/hosts file is returning the IPV6 address or something similar. Do you fail if you try connecting to localhost manually?

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

Sidebar

Related Questions

My test system (due to lack of resources) has a dual mongodb replicaset. There
Due to lack to time i cannot dig google and get information about openid
Excuse the simple question, the issue i'm having maybe due to lack of sleep.
Due to the lack of documentation for this on MSDN, I am forced to
I'm having a tricky debugging issue, perhaps due to my lack of understanding about
Due to lack of Mercurial support in several tools, and managerial oppression it has
Due to lack of proper documentation , I am unable to figure out on
I want to change to another drive due to lack of disk space. How
I'm having a problem (possibly due to lack of sleep!) where I'm trying to
I am struggling with an issue certainly due my lack of understanding on the

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.