Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception 'PDOException' Too many connections #1760

Closed
samimussbach opened this issue Oct 8, 2010 · 4 comments
Closed

Uncaught exception 'PDOException' Too many connections #1760

samimussbach opened this issue Oct 8, 2010 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@samimussbach
Copy link

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:
#0 XXX/piwik/libs/Zend/Db/Adapter/Pdo/Abstract.php(129): PDO->__construct('XXX', 'XXX', 'XXX', Array)
#1 XXX/piwik/libs/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#2 XXX/piwik/core/Db/Adapter/Pdo/Mysql.php(31): Zend_Db_Adapter_Pdo_Mysql->_connect()
#3 XXX/piwik/core/Db/Adapter.php(49): Piwik_Db_Adapter_Pdo_Mysql->getConnection()
#4 XXX/piwik/core/Piwik.php(1444): Piwik_Db_Adapter::factory('PDO_MYSQL', Array)
#5 XXX/piwik/core/Common.php(219): Piwik::createDatabaseObject()
#6 XXX/piwik/core/Common.php(130): Piwik_Common::initCorePiwikInTrackerMode()
#7 XXX/piwik/core/Common. in XXX/piwik/libs/Zend/Db/Adapter/Pdo/Abstract.php on line 144
@robocoder
Copy link
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
Copy link
Contributor

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

@robocoder
Copy link
Contributor

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

@mattab
Copy link
Member

mattab commented Nov 25, 2010

see #1817

@samimussbach samimussbach added this to the Piwik 1.1 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

3 participants