Skip to content

[BUG] Memory leak in kitodo:reindex CLI job #1165

@stweil

Description

@stweil

Description

Running the reindex jobs works with a small number of documents or very much memory, but fails with out of memory for huge collections. While the job is running, the used memory continuously grows. 10 GB of memory is not sufficient for less than 3000 documents.

Reproduction

Just run the CLI job and watch how the memory usage grows.

Expected Behavior

There is no reason why the required memory should grow with the number of indexed documents.
As soon as a document was indexed, there is no longer a need to store its metadata in RAM.

Environment

Additional Context

See also issue #822. The fix added there obviously no longer works.

Metadata

Metadata

Labels

☇ bugA non-security related bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions