105 words

Issue #305 - OutOfMemoryError, if close the entity manager

BugVersion: 2.7.1Priority: CriticalStatus: ClosedReplies: 1
#1
2017-08-07 09:40

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]
btc_es
btc_es's picture
Joined on 2014-10-20
User Post #195
#2
2017-08-07 15:33

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)
support
support's picture
Joined on 2010-05-03
User Post #2,791

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel