• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question MongoDB on Windows slow *sometimes* using tailable cursors as message queue.?

emma blisa

New Pleskian
We are completing a generic service-bus implementation on C, with clients for C#, Delphi, PL/SQL and PHP. The library works great, we have awesome performance for our bus unless the MongoDB database is running on Windows (tested on 2008 R2, 2003 and 7) and there's no other "special" program running.

Out test do the following:

1. Program A sends a message on a capped collection

2. Program B tails on the message queue collection and "wakes up" when message appear using a cursor with awaitData param set to true

3. When Program B wakes up, prepares a messsage and sends a response to Program A inserting a document on a specific collection by Program A

4. Program A was already waiting on the second "response" collection and gets awaken when Program B (the producer) sent the response back

5. Mongodb Loop ends there.

Our testing program counts the loop and reports performance on a console application compiled with Visual Studio 2010.
 
Back
Top