Zend Framework app not closing mysql connections properly

后端 未结 6 1200
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 05:09

    first i'll ask: do you have any new core-dumps? (check apache error log).

    second: from my grim experience having too many connections to the database usually means that you have too many apache processes not dieing properly. Usually this is caused by some long-running process, memory locks, etc. try to strace some of your apache processes and see if they hang somewere or do endless loops.

    Unless you have a significant increase in traffic you should not suffer from too-many-connection problems

提交回复
热议问题