@samimussbach opened this Issue on October 8th 2010

We hit our too many connections limit today which has nothing to do with piwik. But - as a side effect - I found follwing Fatal error in our logs:

Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[08004] [1040] Too many connections' in XXX/piwik/libs/Zend/Db/Adapter/Pdo/Abstract.php:129
Stack trace:
<a href='/0'>#0</a> XXX/piwik/libs/Zend/Db/Adapter/Pdo/Abstract.php(129): PDO->__construct('XXX', 'XXX', 'XXX', Array)
<a href='/1'>#1</a> XXX/piwik/libs/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
<a href='/2'>#2</a> XXX/piwik/core/Db/Adapter/Pdo/Mysql.php(31): Zend_Db_Adapter_Pdo_Mysql->_connect()
<a href='/3'>#3</a> XXX/piwik/core/Db/Adapter.php(49): Piwik_Db_Adapter_Pdo_Mysql->getConnection()
<a href='/4'>#4</a> XXX/piwik/core/Piwik.php(1444): Piwik_Db_Adapter::factory('PDO_MYSQL', Array)
<a href='/5'>#5</a> XXX/piwik/core/Common.php(219): Piwik::createDatabaseObject()
<a href='/6'>#6</a> XXX/piwik/core/Common.php(130): Piwik_Common::initCorePiwikInTrackerMode()
<a href='/7'>#7</a> XXX/piwik/core/Common. in XXX/piwik/libs/Zend/Db/Adapter/Pdo/Abstract.php on line 144
@robocoder commented on October 9th 2010 Contributor

Hmm. Not much Piwik can do to workaround the mysql configuration limit. But we should:

  • add a try...catch around the createDatabaseObject call in the tracker
  • suppress the path information and function parameters when tracker debugging is off
@robocoder commented on October 9th 2010 Contributor

(In [3240]) fixes #1760, fixes #1573

@robocoder commented on October 9th 2010 Contributor

(In [3242]) refs #1760, refs #1573 - undo change to index.php; integrator has to wrap this in their own try...catch

@mattab commented on November 25th 2010 Member

see #1817

This Issue was closed on November 25th 2010
Powered by GitHub Issue Mirror