Bug #94101 | Setting logSlowQueries should not automatically enable profileSQL for queries | ||
---|---|---|---|
Submitted: | 28 Jan 2019 15:14 | Modified: | 26 Jun 2019 15:57 |
Reporter: | Florian Agsteiner (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S5 (Performance) |
Version: | 8.0.14 | OS: | Any (Java Connector) |
Assigned to: | CPU Architecture: | Any | |
Tags: | logSlowQueries |
[28 Jan 2019 15:14]
Florian Agsteiner
[28 Jan 2019 15:15]
Florian Agsteiner
Flamegraph
Attachment: flame_html.png (image/png, text), 1.33 MiB.
[29 Jan 2019 11:14]
MySQL Verification Team
Hello Florian, Thank you for the report. Please note that in order to submit contributions you must first sign the Oracle Contribution Agreement (OCA). For additional information please check http://www.oracle.com/technetwork/community/oca-486395.html. If you have any questions, please contact the MySQL community team https://dev.mysql.com/community/ regards, Umesh
[29 Jan 2019 12:54]
Florian Agsteiner
Hello Umesh, I will do that. Thank you! - Florian
[30 Jan 2019 14:00]
Florian Agsteiner
Changes (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: patch.diff (application/octet-stream, text), 3.37 KiB.
[26 Jun 2019 15:57]
Daniel So
Posted by developer: Added the following entry to the Connector/J 8.0.17, 5.1.48 changelog: "Enabling logSlowQueries resulted in many unnecessary calls of LogUtils.findCallingClassAndMethod(). With this fix, LogUtils.findCallingClassAndMethod() is called only when profileSQL is true and even in that case, the number of calls are reduced to a minimal to avoid the excessive stack trace data the function used to generate. Thanks to Florian Agsteiner for contributing to the fix."