PHP Connection Pooling

214 views
Skip to first unread message

Chase

unread,
Apr 20, 2012, 6:21:07 PM4/20/12
to mongod...@googlegroups.com
Hi - we have a project using CakePHP and the latest MongoDB PHP driver (1.2.8).  We have noticed a ridiculous number of DB connections getting generated to the mongodb server.  We are running Apache httpd and under load we see several thousand connections in time wait status (meaning they closed and reopened).    Basically, we think (or suspect) that the database connection pooling does not work (or at least not noticeably).  Has anyone else seen this?
Thanks

Steve Rabouin

unread,
Apr 20, 2012, 6:55:31 PM4/20/12
to mongod...@googlegroups.com
Hi Chase,

Latest driver is 1.2.10, not sure if updating would help. I don't see anything mentioned in the change logs about number of DB connections other than a fix where connection wasn't closed if the execution timed out.

Derick Rethans

unread,
Apr 21, 2012, 8:50:55 AM4/21/12
to mongod...@googlegroups.com

Are you calling close yourself at any point during the excution on the
Mongo object?

cheers,
Derick

--
http://mongodb.org | http://derickrethans.nl
twitter: @derickr and @mongodb

Reply all
Reply to author
Forward
0 new messages