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