Skip to content
Studio 3T - The professional GUI, IDE and client for MongoDB
  • Tools
    • Aggregation Editor
    • IntelliShell
    • Visual Query Builder
    • Export Wizard
    • Import Wizard
    • Query Code
    • SQL Query
    • Connect
    • Schema Explorer
    • Compare
    • SQL ⇔ MongoDB Migration
    • Data Masking
    • Task Scheduler
    • Reschema
    • AI Helper
    • Team Sharing
    • Index Manager
    • More Tools and Features
  • Solutions
  • Resources
    • Knowledge Base
    • MongoDB Tutorials & Courses
    • Tool/Feature Documentation
    • Blog
    • Community
    • Testimonials
    • Whitepapers
    • Reports
  • Contact us
    • Contact
    • Sales Support
    • Feedback and Support
    • Careers
    • About Us
  • Store
    • Buy Now
    • Preferred Resellers
    • Team Pricing
  • Download
  • My 3T
search

Studio 3T® Knowledge Base

  • Documentation
  • Tutorials
  • Workshops
Take the fastest route to learning MongoDB. Cover the basics in two hours with MongoDB 101, no registration required.
Start the free course

Want to Find Slow Queries? Check MongoDB Current Operations

Posted on: 11/08/2020 (last updated: 01/10/2021) by Kathryn Vargas

currentOp is a MongoDB admin command that returns a document with information on operations in progress.

Studio 3T replaces the currentOp command with a Current Operations feature, which you can access by right-clicking on any collection in the Connection Tree.

View the current operations of any MongoDB collection in Studio 3T

This opens a new Current Operations tab which displays data for in-progress and expired ops – if you so choose.

Find a slow MongoDB query

An effective way of spotting slow MongoDB queries is to check the Show Only Slow Ops box.

You can define what “slow” is by choosing one of four default settings: 1, 3, 10 or 30 seconds. The queries that meet this criteria will appear as results – think of it as your collection’s slow query log.

Show slow MongoDB queries

Want to try it on your collection? Download Studio 3T to get started.

Kill long-running operations

Once you’ve identified your slow MongoDB queries, choose the operation(s) you want to cancel from the results. Then, click on the Kill operation button.

Kill long-running MongoDB operations

Show expired ops

In addition to current operations, you can also choose to show expired operations by checking the Retain Expired Ops box. Expired operations will appear greyed out.

Retain expired MongoDB operations

You can retain all expired operations or only those executed in the last 10 seconds, 30 seconds, 1, 2, 5, or 10 minutes.

Show own ops only

If there are multiple current operations running against your collection and you only want to show those you’ve started, check on the Show own ops only box.

Show your MongoDB operations only

Show system operations

To show system operations alongside user operations, check the Show Sys Ops box.

Show system operations alongside user operations

Change update frequency

You can also decide how often to refresh current operations:

Choose your update frequency

Filter current operations

To filter only a certain type of operation, click on the corresponding icon. From left to right, the options are:

Choose to show only certain current operations
  • n – none
  • u – update
  • i – insert
  • q – query
  • g – getmore
  • r – remove
  • k – killcursors

MongoDB current operations

The Current Operations feature in Studio 3T displays this data for all operation types:

  • opid
  • expired
  • host
  • desc
  • connectionId
  • client
  • clientMetadata
  • active
  • currentOpTime
  • secs_running
  • microsecs_running
  • op
  • ns
  • command
  • planSummary
  • numYields
  • locks
  • waitingForLock
  • lockStats
MongoDB current ops

Want to improve MongoDB query performance? These tutorials might help: 

  • Use Visual MongoDB() Explain for Performance Tuning
  • How to Use the MongoDB Profiler and explain() to Find Slow Queries
  • How MongoDB Indexes Work (With Examples)
  • How to Optimize MongoDB Queries Using find() & Indexes

How helpful was this article?
This article was hideous
This article was bad
This article was ok
This article was good
This article was great
Thank you for your feedback!

About The Author

Kathryn Vargas

When she's not writing about working with MongoDB, Kathryn spends her free time exploring Berlin's food scene, playing the drums, learning languages (current mission: German), and hiking.

Article navigation

Related articles

  • How do I give Studio 3T feedback? I want to tell them what I want. #Studio3T_AMA
  • Test your skills: Building MongoDB find() Queries
  • Test your skills: Performing CRUD Operations
  • What’s in the Studio 3T Operations Pane? #Studio3T_AMA
  • The Studio 3T Operations Pane

Studio 3T

MongoDB Enterprise Certified Technology PartnerSince 2014, 3T has been helping thousands of MongoDB developers and administrators with their everyday jobs by providing the finest MongoDB tools on the market. We guarantee the best compatibility with current and legacy releases of MongoDB, continue to deliver new features with every new software release, and provide high quality support.

Find us on FacebookFind us on TwitterFind us on YouTubeFind us on LinkedIn

Education

  • Free MongoDB Tutorials
  • Connect to MongoDB
  • Connect to MongoDB Atlas
  • Import Data to MongoDB
  • Export MongoDB Data
  • Build Aggregation Queries
  • Query MongoDB with SQL
  • Migrate from SQL to MongoDB

Resources

  • Feedback and Support
  • Sales Support
  • Knowledge Base
  • FAQ
  • Reports
  • White Papers
  • Testimonials
  • Discounts

Company

  • About Us
  • Blog
  • Careers
  • Legal
  • Press
  • Privacy Policy
  • EULA

© 2023 3T Software Labs Ltd. All rights reserved.

  • Privacy Policy
  • Cookie settings
  • Impressum

We value your privacy

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes ("analytics and marketing") and to provide you with additional functions (“functional”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data.

By clicking “Accept all”, you consent to the storage of cookies and the processing of personal data for these purposes, including any transfers to third countries. By clicking on “Decline all”, you do not give your consent and we will only store cookies that are necessary for our website. You can customize the cookies we store on your device or change your selection at any time - thus also revoking your consent with effect for the future - under “Manage Cookies”, or “Cookie Settings” at the bottom of the page. You can find further information in our Privacy Policy.
Accept all
Decline all
Manage cookies
✕

Privacy Preference Center

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes ("analytics and marketing") and to provide you with additional functions (“functional”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data. Please choose for which purposes you wish to give us your consent and store your preferences by clicking on “Accept selected”. You can find further information in our Privacy Policy.

Accept all cookies

Manage consent preferences

Essential cookies are strictly necessary to provide an online service such as our website or a service on our website which you have requested. The website or service will not work without them.

Performance cookies allow us to collect information such as number of visits and sources of traffic. This information is used in aggregate form to help us understand how our websites are being used, allowing us to improve both our website’s performance and your experience.

Google Analytics

Google Ads

Bing Ads

Facebook

LinkedIn

Quora

Hotjar

Reddit

Functional cookies collect information about your preferences and choices and make using the website a lot easier and more relevant. Without these cookies, some of the site functionality may not work as intended.

HubSpot

Social media cookies are cookies used to share user behaviour information with a third-party social media platform. They may consequently effect how social media sites present you with information in the future.

Accept selected
✕