2.0.206 Memory leak when AUTO_COMPACT_FILL_RATE=0 and REUSE_SPACE=false

96 views
Skip to first unread message

Chin Wei Low

unread,
Jan 16, 2022, 12:55:16 PM1/16/22
to H2 Database
Hi,

I am running H2 db with AUTO_COMPACT_FILL_RATE=0 and REUSE_SPACE=false in a long running process that will keep inserting some records to multiple tables and the heap memory keep increasing. I manually invoke GC and dump the heap and notice that chunksToC within MVStore is using a lot of memory.

Regards,
Chin Wei

Andrei Tokar

unread,
Jan 18, 2022, 8:50:51 PM1/18/22
to H2 Database
This is exactly behaviour, I would expect, if you explicitely disable any space reuse. I wonder what was the size of the database file and how it's growth correlates with heap size increase?
Reply all
Reply to author
Forward
0 new messages