Connection pool

511 views
Skip to first unread message

Wan Li

unread,
Nov 23, 2011, 6:00:56 AM11/23/11
to node-mong...@googlegroups.com
Hi Gurus,

Thanks for your fancy library.
Previously, I'm using https://github.com/ssssssssssss/mongodb-rest which is build on top of mongodb-native, everything works fine if < V0.9.7 except the bson parser's performace which causes some slowdown and heavy GC (~10% ticks in V8 3.6.6.8), so I upgrade to 0.9.7-0.
But I finished a few stress tests, I found it will use up my connections, I've only created a singleton for "db" itself in
mongodb-rest, anything goes wrong here?

Thanks.


--
>: ~

Wan Li

unread,
Nov 23, 2011, 7:08:37 AM11/23/11
to node-mong...@googlegroups.com
Maybe I'm wrong,
It states:
Error: no open connections
    at /usr/local/lib/node_modules/mongodb/lib/mongodb/db.js:729:44
    at /usr/local/lib/node_modules/mongodb/lib/mongodb/db.js:838:11
    at Object.callback (/usr/local/lib/node_modules/mongodb/lib/mongodb/connection/server.js:101:7)
    at Array.3 (/usr/local/lib/node_modules/mongodb/lib/mongodb/connection/server.js:155:36)
    at EventEmitter._tickCallback (node.js:192:40)

Failed to get a connection?
--
>: ~

Art Skvira

unread,
Nov 29, 2011, 5:12:32 AM11/29/11
to node-mongodb-native
Interesting.

I seem to be running into the very same issue:

Error: no open connections
at ....node_modules/mongodb/lib/mongodb/db.js:729:44
at [object Object]._executeQueryCommand (....node_modules/mongodb/
lib/mongodb/db.js:859:5)
at [object Object].nextObject (....node_modules/mongodb/lib/
mongodb/cursor.js:482:13)

Haven't looked at the code there yet though.

Any ideas what's causing it?

Thanks,
Art

christkv

unread,
Nov 29, 2011, 5:20:32 AM11/29/11
to node-mong...@googlegroups.com
Is this not a better question to the author of the rest wrapper for the driver ? maybe he is using the driver weirdly.

Art Skvira

unread,
Nov 30, 2011, 6:08:43 AM11/30/11
to node-mongodb-native
I think I managed to reproduce that, seems to be happening when
throwing an exception from callback function to mongodb lib on save.

Will try to isolate that into reproducible test case.

Thanks

Wan Li

unread,
Dec 14, 2011, 2:57:25 AM12/14/11
to node-mong...@googlegroups.com
On Tue, Nov 29, 2011 at 6:20 PM, christkv <chri...@gmail.com> wrote:
Is this not a better question to the author of the rest wrapper for the driver ? maybe he is using the driver weirdly.

@christkv
I filed a bug here.
https://github.com/christkv/node-mongodb-native/issues/440
And test case:
https://gist.github.com/1475648


--
>: ~
Reply all
Reply to author
Forward
0 new messages