Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Connection Pooling

by onelesd (Pilgrim)
on Oct 28, 2011 at 21:46 UTC ( #934521=note: print w/replies, xml ) Need Help??


in reply to Re^2: Connection Pooling
in thread Connection Pooling

If it's opening new connections every time I'd look into why it's closing the connections in the first place.

With 'Max' set to 2, $pool->get() should return undef when you try to exceed 2 connections.

Set up a test where you attempt to get 3 resources simultaneously and watch the database logs to see what's going on with the connections.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://934521]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2018-04-25 01:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?