Home » Support » Forum » OutOfMemoryError, if close the entity manager

OutOfMemoryError, if close the entity manager

#1

Hello,

why this error occurs during close the entity manager?

 

Caused by: java.lang.OutOfMemoryError: Java heap space
at com.objectdb.o.PageCacheFile.m(PageCacheFile.java:173) ~[na:na]
at com.objectdb.o.PAG.N(PAG.java:498) ~[na:na]
at com.objectdb.o.PAG.y(PAG.java:282) ~[na:na]
at com.objectdb.o.SNP.n(SNP.java:144) ~[na:na]
at com.objectdb.o.SFL.ac(SFL.java:850) ~[na:na]
at com.objectdb.o.MST.Vd(MST.java:1891) ~[na:na]
at com.objectdb.o.MST.Vc(MST.java:1320) ~[na:na]
at com.objectdb.o.WRA.Vc(WRA.java:353) ~[na:na]
at com.objectdb.o.OBM.bW(OBM.java:1132) ~[na:na]
at com.objectdb.o.OBM.close(OBM.java:208) ~[na:na]
at com.btc.ep.base.transactions.internal.TransactionManagerImpl.lambda$4(TransactionManagerImpl.java:401) ~[na:na]
at com.btc.ep.base.transactions.internal.TransactionManagerImpl$$Lambda$142/22376460.accept(Unknown Source) ~[na:na]
at java.util.Optional.ifPresent(Unknown Source) ~[na:1.8.0_51]
at com.btc.ep.base.transactions.internal.TransactionManagerImpl.doClose(TransactionManagerImpl.java:401) ~[na:na]
at com.btc.ep.base.transactions.internal.TransactionManagerImpl.close(TransactionManagerImpl.java:386) ~[na:na]
#2

The exception was thrown during closing of the database when there were pending database transactions to apply, and data had to be moved from a temporary file to main memory.

The exception is not related particularly to closing an EntityManager but to applying pending changes to the database when there is insufficient free JVM heap space.

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

Post Reply

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