提交 19dedc22 编写于 作者: Z zyyang

[TD-2132]<test>: add memory leak test case

上级 5a7b938b
package com.taosdata.jdbc.cases;
import org.junit.Test;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class AppMemoryLeakTest {
@Test
public void testAppMemoryLeak() {
try {
Class.forName("com.taosdata.jdbc.TSDBDriver");
while (true) {
DriverManager.getConnection("jdbc:TAOS://localhost:6030/?user=root&password=taosdata");
}
} catch (ClassNotFoundException | SQLException e) {
e.printStackTrace();
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册