Closed Bug 366884 Opened 18 years ago Closed 16 years ago

Unknown DB performance issue (Lost connection to MySQL server during query)

Categories

(Bugzilla :: Query/Bug List, defect)

2.23.3
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 408766

People

(Reporter: justdave, Unassigned)

References

Details

Attachments

(1 file)

Attached file query debug info
The Summary is a dummy, we can fix it to be more accurate once we figure out what the issue is.

Been having a lot of people mail in "Lost connection to MySQL server" errors since the upgrade.  Sometimes they seem random.  This one I can reproduce at will, so I'm assuming the query is taking longer to run than the timeouts are set for.

Debug info attached.
How long does the query take if you run it actually in the MySQL console?
OK, I was told recently that MySQL has a total lifetime timeout on connections, meaning any given connection cannot last longer than the timeout, even if it's not idle.  Supposedly this timeout defaults to 8 hours.  I can't seem to find it documented anywhere, however.  But given that we're using mod_perl, and connections are being pooled, it's quite possible we've been hitting this timeout as apache processes grow to be that old.  Perhaps we need to set a time limit on how old an apache process can get, or keep track of how long our MySQL connections have been open and kill them off ourselves before they get that old.
i like my testcase better, as the query that's failing is trivial, and the problem is that a previous query combined with expensive charting has caused the simple query to be unfortunately aborted. 
Isn't this fixed by bug 408766?
Yes, this bug and that one sound identical, to me.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: