TDengine
TDengine copied to clipboard
Java Connector handle leaked
client采用2.4.0.30 TDengine-client-2.4.0.30-Windows-x64.exe
java driver采用compile "com.taosdata.jdbc:taos-jdbcdriver:2.0.40"
使用原生方式时程序有严重的句柄泄露
使用restful的方式时句柄数正常
数据库建表语句
create database if not exists iot5 keep 3650 days 10 update 2 cachelast 3 precision 'us';
create stable if not exists iot5.event
(
ts
TIMESTAMP,
id
BINARY(32),
deviceName
NCHAR(128)
)
tags
(
deviceId
bigint
);
附件为测试代码
已复现此问题,但 windows 的句柄数增加 表示什么含义以及解决方式需要进一步研究。
不只winodws 在linux上应该也存在,句柄泄露数过多会导致应用程序访问不了
linux 上的表现是什么呢?