Home » Support » Forum » ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

#1

Hello,

we've encountered a problem leading to memory leaks. We found that after closing a transaction (including the entity manager) the ODB file writer still holds a reference to entities. Performing similar calls repeatedly hence increases the number of references to entities not longer needed in the application context. This prevents the garbage collector from cleaning up the memory which eventually results in memory leaks.

The attached screenshot shows an example of this behaviour.

Thanks in advance for your help.

Best wishes,

The BTC-ES Team

#2

Please verify that all your classes are enhanced.

The screenshot indicates using some entity objects (MappingImpl?) in reflection mode.

Reflection mode has some limitations and is generally not recommended.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

Thank you very much for your hint. If we enhance all entities then it works.


Post Reply

To post a reply and/or subscribe to update notifications - please login