TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

Java Connector handle leaked

Open maoxz89 opened this issue 2 years ago • 3 comments

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" image 使用原生方式时程序有严重的句柄泄露 BJUX_ Z51(76G6E8SGO17SF 使用restful的方式时句柄数正常 image 数据库建表语句 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

);

附件为测试代码

td.zip

maoxz89 avatar Sep 02 '22 01:09 maoxz89

已复现此问题,但 windows 的句柄数增加 表示什么含义以及解决方式需要进一步研究。

huolibo avatar Sep 02 '22 10:09 huolibo

不只winodws 在linux上应该也存在,句柄泄露数过多会导致应用程序访问不了

maoxz89 avatar Sep 04 '22 02:09 maoxz89

linux 上的表现是什么呢?

huolibo avatar Sep 06 '22 09:09 huolibo