housepower / ClickHouse-Native-JDBC

ClickHouse Native Protocol JDBC implementation
https://housepower.github.io/ClickHouse-Native-JDBC/
Apache License 2.0
527 stars 145 forks source link

多线程写入数据的时候会频繁触发GC #433

Open tongle1 opened 1 year ago

tongle1 commented 1 year ago

Environment

Error logs

使用多线程写入clickhouse,每次都是新建连接,写数据到block,insertrequest,block.initWriteBuffer(),block.cleanup();CKConnection.close();观察客户端内存会一直增加,然后触发fullGC,写入效率受影响,请问有什么方法解决吗?

paste your error logs here

Steps to reproduce

Other descriptions