Hi Luca, The JVM had 2.8 GB of heap allocated and it was using about 2.0 GB at the time the exception occurred.
On Tuesday, February 3, 2015 at 6:38:40 PM UTC-5, Lvc@ wrote: > > How much heap had the JVM? > > Lvc@ > > On 3 February 2015 at 23:22, Odysseas <[email protected] <javascript:>> > wrote: > >> Following up on my question, there is physical memory available on the >> system when the exception is thrown. I am now suspecting that direct memory >> needs swap space backing for it to be allocated, so is the possible lack of >> swap space causing the OOM exceptions? >> >> On Tuesday, February 3, 2015 at 4:02:57 PM UTC-5, Odysseas wrote: >>> >>> We are working with OrientDB 2.0.1 and after loading a large number of >>> records, we create indexes and run into the following exception. Do you >>> have any suggestions on what we need to tune to get past the error? >>> >>> Thanks. >>> >>> SEVERE: {db=person-db} Exception during index rebuild. Exception was >>> caused by following key/ value pair - key Jayden, value #11:104588. Rebuild >>> will continue from this point. >>> com.orientechnologies.orient.core.index.OIndexException: Error during >>> insertion of key in index >>> at com.orientechnologies.orient.core.index.OIndexMultiValues. >>> put(OIndexMultiValues.java:141) >>> at com.orientechnologies.orient.core.index.OIndexMultiValues. >>> put(OIndexMultiValues.java:1) >>> at com.orientechnologies.orient.core.index.OIndexAbstract. >>> populateIndex(OIndexAbstract.java:853) >>> at com.orientechnologies.orient.core.index.OIndexAbstract. >>> indexCluster(OIndexAbstract.java:920) >>> at com.orientechnologies.orient.core.index.OIndexAbstract. >>> rebuild(OIndexAbstract.java:392) >>> at com.orientechnologies.orient.core.index.OIndexAbstract. >>> create(OIndexAbstract.java:225) >>> at com.orientechnologies.orient.core.index.OIndexMultiValues. >>> create(OIndexMultiValues.java:284) >>> at com.orientechnologies.orient.core.index.OIndexMultiValues. >>> create(OIndexMultiValues.java:1) >>> at com.orientechnologies.orient.core.index.OIndexManagerShared. >>> createIndex(OIndexManagerShared.java:169) >>> at com.orientechnologies.orient.core.index.OIndexManagerProxy. >>> createIndex(OIndexManagerProxy.java:79) >>> at com.orientechnologies.orient.core.metadata.schema. >>> OClassImpl.createIndex(OClassImpl.java:1434) >>> at com.orientechnologies.orient.core.sql.OCommandExecutorSQLCreateIndex >>> .execute(OCommandExecutorSQLCreateIndex.java:252) >>> at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate. >>> execute(OCommandExecutorSQLDelegate.java:64) >>> at com.orientechnologies.orient.core.storage.impl.local. >>> OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage. >>> java:1176) >>> at com.orientechnologies.orient.core.storage.impl.local. >>> OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1165) >>> at com.orientechnologies.orient.core.command. >>> OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:63) >>> at com.tinkerpop.blueprints.impls.orient.OrientGraphCommand.execute( >>> OrientGraphCommand.java:48) >>> at org.openhie.openempi.entity.dao.orientdb.SchemaManagerAbstract. >>> createIndex(SchemaManagerAbstract.java:435) >>> at org.openhie.openempi.entity.dao.orientdb.SchemaManagerAbstract. >>> createIndexPerAttribute(SchemaManagerAbstract.java:393) >>> at org.openhie.openempi.entity.dao.orientdb.SchemaManagerAbstract. >>> createIndexes(SchemaManagerAbstract.java:340) >>> at org.openhie.openempi.entity.dao.orientdb.SchemaManagerAbstract. >>> createIndexes(SchemaManagerAbstract.java:323) >>> at org.openhie.openempi.entity.dao.orientdb.IntentMassiveInsertImpl.end( >>> IntentMassiveInsertImpl.java:70) >>> at org.openhie.openempi.entity.dao.orientdb.EntityDaoOrientdb. >>> declareIntent(EntityDaoOrientdb.java:97) >>> at org.openhie.openempi.entity.impl.RecordManagerServiceImpl. >>> declareIntent(RecordManagerServiceImpl.java:692) >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>> at sun.reflect.NativeMethodAccessorImpl.invoke( >>> NativeMethodAccessorImpl.java:57) >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke( >>> DelegatingMethodAccessorImpl.java:43) >>> at java.lang.reflect.Method.invoke(Method.java:601) >>> at org.springframework.aop.support.AopUtils. >>> invokeJoinpointUsingReflection(AopUtils.java:318) >>> at org.springframework.aop.framework.JdkDynamicAopProxy. >>> invoke(JdkDynamicAopProxy.java:196) >>> at com.sun.proxy.$Proxy38.declareIntent(Unknown Source) >>> at org.openhie.openempi.loader.SpringEntityLoaderManager. >>> shutdownConnection(SpringEntityLoaderManager.java:107) >>> at org.openhie.openempi.loader.FileLoaderManager.shutdown( >>> FileLoaderManager.java:159) >>> at org.openhie.openempi.loader.FileLoaderManager.main( >>> FileLoaderManager.java:149) >>> Caused by: >>> com.orientechnologies.orient.core.index.sbtree.local.OSBTreeException: >>> Error during index update with key #11:104588 and value true >>> at com.orientechnologies.orient.core.index.sbtreebonsai.local. >>> OSBTreeBonsaiLocal.put(OSBTreeBonsaiLocal.java:312) >>> at com.orientechnologies.orient.core.db.record.ridbag.sbtree. >>> OIndexRIDContainerSBTree.add(OIndexRIDContainerSBTree.java:135) >>> at com.orientechnologies.orient.core.db.record.ridbag.sbtree. >>> OIndexRIDContainerSBTree.add(OIndexRIDContainerSBTree.java:1) >>> at com.orientechnologies.orient.core.db.record.ridbag.sbtree. >>> OIndexRIDContainer.add(OIndexRIDContainer.java:125) >>> at com.orientechnologies.orient.core.db.record.ridbag.sbtree. >>> OIndexRIDContainer.add(OIndexRIDContainer.java:1) >>> at com.orientechnologies.orient.core.index.OIndexMultiValues. >>> put(OIndexMultiValues.java:133) >>> ... 33 more >>> Caused by: java.lang.OutOfMemoryError >>> at sun.misc.Unsafe.allocateMemory(Native Method) >>> at com.orientechnologies.common.directmemory.OUnsafeMemory. >>> allocate(OUnsafeMemory.java:85) >>> at com.orientechnologies.common.directmemory. >>> ODirectMemoryPointer.<init>(ODirectMemoryPointer.java:70) >>> at com.orientechnologies.orient.core.index.hashindex.local. >>> cache.OWOWCache.cacheFileContent(OWOWCache.java:918) >>> at com.orientechnologies.orient.core.index.hashindex.local. >>> cache.OWOWCache.load(OWOWCache.java:417) >>> at com.orientechnologies.orient.core.index.hashindex.local. >>> cache.OReadWriteDiskCache.updateCache(OReadWriteDiskCache.java:676) >>> at com.orientechnologies.orient.core.index.hashindex.local. >>> cache.OReadWriteDiskCache.doLoad(OReadWriteDiskCache.java:302) >>> at com.orientechnologies.orient.core.index.hashindex.local. >>> cache.OReadWriteDiskCache.allocateNewPage(OReadWriteDiskCache.java:331) >>> at com.orientechnologies.orient.core.index.sbtreebonsai.local. >>> OSBTreeBonsaiLocal.allocateBucket(OSBTreeBonsaiLocal.java:1275) >>> at com.orientechnologies.orient.core.index.sbtreebonsai.local. >>> OSBTreeBonsaiLocal.splitBucket(OSBTreeBonsaiLocal.java:1029) >>> at com.orientechnologies.orient.core.index.sbtreebonsai.local. >>> OSBTreeBonsaiLocal.put(OSBTreeBonsaiLocal.java:287) >>> ... 38 more >>> >>> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
