I am running MongoDB 2.0.2, 64 bits on Debian (from the official repo). I
am trying to activate the profiler from the shell, but it is not working. I
am probably missing something utterly stupid, but i have to say I am
stumped: I have googled for a solution but apparently nobody else has this
problem.
Following http://www.mongodb.org/display/DOCS/Database+Profiler:
db.version() 2.0.2
db.setProfilingLevel(2)
{ "was" : 2, "slowms" : 100, "ok" : 1 }
db.getProfilingLevel() 2
db.getProfilingStatus()
{ "was" : 2, "slowms" : 100 }
show profile
db.system.profile is emptydb.setProfilingLevel(2)
{ "was" : 2, "slowms" : 100, "ok" : 1 }
db.getProfilingLevel() 2
db.getProfilingStatus()
{ "was" : 2, "slowms" : 100 }
show profile
Use db.setProfilingLevel(2) will enable profiling
Use db.system.profile.find() to show raw profile entries
[... various queries later, both from the shell and using the PHP driver
...]
show profile
db.system.profile is emptyUse db.setProfilingLevel(2) will enable profiling
Use db.system.profile.find() to show raw profile entries
I have also tried level 1 with several ms thresholds. I have not tried
activating profiling using the PHP driver, but from the docs it should be
possible to activate it from the shell. Is it so? What can be the issue?
TIA,
Alex.
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
