Zend Framework app not closing mysql connections properly

后端 未结 6 1202
Happy的楠姐
Happy的楠姐 2021-01-14 04:29

I\'m having a weird issue using Zend_Db\'s PDO adapter for managing my database connections. All of a sudden, I\'m constantly hitting the connection limit on my MySQL server

6条回答
  •  礼貌的吻别
    2021-01-14 04:53

    Not sure if this is of any use to you but this link gives you a (temporary) good description of the issue you are experiencing as well as a --max_connect_errors setting which you could override:

    http://developer.spikesource.com/wiki/index.php/Question:mysqladmin_host_blocked_because_of_many_connection_errors

    A user also responds and recommended trying the following on the command line:

    > mysqladmin -u  -p processlist
    

    This will give you a list of your current mysql connections to get an idea for how many concurrent connections you are currently running. Again, these aren't solutions per say, but hopefully they get you a step closer to solving the dropped connection issue.

提交回复
热议问题