Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Increase neo4j startup

I am trying to increase the neo4j statup timeout but I didn't find the configuration to do so. I increased the timeout in neo4j daemon but it didn't change the startup timeout. Mt graph is very large(140GB) and 120 second is probably is not enough.

I have neo4j 2.1.7 installed on Ubuntu 12.04

Error:

../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.
like image 618
user4594156 Avatar asked Nov 20 '25 00:11

user4594156


2 Answers

Did you have a crash before so that it has to check for recovery?

Did you check the logs as it states? Best data/graph.db/messages.log and data/logs/neo4j.log

You can also start neo4j console then it will run in foreground mode and take as long as it takes.

like image 153
Michael Hunger Avatar answered Nov 22 '25 17:11

Michael Hunger


I added org.neo4j.server.startup_timeout=0 to the file below and it did it. I start neo4j and after 20 minutes, it recovered and start.

neo4j-server.properties
like image 42
user4594156 Avatar answered Nov 22 '25 18:11

user4594156



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!