Skip to content

OutOfMemory occurs on many OdfTable creations. #176

@juniair

Description

@juniair

I'm using this library to batch create reports on a system I'm developing. Meanwhile, an OOM issue occurred while writing the report. The report that OOM occurred was a report that required more than 1 billion tables.

This problem occurs in the following situations:

Case 1. OOM occurs when more than 1 billion tables are created for one document
Case 2. OOM occurs when storing more than 1 billion tables in multiple documents

When I checked the JVM dump, it was confirmed that mTableRepository in OdfTable uses about 90% of memory.

image

When I checked the source code to figure out the cause of this problem, mTableRepository was designated as static.

Currently, the system I am using is compatible up to JDK 1.8, so only OdfToolKit version 0.9.0 can be used.
What should I do to solve this problem?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions