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.