Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Optimize DBI connect to avoid max_user_connections

by fishmonger (Pilgrim)
on May 29, 2014 at 21:53 UTC ( #1087882=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Optimize DBI connect to avoid max_user_connections
in thread Optimize DBI connect to avoid max_user_connections

If you don't do an explicit disconnect, the module should do it for you when the handle goes out of scope or as part of the garbage collection process when the script ends. However, that doesn't always happen. I had a script connecting to a pervasive db and didn't have an explicit disconnect. Latter I learned that connections weren't being disconnected which caused the db to lockup when it reached the max connections.

The next time this problem comes up connect to the mysql cli or you can use phpmyadmin to run the following command.
show full processlist;

That will show you the connections and processes being executed.


Comment on Re^5: Optimize DBI connect to avoid max_user_connections
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1087882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (16)
As of 2014-12-18 14:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (55 votes), past polls