我试图增加neo4j状态超时,但我找不到这样做的配置。我在neo4j守护进程中增加了超时,但它没有改变启动超时。Mt图非常大(140GB),120秒可能不够。
我在Ubuntu 12.04 上安装了neo4j 2.1.7
错误:
../bin/neo4j start
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow
Starting Neo4j Server...process [7886]... waiting for server to be ready...2015-02-22 16:54:10.044+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-02-22 16:54:10.044+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
......................................................................................................................2015-02-22 16:56:11.610+0000 INFO [API] Successfully shutdown Neo4j Server.
2015-02-22 16:56:11.610+0000 INFO [API] Successfully shutdown Neo4j Server.
Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
您之前是否发生过崩溃,因此必须检查恢复情况?
你检查日志了吗?最佳data/graph.db/messages.log
和data/logs/neo4j.log
您也可以启动neo4j console
,然后它将在前台模式下运行,并需要尽可能长的时间。
我在下面的文件中添加了org.neo4j.server.startup_timeout=0
,它做到了。我启动neo4j,20分钟后,它恢复并启动。
neo4j-server.properties
如果您不想更改配置,也可以使用neo4j start-no-wait
而不是neo4j start
。