Zend Framework app not closing mysql connections properly

后端 未结 6 1244
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条回答
  •  旧时难觅i
    2021-01-14 04:46

    Our Zend application has also been leaving quite a few connections open. They tend to come in spurts, but we never did figure out what was going on. We worked around the problem by setting max_connections high (which we needed for other reasons, anyway) and reducing wait_timeout to two hours. We could have gotten away with a much lower timeout, but didn't want to risk the real application once we stopped seeing failures.

提交回复
热议问题