Modify

Opened 17 years ago

Closed 17 years ago

#1992 closed defect (worksforme)

Too Many Connections with mysql.

Reported by: ubergeek@… Owned by: Brad Anderson
Priority: normal Component: DbAuthPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

I have tracked this bug down to trac, and almost definitely dbauth. It looks as though our mysql server is running out of connections, as dbauth isn't necessarily closing them. I have looked at the CentralDatabaseManager class and the trac source but am not a python programmer so its hard for me to follow.

The good news is that up until now we have not had this issue, but now we have approx 40-50 users on 80+ projects and it is starting to show strain.

Attachments (0)

Change History (1)

comment:1 Changed 17 years ago by anonymous

Resolution: worksforme
Status: newclosed

I thought that unused connections would be released upon garbage collection. They are for sqlite and postgres. However, you could pepper some

db.close()

lines in auth.py after the work with the connection is done. Potentially before the lines: 161, 181, 205, 232 (rework to temp var), 265.

See http://www.trac-hacks.org/browser/dbauthplugin/0.10/dbauth/perm.py#L62 for an example.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Brad Anderson.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.