Skip to content

Commit

Permalink
[fix](jdbc catalog) Fixed FE memory leak by enabling weak references …
Browse files Browse the repository at this point in the history
…in HikariCP (#40773) (#41503)

bp #40773

Co-authored-by: zy-kkk <zhongyk10@gmail.com>
  • Loading branch information
morningman and zy-kkk authored Sep 30, 2024
1 parent 222c46c commit 009115c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public static JdbcClient createJdbcClient(JdbcClientConfig jdbcClientConfig) {
}

protected JdbcClient(JdbcClientConfig jdbcClientConfig) {
System.setProperty("com.zaxxer.hikari.useWeakReferences", "true");
this.catalogName = jdbcClientConfig.getCatalog();
this.jdbcUser = jdbcClientConfig.getUser();
this.isOnlySpecifiedDatabase = Boolean.parseBoolean(jdbcClientConfig.getOnlySpecifiedDatabase());
Expand Down

0 comments on commit 009115c

Please sign in to comment.