Skip to content

Memory leak in case of in-memory database #3633

@wburzyns

Description

@wburzyns

Hello,

Unfortunately in case of in-memory databases there seems to be a nasty memory leak. The leak is not present in case of on-disk databases.

According to Eclipse MAT:
One instance of "org.h2.mvstore.tx.TransactionStore$TxMapBuilder$TMVMap" occupies 1 493 666 840 (81,97%) bytes. The memory is accumulated in one instance of "org.h2.mvstore.RootReference".

This is 100% reproducible. The memory is not freed even after the in-mem database is closed, all references to it are nullified and the garbage collector is invoked manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions