Neo4j意外的线程死亡和Java堆空间

时间:2018-11-16 13:19:49

标签: neo4j graph-databases

嘿,我需要有关此错误的帮助。我的graphdb一直出现故障。 当我对服务器执行ping操作时,得到响应,但是无法从数据库中获取记录。当我检查neo4j.log文件时,发现了这一点:

2018-11-15 11:30:05.106+0000 INFO  ======== Neo4j 3.4.9 ========
2018-11-15 11:30:05.196+0000 INFO  Starting...
2018-11-15 11:30:09.036+0000 INFO  Bolt enabled on 0.0.0.0:7687.
2018-11-15 11:30:11.024+0000 INFO  Started.
2018-11-15 11:30:12.079+0000 INFO  Remote interface available at http://132.148.17.240:7474/
2018-11-15 17:37:32.940+0000 WARN   Java heap space
2018-11-15 17:37:32.955+0000 WARN   Java heap space
2018-11-15 17:37:32.955+0000 WARN  Unexpected thread death: 
2018-11-15 17:37:32.955+0000 WARN   Java heap space
java.lang.OutOfMemoryError: Java heap space
2018-11-15 17:37:32.956+0000 WARN  Unexpected thread death: 
2018-11-16 11:14:04.730+0000 INFO  Neo4j Server shutdown initiated by request

这是我的neo4j配置:

GNU nano 2.0.9                                                              File: /etc/neo4j/neo4j.conf

#*****************************************************************
# Neo4j configuration
#
# For more details and a complete list of settings, please see
# https://neo4j.com/docs/operations-manual/current/reference/configuration-settings/
#*****************************************************************

# The name of the database to mount
#dbms.active_database=graph.db


# Java Heap Size: by default the Java heap size is dynamically
# calculated based on available system resources.
# Uncomment these lines to set specific initial and maximum
# heap size.
dbms.memory.heap.initial_size=4G
dbms.memory.heap.max_size=12G

# The amount of memory to use for mapping the store files, in bytes (or
# kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g').
# If Neo4j is running on a dedicated server, then it is generally recommended
# to leave about 2-4 gigabytes for the operating system, give the JVM enough
# heap to hold all your transaction state and query context, and then leave the
# rest for the page cache.
# The default page cache memory assumes the machine is dedicated to running
# Neo4j, and is heuristically set to 50% of RAM minus the max Java heap size.
dbms.memory.pagecache.size=10g

非常感谢你们。

0 个答案:

没有答案