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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:15:45+00:00 2026-06-12T14:15:45+00:00

We are running mongodb (v2.0.6) as a service on Windows. We have created several

  • 0

We are running mongodb (v2.0.6) as a service on Windows. We have created several other services that are dependent on mongodb, and have created the appropriate dependency on mongodb for those services. As the collections in our mongodb have grown, we are starting to see failures in our services while trying to connect to mongodb on startup. It appears that mongodb is reporting to the windows SCM that it has started, yet it doesn’t appear to be ready to accept client connections at that point. Has anybody else seen this condition? We currently have several hacks in place to get around this, but I’m trying to find out if this is a bug in mongodb, i.e., is it still asynchronously initializing when it tells the SCM that it has started?

  • 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-12T14:15:46+00:00Added an answer on June 12, 2026 at 2:15 pm

    mongod.exe registers immediately with the SCM when started as a service, but may take some time to preallocate files, especially the oplog in the local database if it is large. It does the same thing when run inside a console window. Negotiating when joining a replica set can also take some time. It is ready for connections once it logs “waiting for connections on …” to the log file.

    If you think it should behave differently, by, for example, remaining in SERVICE_START_PENDING state with the SCM until it is ready to accept connections, please file a Jira ticket with the details of your proposal. We’re not married to the current behavior, but it does match the behavior it shows in console windows and on other operating systems.

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

Sidebar

Related Questions

I'm running MongoDB on Windows. I have 1 or more threads that drop and
I'm trying to use mongodb with PHP. For that, I have created a MongoHQ
I have a dedicated Windows 2008 server with several websites and 1 windows service
I am developing an application that will use MongoDB running on Windows Azure. This
I have mongodb running and using morphia. Having a Collection of BatchData Documents and
Running SQL Server 2008 (not R2). I have a few reports that have URLs
I'm running node.js on OSX and have just installed mongodb using command npm install
I am running some unit test that persist documents into the MongoDb database. For
I am having performance issues with MongoDB. Running on: MongoDB 2.0.1 Windows 2008 R2
I am running MongoDb before on Windows and my Java app was connecting perfectly.

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.