[Django]-Get process name for mongodb open connections

2👍

I figured out myself how to know more about connections information.

db.currentOp(true).inprog

Above command will give all current connections information in array. you can see information such as client ip,whether its active or not,connection id,operation type and everything.

1👍

You can get the connection details in the most rudimentary form using a quick shell command such as

ps -eAf | grep mongo

If you use this command on the host running your mongod process. Essentially you can make a note of all active pid’s and take corrective actions

Leave a comment