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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:45:14+00:00 2026-06-14T20:45:14+00:00

I wrote a PyMongo Script to build up large MongoDB tables. When it was

  • 0

I wrote a PyMongo Script to build up large MongoDB tables. When it was almost finished it now suddenly hangs. The guy who set it up says, it’s consuming 2GB memory being at the limit.

How I can probe what’s going on in general? Are there options the admin should adjust for smooth execution (memory limits, buffer, etc.)?

I looked up db.current_op() and I get:

      {'inprog': [{'active': False,
                   'client': '0.0.0.0:0',
                   'desc': 'initandlisten',
                   'lockStats': {'timeAcquiringMicros': {'R': 0,
                                                         'W': 2,
                                                         'r': 6,
                                                         'w': 0},
                                 'timeLockedMicros': {'R': 0, 'W': 100416}},
                   'ns': 'test',
                   'numYields': 0,
                   'op': 'query',
                   'opid': 1,
                   'query': {'options.temp': {'$in': [True, 1]}},
                   'threadId': '0x7fa7c7a71b40',
                   'waitingForLock': False},
                  {'active': False,
                   'desc': 'DataFileSync',
                   'lockStats': {'timeAcquiringMicros': {},
                                 'timeLockedMicros': {}},
                   'ns': '',
                   'numYields': 0,
                   'op': 'none',
                   'opid': 0,
                   'query': {},
                   'threadId': '0x7fa7c4605700',
                   'waitingForLock': False},
                  {'active': False,
                   'desc': 'journal',
                   'lockStats': {'timeAcquiringMicros': {'R': 278218664,
                                                         'W': 20638320},
                                 'timeLockedMicros': {'R': 34804203,
                                                      'W': 313165131}},
                   'ns': '',
                   'numYields': 0,
                   'op': 'none',
                   'opid': 0,
                   'query': {},
                   'threadId': '0x7fa7c3203700',
                   'waitingForLock': False},
                  {'active': False,
                   'client': '0.0.0.0:0',
                   'desc': 'TTLMonitor',
                   'lockStats': {'timeAcquiringMicros': {'r': 2, 'w': 0},
                                 'timeLockedMicros': {'r': 32, 'w': 0}},
                   'ns': 'local.system.indexes',
                   'numYields': 0,
                   'op': 'query',
                   'opid': 22735364,
                   'query': {'expireAfterSeconds': {'$exists': True}},
                   'threadId': '0x7fa7c09ff700',
                   'waitingForLock': False},
                  {'active': False,
                   'desc': 'websvr',
                   'lockStats': {'timeAcquiringMicros': {},
                                 'timeLockedMicros': {}},
                   'ns': '',
                   'numYields': 0,
                   'op': 'none',
                   'opid': 0,
                   'query': {},
                   'threadId': '0x7fa7bfffe700',
                   'waitingForLock': False},
                  {'active': False,
                   'desc': 'clientcursormon',
                   'lockStats': {'timeAcquiringMicros': {},
                                 'timeLockedMicros': {}},
                   'ns': '',
                   'numYields': 0,
                   'op': 'none',
                   'opid': 0,
                   'query': {},
                   'threadId': '0x7fa7c1e01700',
                   'waitingForLock': False},
                  {'active': False,
                   'desc': 'snapshotthread',
                   'lockStats': {'timeAcquiringMicros': {},
                                 'timeLockedMicros': {}},
                   'ns': '',
                   'numYields': 0,
                   'op': 'none',
                   'opid': 0,
                   'query': {},
                   'threadId': '0x7fa7c2802700',
                   'waitingForLock': False},
                  {'active': False,
                   'client': '192.168.101.43:52230',
                   'connectionId': 15,
                   'desc': 'conn15',
                   'lockStats': {'timeAcquiringMicros': {},
                                 'timeLockedMicros': {}},
                   'ns': '',
                   'numYields': 0,
                   'op': 'killcursors',
                   'opid': 22735367,
                   'query': {},
                   'threadId': '0x7fa7834fb700',
                   'waitingForLock': False},
                  {'active': False,
                   'client': '192.168.101.43:51872',
                   'connectionId': 13,
                   'desc': 'conn13',
                   'lockStats': {'timeAcquiringMicros': {},
                                 'timeLockedMicros': {'r': 0, 'w': 18}},
                   'ns': 'kolibri.nodes',
                   'numYields': 0,
                   'op': 'update',
                   'opid': 22735070,
                   'query': {'_id': 'kolibri-236-237-155368'},
                   'threadId': '0x7fa7833fa700',
                   'waitingForLock': False}]}

The operation that seems to be stuck should be an update $push.
Another thing I tried was db.last_status():

{'connectionId': 15, 'err': None, 'n': 0, 'ok': 1.0}

Can someone help me make sense of this and maybe give some advince (for beginners), how to check what’s going on and maybe some useful operations for common errors?

  • 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-14T20:45:15+00:00Added an answer on June 14, 2026 at 8:45 pm

    Mongodb has a number of tools that provide some transparency in whats going on within your system. You can try:

    • mongostat
    • mongotop
    • mms

    The first two should be included with your mongodb install. The third is available free from 10gen.

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

Sidebar

Related Questions

Wrote a script in bash. Now im need to bring information into a text
I wrote some script in a site. The script makes a new spreadsheet and
I wrote a collada loader for my model viewer. Write now it loops through
I wrote a PHP script that retrieves values from a MySQL Query. I used
I wrote a AutoHotKey script to remap LWin to LAlt LWin::LAlt LWin & Tab::AltTab
I wrote this method (almost similar in other post) public void update(string fileName, string
I wrote a small script which copies the billing address to the delivery address
I wrote a simple batch file as a PowerShell script, and I am getting
I wrote little wrapper subroutine to produce HTML-tables with HTML::Table , same time i
I wrote this ruby script to scrape product info from the manufacturer website. 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.