增加neo4j启动

时间:2015-02-22 17:09:12

标签: neo4j timeout startup

我正在尝试增加neo4j statup超时,但我没有找到配置来执行此操作。我增加了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.

3 个答案:

答案 0 :(得分:2)

您之前是否遇到过崩溃,以至于必须检查恢复情况?

您是否按照其说明检查了日志?最佳data/graph.db/messages.logdata/logs/neo4j.log

您也可以启动neo4j console然后它将以前台模式运行并按照需要的时间运行。

答案 1 :(得分:2)

我在下面的文件中添加了org.neo4j.server.startup_timeout=0并完成了它。我开始neo4j,20分钟后,它恢复并开始。

neo4j-server.properties

答案 2 :(得分:0)

如果您不想进行配置更改,也可以使用neo4j start-no-wait代替neo4j start