As of now we have seen that lots of
idle connections are sitting on MongoDB server.
Could anyone please explain how to get the stats with timestamp and count of active
connection and ideal connection.
Thanks in advance
Hi
As of now we have seen that lots of idle connections are sitting on MongoDB server.
How did you discover that they are idling?
Could anyone please explain how to get the stats with timestamp and count of active connection and ideal connection.
I don’t believe such facilities is built into MongoDB. Perhaps you can determine those metrics by parsing the mongod
log files using a custom script.
If you think that you have a lot of idle connections, you may want to customize the maxIdleTimeMS setting in the driver’s connection string URI in your application.
Best regards,
Kevin