Multiple mongo connections

12 views
Skip to first unread message

Bengt Weiße

unread,
Jan 16, 2015, 4:37:01 PM1/16/15
to mongoo...@googlegroups.com
Hey guys,

i have built an api in nodejs and mongodb (mongoose).

There is the possibility if i want to create a whole new "entity" a new database is created and will be connected.
Now i have the problem that everytime createConnection() is called -> mongod creates round about 10 new threads.

I thought mongodb is near "limitless".
I reach the limit at 830 threads.

Is there a way to increase that limit? I've read things about to increase ulimit?
I am reusing open connection, maybe there is a way to close not current using connection if a limit is reached?

Thank you in advance,

Greets bengtler
Reply all
Reply to author
Forward
0 new messages