MySQL JDBC中的内存泄漏
我正在使用MySQL连接器最新版本的Springboot Java应用程序: 8.0.26 ('MySQL-Connector-Java')。
更具体地说,它发生在com.mysql.cj.jdbc.abandonedconnectioncleanupthread.connection-finalizerfinalizerphantomrefs
对象中。
我尝试了一些论坛中已经提到的多种方法( stackoverflow”> stackoverflow ,mysql社区等)就像手动清洁放弃ConnectionCleanUpthread
线程一样,但根本没有任何作用。
以下是我的实现,在此链接:
public static void closeAbandonedConnectionCleanupThread() {
try {
AbandonedConnectionCleanupThread.checkedShutdown();
} catch (Exception e) {
log.error("Exception while cleaning up MySql thread: " + e.getMessage());
}
}
以下是堆积分析,用于参考,
任何帮助都将不胜感激。
I'm using springBoot Java application with MySql connector latest version: 8.0.26 ('mysql-connector-java').
More specifically it's happening in com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.connectionFinalizerPhantomRefs
object.
I tried multiple approaches which is already mentioned in some forums (stackoverflow, mySql community etc) like manually cleaning up the AbandonedConnectionCleanupThread
thread but nothing works at all.
Below is my implementation, mentioned in this link:
public static void closeAbandonedConnectionCleanupThread() {
try {
AbandonedConnectionCleanupThread.checkedShutdown();
} catch (Exception e) {
log.error("Exception while cleaning up MySql thread: " + e.getMessage());
}
}
Below is the heap-dump analysis for reference,
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论