strongduanmu commented on issue #28069:
URL:
https://github.com/apache/shardingsphere/issues/28069#issuecomment-1683656889
> Thanks for your feedback. I've confirmed the memory leak in
ShardingSphere-JDBC.
>
> Running test with `-Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError`
>
> ```java
> @Test
> void select1() throws SQLException {
> for (int i = 0; i < 10000000; i++) {
> try (Connection connection =
getShardingSphereDataSource().getConnection(); Statement statement =
connection.createStatement()) {
> statement.execute("select 1");
> }
> }
> }
> ```
I do some test according to this unit test, now the latest master has solved
MySQL JDBC memory leak. @sunlife95 Can you help test again?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]