dachcom-digital / pimcore-codeception-framework

Other
4 stars 0 forks source link

Too many Connections #2

Closed solverat closed 2 years ago

solverat commented 3 years ago

In large acceptance tests, sometimes the SQLSTATE[08004] [1040] Too many connections exception will rise. I couldn't find a better solution than closing the connection within a restricted timeout.

doctrine:
    dbal:
        connections:
            default:
                options:
                    1002: 'SET SESSION wait_timeout=30;'

I've a bad feeling about this, we should investigate further, finding a solution to close connections properly.

solverat commented 2 years ago

Using shogo82148/actions-setup-mysql@v1 action with an extended my.cnf seems to solve this issue.