增加neo4j启动速度

3
我正在尝试增加neo4j的启动超时时间,但是我没有找到相应的配置。我在neo4j的守护进程中增加了超时时间,但启动超时时间并没有改变。我的图非常大(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个回答

2

之前有崩溃的情况吗,导致需要进行恢复检查?

你是否按照提示检查了日志文件?最佳选择是 data/graph.db/messages.logdata/logs/neo4j.log

你也可以启动 neo4j console,这样它将在前台模式下运行,需要多长时间就多长时间。


我尝试了neo4j控制台,但它的行为方式相同,并在120秒后出现错误而自动关闭:./neo4j console 启动Neo4j服务器控制台模式... 使用额外的JVM参数:....... 2015-02-22 22:34:42.186+0000 INFO [API] 根据-1将启动超时设置为:120000ms2015-02-22 22:36:42.295+0000 INFO [AP成功关闭Neo4j服务器。 - user4594156

2

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

neo4j-server.properties

奇怪,我尝试了其他策略,如增加限制、启动-无等待,但这个方法起作用了。此外,我想指出,即使将此技巧与以root用户身份启动neo4j相结合也可以工作。谢谢。 - Swapnil Sawant

0

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


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接