Doctrine 2 Close Connection

后端 未结 3 1218
一整个雨季
一整个雨季 2021-02-20 00:26

I use doctrine 2 PDO with mysql.

When stress testing the server, mysql reports a lot of aborted connections (up-to 20%).

I am trying to locate the issue.

3条回答
  •  南笙
    南笙 (楼主)
    2021-02-20 00:47

    I have found this tweak:

    https://sroze.io/phpunit-mysql-too-many-connections-error-ab52cd5798c5

    Setting processIsolation="true" option in PhpUnit XML options file seems to do the trick.

提交回复
热议问题