too many DB connections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Low
|
Doris Tam |
Bug Description
From forum post https:/
By what is reported in this forum post, it looks like the amount of connections by DB username is over 50 even when it's only one mahara account logged in on the site.
We have to look into why this is happening, if we are opening connections but never closing them.
By a quick search I could find that we are calling
$db = ADONewConnectio
from init.php everytime, there are no checks for conditions so we always create a new connection
but we are not calling the Disconnect function from ADOConnection to kill the connection.
The forum post resports this for mysqli but we should check if we have the same problem with postgres as well
Changed in mahara: | |
importance: | Undecided → Medium |
Changed in mahara: | |
milestone: | 21.04.0 → 21.10.0 |
Changed in mahara: | |
assignee: | nobody → Doris Tam (doristam) |
Changed in mahara: | |
importance: | Medium → Low |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
More investigation is needed for this. Pushing it out to 21.04 to do as we are getting too close to the release of 20.10 to make major changes in this area.