top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Explain what is the role of profiler in MongoDB?

+2 votes
466 views
Explain what is the role of profiler in MongoDB?
posted Mar 13, 2016 by Shivam Kumar Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

Lets first understand what is the meaning of profiler in general term?
A profiler produces a performance profile, i.e. how much time is being spent in the subtasks of the task you are profiling. 'perf' tool in unix is one such example which tells how much time is being spent in each of the particular system and applications etc etc.

Now lets see MongoDB profiler -
The MongoDB profiler is similar to profiler in general term, it gathers performance information about slow interactions with the database, and provides hints, such as available index choices.

Check the following link which explains how to use MongoDB profiler -
https://docs.mongodb.org/manual/tutorial/manage-the-database-profiler/

answer Mar 13, 2016 by Salil Agrawal
Thanks a lot for explanation ...
Similar Questions
+1 vote

I am new to mongodb. im using mongodb 3.2. I need to monitor my mongodb operations for that the user need clusterAdmin privileges when i set db.grantRolesToUser("test123", [ { role: "clusterAdmin", db: "testdb" } ]) it showing error as "Error: No role named clusterAdmin@testdb".

What is my mistake?

+1 vote

I recently upgraded the latest PHP driver and could do an "explain" query by using the "$explain" modifier when executing the query, however as of MongoDB 3.2 the operator was removed so this is no longer possible.

So my question is how can I do an explain query with the new driver and MongoDB 3.2?

...