christkv/node-mongodb-native — Issue #440: Too many connections to mongodb @0.9.7+
Author: ssssssssssss
Created: 2011-12-14 07:53:17+00:00
State: open

Under heavy load, mongodb-native@0.9.7+ may open many connections and never release.
This is the code to reproduce the issue:
https://gist.github.com/1475648

Steps:
1. Start the http server and mongod(2.0+)
2. Insert some data to "test" db and "testdata" collection.
3. Run "ab -n 10000 -c 1000 http://localhost:9999/test/testdata/" (Slooooow)
4. "netstat -anp |grep mongo | wc -l" to see the connections growing.