MongoDB profiler is an internal tool that enables DBAs and developers to collect information about executed MongoDB requests.
Profiler has three levels:
0 – profile is off
1 – profiler collects information on slow requests
2 – profiler collects all information
For production purposes level 1 is what DBA needs. In general, it is best to set it to some reasonable SLA required threshold, like 1,000 milliseconds (1 second), etc.
Level 2 is best for development purposes to get a complete log of executed requests.
Below is the list of profile related commands:
# set profiling to level 1 capture requests with duration over 500 ms
db.setProfilingLevel(1,500)
#get current profiler level
db.getProfilingLevel()
# get current profiler settings
MongoDB Enterprise > db.getProfilingStatus()
{ "was" : 1, "slowms" : 500 }
To return operations slower than 500 milliseconds, run a query similar to the following:
db.system.profile.find( { millis : { $gt : 50 } } ).pretty()
Enteros UpBeat High Load Capture continuously captures history of executed mongodb requests across all collection as well as other mongo db, OS, SAN and other operational statistics across muliple systems.
When the spike is identified, it can be cross-correlated across MongoDB nodes and correlated with MongoDB requests. A detailed report is generated to pinpoint what requests are were active during the problem time.
Also, please check my presentation on MongoDB performance tuning
The views expressed on this blog are those of the author and do not necessarily reflect the opinions of Enteros Inc. This blog may contain links to the content of third-party sites. By providing such links, Enteros Inc. does not adopt, guarantee, approve, or endorse the information, views, or products available on such sites.
Are you interested in writing for Enteros’ Blog? Please send us a pitch!
RELATED POSTS
How Enteros Powers Telecom Growth with AI Performance Management and Cloud FinOps
- 9 March 2026
- Database Performance Management
Introduction The telecommunications industry is at the center of global digital transformation. From 5G rollouts and edge computing to streaming services, IoT connectivity, and real-time communication platforms, telecom companies are managing massive volumes of data and increasingly complex infrastructure. Behind every telecom service—voice calls, messaging, video streaming, mobile apps, and connected devices—there is a sophisticated … Continue reading “How Enteros Powers Telecom Growth with AI Performance Management and Cloud FinOps”
Eliminating Healthcare Data Bottlenecks: Enteros Database Software with AI SQL Root Cause Analysis
Introduction Healthcare organizations are under unprecedented pressure to deliver faster, smarter, and more reliable digital services. From electronic health records (EHR) and telemedicine platforms to AI-driven diagnostics and real-time patient monitoring, the healthcare ecosystem depends heavily on robust data infrastructure. At the center of this infrastructure are databases that store and process critical patient, clinical, … Continue reading “Eliminating Healthcare Data Bottlenecks: Enteros Database Software with AI SQL Root Cause Analysis”
How Enteros Transforms Financial Database Management with Predictive Cost Estimation
- 8 March 2026
- Database Performance Management
Introduction The financial sector is experiencing rapid digital transformation. From real-time trading platforms and digital banking applications to AI-driven risk analytics and regulatory reporting systems, financial institutions rely heavily on high-performance data infrastructure. At the heart of this infrastructure are databases that process enormous volumes of transactions, analytics workloads, and customer interactions every second. As … Continue reading “How Enteros Transforms Financial Database Management with Predictive Cost Estimation”
How to Align Insurance Growth Strategy with Database Performance and RevOps Intelligence
Introduction The insurance industry is undergoing a profound transformation. Digital policy management, real-time underwriting, AI-powered risk assessment, and omnichannel customer engagement are reshaping how insurers compete and grow. As organizations scale their digital capabilities, a critical yet often overlooked factor emerges: database performance and operational intelligence. Every insurance operation—from policy issuance and claims processing to … Continue reading “How to Align Insurance Growth Strategy with Database Performance and RevOps Intelligence”