如何修复org.neo4j.internal.unsafe.NativeMemoryAllocationRefusedError?

hts6caw3  于 12个月前  发布在  其他
关注(0)|答案(1)|浏览(94)

我很乐意为您提供有关以下问题的帮助。我需要创建一个neo4j图出的话的文件。它总是工作正常的1000个文件,但3000个文件,我得到这个内存错误。我已经用-Xmx 4096 m增加了堆大小,但这并没有解决问题。我将感谢任何对这个问题的答案。

Exception in thread "main" org.neo4j.internal.unsafe.NativeMemoryAllocationRefusedError: Failed to allocate 524288 bytes. So far 36235008 bytes have already been successfully allocated. The system currently has 16930299904 bytes total physical memory, 57805078528 bytes committed virtual memory, and 570298368 bytes free physical memory. Relevant system properties: "java.vm.name" = "OpenJDK 64-Bit Server VM", "java.vm.vendor" = "OpenLogic", "os.arch" = "amd64".
    at org.neo4j.internal.unsafe.UnsafeUtil.allocateMemory(UnsafeUtil.java:444)
    at org.neo4j.io.mem.GrabAllocator$Grab.<init>(GrabAllocator.java:90)
    at org.neo4j.io.mem.GrabAllocator$Grabs.allocateAligned(GrabAllocator.java:244)
    at org.neo4j.io.mem.GrabAllocator.allocateAligned(GrabAllocator.java:70)
    at org.neo4j.io.pagecache.impl.muninn.PageList.initBuffer(PageList.java:299)
    at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.pageFault(MuninnPageCursor.java:419)
    at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.uncommonPin(MuninnPageCursor.java:369)
    at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.pin(MuninnPageCursor.java:337)
    at org.neo4j.io.pagecache.impl.muninn.MuninnReadPageCursor.next(MuninnReadPageCursor.java:63)
    at org.neo4j.io.pagecache.impl.muninn.MuninnPageCursor.next(MuninnPageCursor.java:160)
    at org.neo4j.kernel.impl.store.CommonAbstractStore.readIntoRecord(CommonAbstractStore.java:885)
    at org.neo4j.kernel.impl.store.CommonAbstractStore.getRecordByCursor(CommonAbstractStore.java:869)
    at org.neo4j.internal.recordstorage.RecordPropertyCursor.property(RecordPropertyCursor.java:439)
    at org.neo4j.internal.recordstorage.RecordPropertyCursor.next(RecordPropertyCursor.java:160)
    at org.neo4j.kernel.impl.newapi.DefaultPropertyCursor.next(DefaultPropertyCursor.java:163)
    at org.neo4j.kernel.impl.newapi.DefaultPropertyCursor.seekProperty(DefaultPropertyCursor.java:235)
    at org.neo4j.kernel.impl.core.NodeEntity.getProperty(NodeEntity.java:439)
    at core.Cooccs.addSentenceToCooccsDB(Cooccs.java:661)
    at core.Cooccs.<init>(Cooccs.java:577)
    at core.TextProcessing.createDB(TextProcessing.java:386)
    at core.TextProcessing.main(TextProcessing.java:1085)
hyrbngr7

hyrbngr71#

您可以使用MySQL来减少单个事务的内存需求。
您可以使用CALL子查询或APOC过程对批处理事务进行查询。

相关问题