Noe4j:没有足够的内存来执行当前任务

时间:2017-12-05 11:49:26

标签: performance memory neo4j

当我们向neo4j数据库管理系统查询时,它会抛出错误。

SEVERE: Servlet.service() for servlet [spring] in context with path [/connect_to_code] threw exception [Request processing failed; nested exception is org.neo4j.driver.v1.exceptions.TransientException: There is not enough memory to perform the current task. Please try increasing 'dbms.memory.heap.max_size' in the neo4j configuration (normally in 'conf/neo4j.conf' or, if you you are using Neo4j Desktop, found through the user interface) or if you are running an embedded installation increase the heap by using '-Xmx' command line flag, and then restart the database.] with root cause
org.neo4j.driver.v1.exceptions.TransientException: There is not enough memory to perform the current task. Please try increasing 'dbms.memory.heap.max_size' in the neo4j configuration (normally in 'conf/neo4j.conf' or, if you you are using Neo4j Desktop, found through the user interface) or if you are running an embedded installation increase the heap by using '-Xmx' command line flag, and then restart the database.
    at org.neo4j.driver.internal.net.SocketResponseHandler.handleFailureMessage(SocketResponseHandler.java:79)
    at org.neo4j.driver.internal.messaging.PackStreamMessageFormatV1$Reader.unpackFailureMessage(PackStreamMessageFormatV1.java:457)
    at org.neo4j.driver.internal.messaging.PackStreamMessageFormatV1$Reader.read(PackStreamMessageFormatV1.java:418)
    at org.neo4j.driver.internal.net.SocketClient.receiveOne(SocketClient.java:176)

我已使用以下参数更改了neo4j.conf文件:

dbms.memory.heap.initial_size = 1024G
dbms.memory.heap.max_size= 1024G

仍面临同样的问题。

我们可以做些什么来避免这个错误吗?

我不确定这个堆的分配位置,但我的驱动器可用大小如下: C盘:26.6 GB D盘:67.6 GB RAM:32 GB

1 个答案:

答案 0 :(得分:0)

您的配置显示1024G您可能希望将其更改为1024M而不是G.如果在修复错误后仍然出现错误,请尝试增加堆设置。