Hi,
I am getting the below OutOfMemoryError after I have migrated from objectdb 1.0 to 2.0
The application works fine with only 256MB heap size with objectdb 1.0
But on 2.0 even with max heap size of 1024MB, I get this error.
The application reads xml file of around 1GB and creates a new odb file and inserts 200 records at a time.
The transaction obtained from the PersistentManager is commited after persisting 200 records and then the same transaction object from the same PersistentManager is used to begin the transaction.
With objectdb 2.x do we need to close the PersistentManager after every commit or how do I resolve this issue. Please help?
================================================
java.lang.OutOfMemoryError cannot be cast to java.lang.RuntimeException at com.objectdb.o.JDE.f(JDE.java:50) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1504) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:279) at com.anritsu.eu.database.DatabaseImplementation.storeItem(Unknown Source) at com.anritsu.eu.database.DatabaseMessageStorer.newItemParsed(Unknown Source) at com.anritsu.eu.datalogger.parsing.RedactorMap.notifyRedactors(Unknown Source) at com.anritsu.eu.datalogger.parsing.MessagePrimitiveContentHandler.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at com.anritsu.eu.datalogger.parsing.ParserGroupThreadRunner.run(Unknown Source)