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 8454551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:03:29+00:00 2026-06-10T12:03:29+00:00

I’m trying to implement functionality of changing the size of capped collection and was

  • 0

I’m trying to implement functionality of changing the size of capped collection and was running out of available virtual space on 32bit systems which is 2GB. Mongo db was constantly creating new files if I tried to drop old collection and create a new collection with the same name but with different size.

In order to fix it I decided to do a repairDatabase each time I’m changing the size of collection, so that Mongo Db can reduce the file size before doing that operation. It works fine on Windows 2008 32bit but on Windows 2003 32bit I’m getting the following error when trying to do a sequence of operations ‘repairDatabase’, ‘dropCollection’, ‘createCollection’ after a certain number of attempts (near 10 attempts).

Tue Aug 28 06:24:28 [conn7] MapViewOfFileEx for C:/Program Files/.../MongoDb/data/$tmp_repairDatabase_0/sbm.1 failed with errno:8 ?????????????????????????? (file size is 536870912) in MemoryMappedFile::map, terminating.

I beleive the message replaced by question characters is 'Not enough storage is available to process this command.'. I’ve seen it here SERVER-6044 and here SERVER-5244. But none of this issues seems to be the same as my case. Is there any way I can prevent Mongo Db from termination? Or is there any better way to reduce the file size if I’m changing the capped collection size?

I’m also trying to create only collections the size of which doesn’t exceed 500MB (see this question to find out why). The version of Mongo Db I’m using is 2.0.7

  • 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-10T12:03:30+00:00Added an answer on June 10, 2026 at 12:03 pm

    When ‘repairDatabase’ is running, it needs twice as much space as a normal running state, so I was running out of 2GB limit on 32-bit systems even though I had a database only a bit larger than 1GB.
    The solution is to use capped collections with even lower size than 500MB and take into account space that can be used by ‘repairDatabase’

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

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to select an H1 element which is the second-child in its group
I know there's a lot of other questions out there that deal with this

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.