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 to Drive Financial Sector Performance with Enteros Database Management Platform and Cloud FinOps Efficiency
- 23 April 2026
- Database Performance Management
Introduction The financial sector is undergoing a massive digital transformation. From real-time payments and mobile banking to AI-driven fraud detection and personalized financial services, institutions are leveraging advanced technologies to stay competitive. However, this transformation brings increasing complexity in managing IT infrastructure, ensuring high system performance, and controlling cloud costs. Financial institutions must operate in … Continue reading “How to Drive Financial Sector Performance with Enteros Database Management Platform and Cloud FinOps Efficiency”
How to Optimize Healthcare Sector Growth Performance with Enteros Database Software, Cost Estimation, Cost Attribution, and RevOps Efficiency
- 22 April 2026
- Database Performance Management
Introduction The healthcare sector is rapidly evolving, driven by digital transformation, data-driven care delivery, telemedicine, and advanced analytics. Hospitals, clinics, and healthcare systems are increasingly dependent on robust IT infrastructures to manage patient data, streamline operations, and deliver high-quality care. However, this transformation introduces a fundamental challenge:how to scale healthcare services efficiently while maintaining system … Continue reading “How to Optimize Healthcare Sector Growth Performance with Enteros Database Software, Cost Estimation, Cost Attribution, and RevOps Efficiency”
How to Optimize eCommerce Growth with Enteros Database Management Platform, AIOps, Performance Management, and Cloud FinOps
Introduction The eCommerce sector has become one of the fastest-growing industries in the digital economy. With the rise of online shopping, mobile commerce, and global marketplaces, businesses are under constant pressure to deliver seamless, personalized, and high-performance digital experiences. However, scaling eCommerce operations is not just about increasing traffic or expanding product catalogs. It requires … Continue reading “How to Optimize eCommerce Growth with Enteros Database Management Platform, AIOps, Performance Management, and Cloud FinOps”
Transforming Healthcare Data Systems with Intelligent Database Analytics
The healthcare industry is undergoing a massive digital transformation. Hospitals, clinics, research institutions, and healthcare technology companies are increasingly relying on data-driven systems to deliver faster diagnoses, improve patient outcomes, and enhance operational efficiency. From Electronic Health Records (EHR) and telemedicine platforms to AI-powered diagnostics and real-time clinical analytics, modern healthcare systems generate enormous volumes … Continue reading “Transforming Healthcare Data Systems with Intelligent Database Analytics”