ClickHouse / ClickHouse/clickhouse-java

addBatch method cause Java heap memory char array grows too fast

Open
#1,873 9 comments 0 reactions 0 assignees View on GitHub
jdbc-v1 jdbc-v2 question
Dominant language
Java
Stars
1.6k
Forks
636
Avg merge
2d 16h
Merged PRs (30d)
28

Description

![image](https://github.com/user-attachments/assets/9efdb491-cc4e-4335-8f40-499ae355fa72)
The scenario involves a large number of calls to the addBatch method, Then use jmap to view heap memory,has lots of char[],although they are all unreachable objects that can be GC dropped.But it will lead to frequent GC and high CPU usage. How to solve it

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.