Mongos open connections for one application

38 views
Skip to first unread message

Martinus Martinus

unread,
Jun 16, 2013, 10:48:45 PM6/16/13
to mongod...@googlegroups.com
Hi,

I used netstat to see my mongos open connections. I saw there are at least 5 connections coming from my app, even though my app is only connect one time to mongos. Would someone be so kindly to explain what happened?

Thanks.

Martinus Martinus

unread,
Jun 16, 2013, 10:49:35 PM6/16/13
to mongod...@googlegroups.com
Hi,

And I used mongodb version 2.2.0 for all my servers.

Thanks.

Asya Kamsky

unread,
Jun 17, 2013, 6:48:56 AM6/17/13
to mongod...@googlegroups.com
Is there a reason you picked such an old version for your MongoDB server?   What driver are you using in your application?
Normally the driver will take care of connection pooling, or opening new connections as needed by application.  

Martinus Martinus

unread,
Jun 19, 2013, 12:28:46 AM6/19/13
to mongod...@googlegroups.com
Hi Asya,

It's just I think it supposed to be more stable than 2.4. I used java driver version 2.10.1. I closed my connection to mongod by calling the close() method on Mongo class. At the beginning, I saw in the netstat command output, there are 5 connections and right now is 12. I don't really know why it keeps bigger. Any idea what can caused this?

Thanks.

Martinus


--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
 
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages