You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clientModule: the client (client-v2; with legacy: the v1 client)connectivityArea: connection, TLS, pool, timeouts, cancellation, transport, compressiondata-typesArea: type names, value encoding and decoding, row mapping, data formatsjdbcModule: the JDBC driver (jdbc-v2; with legacy: the v1 driver)performanceplanned_workWork that is planned for nearest release. Good to take
Recommendation: Keep open — investigation needed
Planned work of epic #3324. The run gives a baseline on main: an idle Client keeps about 0.9 MB of heap, almost all of it connection buffers, and a read allocates about 230 B per row before the caller reads a value.
Status on main: Reproduced on main — each idle Client keeps 911 KB after GC (36 KB with client_network_buffer_size=8192); reading 1,000,000 rows allocates 230–310 B/row.
Breaking change: No — the investigation changes no API.
Analysis:HttpAPIClientHelper.java:286-289 sizes the I/O buffers of each pooled connection with client_network_buffer_size (default 300000, ClientConfigProperties.java:213), and the pool keeps the connection after the first request. On reads, readRecord decodes each column of the row into an object in an Object[] before the caller asks for a value (AbstractBinaryFormatReader.java:186-197); a UInt64 becomes a BigInteger (BinaryStreamReader.java:186-187).
Reproduction: complete program and output
Allocations of the calling thread (ThreadMXBean), and used heap after System.gc().
clientModule: the client (client-v2; with legacy: the v1 client)connectivityArea: connection, TLS, pool, timeouts, cancellation, transport, compressiondata-typesArea: type names, value encoding and decoding, row mapping, data formatsjdbcModule: the JDBC driver (jdbc-v2; with legacy: the v1 driver)performanceplanned_workWork that is planned for nearest release. Good to take
Activity
polyglotAI-bot commentedon Nov 27, 2026
Recommendation: Keep open — investigation needed
Planned work of epic #3324. The run gives a baseline on
main: an idleClientkeeps about 0.9 MB of heap, almost all of it connection buffers, and a read allocates about 230 B per row before the caller reads a value.main: Reproduced on main — each idleClientkeeps 911 KB after GC (36 KB withclient_network_buffer_size=8192); reading 1,000,000 rows allocates 230–310 B/row.Analysis:
HttpAPIClientHelper.java:286-289sizes the I/O buffers of each pooled connection withclient_network_buffer_size(default 300000,ClientConfigProperties.java:213), and the pool keeps the connection after the first request. On reads,readRecorddecodes each column of the row into an object in anObject[]before the caller asks for a value (AbstractBinaryFormatReader.java:186-197); aUInt64becomes aBigInteger(BinaryStreamReader.java:186-187).Reproduction: complete program and output
Allocations of the calling thread (
ThreadMXBean), and used heap afterSystem.gc().Output on
main(8480ca001), ClickHouse 26.11.2.4:Automated triage by Polyglot AI. A maintainer makes the final decision.