Problems restarting neo4j 1.7 server - neo4j

I am trying to restart my Neo4j instance and see no errors in either my messages.log or console.log.
I do see recovery notices in messages, however my start script always returns:
waiting for server to be ready............................................... BAD
console.log:
9/12/12 6:37:48 PM org.neo4j.server.NeoServerWithEmbeddedWebServer INFO: Starting Neo Server on port [7474] with [20] threads available
9/12/12 6:37:48 PM org.neo4j.server.NeoServerWithEmbeddedWebServer INFO: Enabling HTTPS on port [7473]
9/12/12 6:37:48 PM org.neo4j.server.database.Database INFO: Using database at /db/data
messages.log:
2012-09-12 18:37:49.059+0000: Non clean shutdown detected on log [/srv/neo4j/graphdb/data/nioneo_logical.log.1]. Recovery started ...
2012-09-12 18:37:49.067+0000: [/srv/neo4j/graphdb/data/nioneo_logical.log.1] logVersion=244 with committed tx=18015029
2012-09-12 18:37:55.391+0000: [/srv/neo4j/graphdb/data/nioneo_logical.log.1] entries found=203005 lastEntryPos=8387712
2012-09-12 18:37:55.391+0000: Internal recovery completed, scanned 203005 log entries. Recovered 23260 transactions. Last tx recovered: 18038289
2012-09-12 18:37:55.392+0000: XaResourceManager[/srv/neo4j/graphdb/data/nioneo_logical.log] sorting 0 xids
2012-09-12 18:37:55.393+0000: XaResourceManager[/srv/neo4j/graphdb/data/nioneo_logical.log] checkRecoveryComplete 0 xids
2012-09-12 18:37:58.033+0000: /srv/neo4j/graphdb/data/neostore.relationshiptypestore.db.names rebuild id generator, highId=4 defragged count=0
2012-09-12 18:37:58.053+0000: /srv/neo4j/graphdb/data/neostore.propertystore.db.index.keys rebuild id generator, highId=7 defragged count=0
2012-09-12 18:37:58.069+0000: /srv/neo4j/graphdb/data/neostore.propertystore.db.index rebuild id generator, highId=6 defragged count=0
2012-09-12 18:37:58.096+0000: /srv/neo4j/graphdb/data/neostore.propertystore.db.strings rebuild id generator, highId=16265 defragged count=0
2012-09-12 18:37:58.108+0000: /srv/neo4j/graphdb/data/neostore.propertystore.db.arrays rebuild id generator, highId=1 defragged count=0
2012-09-12 18:37:58.507+0000: /srv/neo4j/graphdb/data/neostore.propertystore.db rebuild id generator, highId=3052890 defragged count=0
2012-09-12 18:37:58.903+0000: /srv/neo4j/graphdb/data/neostore.relationshipstore.db rebuild id generator, highId=9188555 defragged count=0
2012-09-12 18:37:58.929+0000: /srv/neo4j/graphdb/data/neostore.nodestore.db rebuild id generator, highId=1183312 defragged count=0
2012-09-12 18:37:58.942+0000: /srv/neo4j/graphdb/data/neostore rebuild id generator, highId=6 defragged count=0
2012-09-12 18:37:58.946+0000: XaResourceManager[/srv/neo4j/graphdb/data/nioneo_logical.log] recovery completed.
2012-09-12 18:37:58.946+0000: Recovery on log [/srv/neo4j/graphdb/data/nioneo_logical.log.1] completed.
2012-09-12 18:37:58.962+0000: TM opening log: /srv/neo4j/graphdb/data/tm_tx_log.1
2012-09-12 18:37:58.994+0000: Non clean shutdown detected on log [/srv/neo4j/graphdb/data/index/lucene.log.2]. Recovery started ...
2012-09-12 18:37:58.994+0000: [/srv/neo4j/graphdb/data/index/lucene.log.2] logVersion=99 with committed tx=10257784

Recovery of lucene takes too long. Please use bin/neo4j console to start it once in foreground mode to finish the recovery.

Related

Neo4j.conf restart issue: ExitOnOutOfMemoryError

When using neo4j-admin memrec there is a recommendation to activate the following in the neo4j.conf file:
dbms.jvm.additional=-XX:+ExitOnOutOfMemoryError
However if I add the line in, I am unable to restart the neo4j service at all. If I check the debug log the service does not even begin to startup. Is there an error in that particular suggested config line that prevents the service from starting before it has even checked anything else?
:~$ sudo service neo4j restart
:~$ tail -f /var/log/neo4j/debug.log
2022-01-24 14:49:26.937+0000 INFO [o.n.d.d.DefaultDatabaseManager] Stopped 'DatabaseId{21dafb04[neo4j]}' successfully.
2022-01-24 14:49:26.937+0000 INFO [o.n.d.d.DefaultDatabaseManager] Stopping 'DatabaseId{00000000[system]}'.
2022-01-24 14:49:26.938+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] [system/00000000] Requirement `Database unavailable` makes database system unavailable.
2022-01-24 14:49:26.938+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] [system/00000000] DatabaseId{00000000[system]} is unavailable.
2022-01-24 14:49:26.939+0000 INFO [o.n.k.d.Database] [system/00000000] Waiting for closing transactions.
2022-01-24 14:49:26.940+0000 INFO [o.n.k.d.Database] [system/00000000] All transactions are closed.
2022-01-24 14:49:26.940+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] [system/00000000] Checkpoint triggered by "Database shutdown" # txId: 71 checkpoint started. ..
2022-01-24 14:49:26.956+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] [system/00000000] Checkpoint triggered by "Database shutdown" # txId: 71 checkpoint completed in 15ms
2022-01-24 14:49:26.956+0000 INFO [o.n.k.i.t.l.p.LogPruningImpl] [system/00000000] No log version pruned. The strategy used was '1 days'.
2022-01-24 14:49:26.974+0000 INFO [o.n.d.d.DefaultDatabaseManager] Stopped 'DatabaseId{00000000[system]}' successfully.

Unable to start neo4j with systemctl: 'Failed to load from plugin jar'

I've been trying to restart neo4j after adding new data on an EC2 instance. I stopped the neo4j instance, then I called systemctl start neo4j, but when I call cypher-shell it says Connection refused, and connection to the browser port doesn't work anymore.
In the beginning I assumed it was a heap space problem, since looking at the debug.log it said there was a memory issue. I adjusted the heap space and cache settings in neo4j.conf as recommended by neo4j-admin memrec, but still neo4j won't start.
Then I assumed it was because my APOC package was outdated. My neo4j version is 3.5.6, but APOC is 3.5.0.3. I download the latest 3.5.0.4 version, but still neo4j won't start.
At last I tried chmod 777 on every file in the data/database and plugin directories and the directories themselves, but still neo4j won't start.
What's strange is when I try neo4j console for all of these attempts, both cypher-shell and the neo4j browser port works just fine. However, obviously I would prefer to be able to launch neo4j with systemctl.
Right now the only hint of error I can find in debug.log is the following:
2019-06-19 21:19:55.508+0000 INFO [o.n.i.d.DiagnosticsManager] Storage summary:
2019-06-19 21:19:55.508+0000 INFO [o.n.i.d.DiagnosticsManager] Total size of store: 3.07 GB
2019-06-19 21:19:55.509+0000 INFO [o.n.i.d.DiagnosticsManager] Total size of mapped files: 3.07 GB
2019-06-19 21:19:55.509+0000 INFO [o.n.i.d.DiagnosticsManager] --- STARTED diagnostics for KernelDiagnostics:StoreFiles
END ---
2019-06-19 21:19:55.509+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] Fulfilling of requirement 'Database available' mak
es database available.
2019-06-19 21:19:55.509+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] Database is ready.
2019-06-19 21:19:55.568+0000 INFO [o.n.k.i.DatabaseHealth] Database health set to OK
2019-06-19 21:19:56.198+0000 WARN [o.n.k.i.p.Procedures] Failed to load `apoc.util.s3.S3URLConnection` from plugin jar `
/var/lib/neo4j/plugins/apoc-3.5.0.4-all.jar`: com/amazonaws/ClientConfiguration
2019-06-19 21:19:56.199+0000 WARN [o.n.k.i.p.Procedures] Failed to load `apoc.util.s3.S3Aws` from plugin jar `/var/lib/n
eo4j/plugins/apoc-3.5.0.4-all.jar`: com/amazonaws/auth/AWSCredentials
2019-06-19 21:19:56.200+0000 WARN [o.n.k.i.p.Procedures] Failed to load `apoc.util.s3.S3Aws$1` from plugin jar `/var/lib
/neo4j/plugins/apoc-3.5.0.4-all.jar`: com/amazonaws/services/s3/model/S3ObjectInputStream
2019-06-19 21:19:56.207+0000 WARN [o.n.k.i.p.Procedures] Failed to load `apoc.util.hdfs.HDFSUtils$1` from plugin jar `/v
ar/lib/neo4j/plugins/apoc-3.5.0.4-all.jar`: org/apache/hadoop/fs/FSDataInputStream
2019-06-19 21:19:56.208+0000 WARN [o.n.k.i.p.Procedures] Failed to load `apoc.util.hdfs.HDFSUtils` from plugin jar `/var
/lib/neo4j/plugins/apoc-3.5.0.4-all.jar`: org/apache/hadoop/fs/FSDataOutputStream
...
...
...
2019-06-19 21:20:00.678+0000 INFO [o.n.g.f.GraphDatabaseFacadeFactory] Shutting down database.
2019-06-19 21:20:00.679+0000 INFO [o.n.g.f.GraphDatabaseFacadeFactory] Shutdown started
2019-06-19 21:20:00.679+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] Database is unavailable.
2019-06-19 21:20:00.684+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Checkpoint triggered by "Database shutdown" # txId: 1
checkpoint started...
2019-06-19 21:20:00.704+0000 INFO [o.n.k.i.t.l.c.CheckPointerImpl] Checkpoint triggered by "Database shutdown" # txId: 1
checkpoint completed in 20ms
2019-06-19 21:20:00.705+0000 INFO [o.n.k.i.t.l.p.LogPruningImpl] No log version pruned, last checkpoint was made in vers
ion 0
2019-06-19 21:20:00.725+0000 INFO [o.n.i.d.DiagnosticsManager] --- STOPPING diagnostics START ---
2019-06-19 21:20:00.725+0000 INFO [o.n.i.d.DiagnosticsManager] --- STOPPING diagnostics END ---
2019-06-19 21:20:00.725+0000 INFO [o.n.g.f.GraphDatabaseFacadeFactory] Shutdown started
2019-06-19 21:20:05.875+0000 INFO [o.n.g.f.m.e.CommunityEditionModule] No locking implementation specified, defaulting
to 'community'
2019-06-19 21:20:06.080+0000 INFO [o.n.g.f.GraphDatabaseFacadeFactory] Creating database.
2019-06-19 21:20:06.154+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] Requirement `Database available` makes database unavailable.
2019-06-19 21:20:06.156+0000 INFO [o.n.k.a.DatabaseAvailabilityGuard] Database is unavailable.
2019-06-19 21:20:06.183+0000 INFO [o.n.i.d.DiagnosticsManager] --- INITIALIZED diagnostics START ---
I think the warning isn't an issue, since it's just a warning and not an error or exception. Also it seems that the database just shuts down automatically, and then restarts, creating an infinite loop. This loop does not happen when I call neo4j console (all the warnings still exist in the logs). All my ports are default.
Any clue why this is happening? I've never encountered this error when I previously launched neo4j on this instance.
If it works with neo4j console but not with systemctl, you should check the rights of the Neo4j folder.
I'm pretty sure you have a problem on it, and that the systemctl doesn't run Neo4j with the same user as you

neo4j failed to start on my machine

I use brew install neo4j, when i'm trying to start on terminal by neo4j start, it keep loading forever as following.
$ 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 -Dneo4j.ext.udc.source=homebrew
-Djava.awt.headless=true Starting Neo4j Server...WARNING: not changing user process [9320]... waiting for server to be ready ........................................................................... ........................................................................... ........................................................................... ......................................................................
Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
I checked some logs from neo4j already ...but it show nothing error
log messgea from /usr/local/Cellar/neo4j/2.1.6/libexec/data/graph.db/messages.log
2015-05-21 06:46:44.248+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/Cellar/neo4j/2.1.6/libexec/data/graph.db/neostore.schemastore.db] brickCount=0 brickSize=0b mappedMem=0b (storeSize=64b)
2015-05-21 06:46:44.248+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/Cellar/neo4j/2.1.6/libexec/data/graph.db/neostore.relationshipgroupstore.db] brickCount=0 brickSize=0b mappedMem=0b (storeSize=25b)
2015-05-21 06:46:44.249+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/Cellar/neo4j/2.1.6/libexec/data/graph.db/neostore] brickCount=0 brickSize=0b mappedMem=0b (storeSize=81b)
2015-05-21 06:46:44.310+0000 INFO [o.n.k.a.i.i.LuceneLabelScanStore]: No lucene scan store index found, this might just be first use. Preparing to rebuild.
2015-05-21 06:46:44.333+0000 INFO [o.n.k.a.i.i.LuceneLabelScanStore]: No lucene scan store index found, this might just be first use. Preparing to rebuild.
2015-05-21 06:46:44.414+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: Opened logical log [/usr/local/Cellar/neo4j/2.1.6/libexec/data/graph.db/nioneo_logical.log.1] version=0, lastTxId=1 (clean)
2015-05-21 06:46:44.417+0000 INFO [o.n.k.a.i.i.LuceneLabelScanStore]: Rebuilding lucene scan store, this may take a while
2015-05-21 06:46:44.418+0000 INFO [o.n.k.a.i.i.LuceneLabelScanStore]: Lucene scan store rebuilt (roughly -1 nodes)
2015-05-21 06:46:44.421+0000 INFO [o.n.k.i.t.TxManager]: TM new log: tm_tx_log.1
2015-05-21 06:46:44.425+0000 INFO [o.n.k.i.t.KernelHealth]: Kernel health set to OK
log message from /usr/local/Cellar/neo4j/2.1.6/libexec/data/log/console.log
2015-05-21 06:46:43.878+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2015-05-21 06:57:03.825+0000 INFO [API] Successfully shutdown Neo4j Server.
I try to use brew to re-install neo4j, but it doesn't help.
i'm using mac machine.
java version /Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin/java
Can you try to run bin/neo4j console to let it finish the startup.
Probably it is creating / updating an index or an internal structure that takes longer than the 120s timeout?
see
2015-05-21 06:46:44.417+0000 INFO [o.n.k.a.i.i.LuceneLabelScanStore]: Rebuilding lucene scan store, this may take a while
2015-05-21 06:46:44.418+0000 INFO [o.n.k.a.i.i.LuceneLabelScanStore]: Lucene scan store rebuilt (roughly -1 nodes)

Neo4J server exception - fails to start

The server had been running fine and dandy but suddenly stopped. Tried restarting but that didn't help. This is what the log says:
2015-02-18 15:07:58.092+0000 INFO [o.n.k.i.DiagnosticsManager]: --- SHUTDOWN diagnostics END ---
2015-02-18 15:07:58.336+0000 ERROR [o.n.s.CommunityBootstrapper]: Failed to start Neo Server on port [7474]
org.neo4j.server.ServerStartupException: Starting Neo4j Server failed: Error starting org.neo4j.kernel.EmbeddedGraphDatabase, /var/lib/neo4j-community-2.1.4/data/graph.db
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:226) ~[neo4j-server-2.1.4.jar:2.1.4]
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:108) [neo4j-server-2.1.4.jar:2.1.4]
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:62) [neo4j-server-2.1.4.jar:2.1.4]
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.EmbeddedGraphDatabase, /var/lib/neo4j-community-2.1.4/data/graph.db
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:366) ~[neo4j-kernel-2.1.4.jar:2.1.4]
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:59) ~[neo4j-kernel-2.1.4.jar:2.1.4]
at org.neo4j.kernel.impl.recovery.StoreRecoverer.recover(StoreRecoverer.java:123) ~[neo4j-kernel-2.1.4.jar:2.1.4]
at org.neo4j.server.preflight.PerformRecoveryIfNecessary.run(PerformRecoveryIfNecessary.java:65) ~[neo4j-server-2.1.4.jar:2.1.4]
at org.neo4j.server.preflight.PreFlightTasks.run(PreFlightTasks.java:71) ~[neo4j-server-2.1.4.jar:2.1.4]
at org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:362) ~[neo4j-server-2.1.4.jar:2.1.4]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:159) ~[neo4j-server-2.1.4.jar:2.1.4]
... 2 common frames omitted
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.StoreLockerLifecycleAdapter#7bd760a1' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:513) ~[neo4j-kernel-2.1.4.jar:2.1.4]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:115) ~[neo4j-kernel-2.1.4.jar:2.1.4]
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:343) ~[neo4j-kernel-2.1.4.jar:2.1.4]
... 8 common frames omitted
Caused by: org.neo4j.kernel.StoreLockException: Unable to obtain lock on store lock file: /var/lib/neo4j-community-2.1.4/data/graph.db/store_lock. Please ensure no other process is using this database, and that the directory is writable (required even for read-only access)
at org.neo4j.kernel.StoreLocker.checkLock(StoreLocker.java:82) ~[neo4j-kernel-2.1.4.jar:2.1.4]
at org.neo4j.kernel.StoreLockerLifecycleAdapter.start(StoreLockerLifecycleAdapter.java:44) ~[neo4j-kernel-2.1.4.jar:2.1.4]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:507) ~[neo4j-kernel-2.1.4.jar:2.1.4]
... 10 common frames omitted
Caused by: java.io.IOException: Unable to lock org.neo4j.kernel.impl.nioneo.store.StoreFileChannel#c8925d7
at org.neo4j.kernel.impl.nioneo.store.FileLock.wrapFileChannelLock(FileLock.java:38) ~[neo4j-kernel-2.1.4.jar:2.1.4]
at org.neo4j.kernel.impl.nioneo.store.FileLock.getOsSpecificFileLock(FileLock.java:93) ~[neo4j-kernel-2.1.4.jar:2.1.4]
at org.neo4j.kernel.DefaultFileSystemAbstraction.tryLock(DefaultFileSystemAbstraction.java:93) ~[neo4j-kernel-2.1.4.jar:2.1.4]
at org.neo4j.kernel.StoreLocker.checkLock(StoreLocker.java:74) ~[neo4j-kernel-2.1.4.jar:2.1.4]
... 12 common frames omitted
UPDATE
Acted upon the advice given in the answer but unfortunately the server still doesn't start. neo4j start command has been waiting for server to start for the last 10 minutes:
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 Starting Neo4j Server...WARNING: not changing user process [29578]... waiting for
server to be ready.........
The log file says:
2015-02-18 15:50:09.958+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: [/var/lib/neo4j-community-2.1.4/data/graph.db/nioneo_logical.log.1] entries found=91485 lastEntryPos=5328191
2015-02-18 15:50:09.958+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: Opened logical log [/var/lib/neo4j-community-2.1.4/data/graph.db/nioneo_logical.log.1] version=8, lastTxId=513504 (recovered)
2015-02-18 15:50:09.959+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: XaResourceManager[nioneo_logical.log] sorting 0 xids
2015-02-18 15:50:09.997+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: XaResourceManager[nioneo_logical.log] checkRecoveryComplete 0 xids
2015-02-18 15:50:10.407+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.relationshiptypestore.db.names rebuild id generator, highId=35 defragged count=0
2015-02-18 15:50:10.490+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.labeltokenstore.db.names rebuild id generator, highId=17 defragged count=0
2015-02-18 15:50:10.571+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.labeltokenstore.db rebuild id generator, highId=16 defragged count=0
2015-02-18 15:50:10.653+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.propertystore.db.index.keys rebuild id generator, highId=49 defragged count=0
2015-02-18 15:50:10.776+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.propertystore.db.index rebuild id generator, highId=44 defragged count=0
2015-02-18 15:50:10.819+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.propertystore.db.strings rebuild id generator, highId=41 defragged count=0
2015-02-18 15:50:11.101+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.propertystore.db.arrays rebuild id generator, highId=7954 defragged count=0
2015-02-18 15:50:15.753+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.propertystore.db rebuild id generator, highId=212690 defragged count=0
2015-02-18 15:50:19.113+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.relationshipstore.db rebuild id generator, highId=234591 defragged count=0
2015-02-18 15:50:19.155+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.nodestore.db.labels rebuild id generator, highId=1 defragged count=0
2015-02-18 15:50:20.131+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.nodestore.db rebuild id generator, highId=46820 defragged count=0
2015-02-18 15:50:20.194+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.schemastore.db rebuild id generator, highId=5 defragged count=0
2015-02-18 15:50:20.300+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore.relationshipgroupstore.db rebuild id generator, highId=14508 defragged count=0
2015-02-18 15:50:20.423+0000 INFO [o.n.k.i.n.s.StoreFactory]: /var/lib/neo4j-community-2.1.4/data/graph.db/neostore rebuild id generator, highId=9 defragged count=0
2015-02-18 15:50:20.424+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: XaResourceManager[nioneo_logical.log] recovery completed.
2015-02-18 15:50:20.424+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: Recovery on log [/var/lib/neo4j-community-2.1.4/data/graph.db/nioneo_logical.log.1] completed.
2015-02-18 15:50:20.628+0000 INFO [o.n.k.i.t.TxManager]: TM opening log: /var/lib/neo4j-community-2.1.4/data/graph.db/tm_tx_log.2
2015-02-18 15:50:20.992+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: Non clean shutdown detected on log [/var/lib/neo4j-community-2.1.4/data/graph.db/index/lucene.log.1]. Recovery started ...
2015-02-18 15:50:20.992+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: [/var/lib/neo4j-community-2.1.4/data/graph.db/index/lucene.log.1] logVersion=2 with committed tx=199234
My server previously had around 50K nodes and 300K relationships. Is the server attempting to recover the data, and hence causing the delay in starting?
The error message
org.neo4j.kernel.StoreLockException: Unable to obtain lock on store lock file: /var/lib/neo4j-community-2.1.4/data/graph.db/store_lock. Please ensure no other process is using this database, and that the directory is writable (required even for read-only access)
is pretty much self speaking. You either don't have the file system permission to access your graph.db folder or (which I think is more probable) that there is still another Neo4j process running on the same graph.db directory. You can check for running processes using the usual suspects like jps or ps aux | grep java.
I had the same problem with message Unable to obtain a lock on store lock file (...)
What happened? When I was setting up graph.db, acting as sudo, the owner was obviously root/root. Neo4j process was not allowed to access the place.
The solution which worked for me was to change the owner of graph.db folder with:
chown -R neo4j.neo4j /path/to/graphdb/graph.db/

neo4j ::how to set shortpath query timeout property in embedded model?

I'm using neo4j 1.9.4 embedded model .It tooks too long when executed the shortpath query(50 milion nodes and 600 milion relations). I read the manual and found the two properties :
1. conf/neo4j-server.properties
org.neo4j.server.webserver.limit.executiontime=1000
2. conf/neo4j.properties
execution_guard_enabled=true
But here is the question, it seems to there isn't the 'neo4j-server.properties' file in embedded model .How can I set it ? Or the 'time out ' property is just not supported in embedded model ?
Please help. Thanks a lot !
code :
PathFinder<Path> finder = GraphAlgoFactory.shortestPath(Traversal
.expanderForTypes(RelationshipTypes.r01, Direction.BOTH)
.add(RelationshipTypes.r02, Direction.BOTH), 10);
paths = finder.findAllPaths(node1, node2);
for (Path shortestPath : paths) {
List<NodeBean> nodeList = new ArrayList<NodeBean>();
List<String> rList = new ArrayList<String>();
... ...
}
part of message.log :
2014-11-24 02:06:42.107+0000 INFO [org.neo4j]: --- INITIALIZED diagnostics END ---
2014-11-24 02:06:42.217+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.relationshiptypestore.db.names non clean shutdown detected
2014-11-24 02:06:42.217+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\neostore.relationshiptypestore.db.names] brickCount=0 brickSize=0b mappedMem=0b (storeSize=114b)
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.relationshiptypestore.db non clean shutdown detected
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\neostore.relationshiptypestore.db] brickCount=0 brickSize=0b mappedMem=0b (storeSize=10b)
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.propertystore.db.strings non clean shutdown detected
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\neostore.propertystore.db.strings] brickCount=10 brickSize=20864b mappedMem=20971520b (storeSize=209664b)
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.propertystore.db.index.keys non clean shutdown detected
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\neostore.propertystore.db.index.keys] brickCount=50 brickSize=20938b mappedMem=20971520b (storeSize=1048572b)
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.propertystore.db.index non clean shutdown detected
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\neostore.propertystore.db.index] brickCount=261 brickSize=20970b mappedMem=20971520b (storeSize=5473170b)
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.propertystore.db.arrays non clean shutdown detected
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\neostore.propertystore.db.arrays] brickCount=0 brickSize=20864b mappedMem=20971520b (storeSize=128b)
2014-11-24 02:06:42.232+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.propertystore.db non clean shutdown detected
2014-11-24 02:06:42.248+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\neostore.propertystore.db] brickCount=23513 brickSize=104837b mappedMem=104857600b (storeSize=2465619255b)
2014-11-24 02:06:42.248+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.relationshipstore.db non clean shutdown detected
2014-11-24 02:06:42.248+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\neostore.relationshipstore.db] brickCount=100000 brickSize=221826b mappedMem=104857600b (storeSize=22183075860b)
2014-11-24 02:06:42.248+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.nodestore.db non clean shutdown detected
2014-11-24 02:06:42.248+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\neostore.nodestore.db] brickCount=4733 brickSize=104877b mappedMem=104857600b (storeSize=496395405b)
2014-11-24 02:06:42.248+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore non clean shutdown detected
2014-11-24 02:06:42.248+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\neostore] brickCount=0 brickSize=0b mappedMem=0b (storeSize=54b)
2014-11-24 02:06:42.263+0000 INFO [org.neo4j]: Non clean shutdown detected on log [D:\FTP\graph1.db\nioneo_logical.log.1]. Recovery started ...
2014-11-24 02:06:42.279+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\nioneo_logical.log.1] logVersion=4730 with committed tx=1072646
2014-11-24 02:06:42.279+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\nioneo_logical.log.1] entries found=0 lastEntryPos=16
2014-11-24 02:06:42.279+0000 INFO [org.neo4j]: Opened logical log [D:\FTP\graph1.db\nioneo_logical.log.1] version=4730, lastTxId=-1 (recovered)
2014-11-24 02:06:42.279+0000 INFO [org.neo4j]: XaResourceManager[nioneo_logical.log] sorting 0 xids
2014-11-24 02:06:42.279+0000 INFO [org.neo4j]: XaResourceManager[nioneo_logical.log] checkRecoveryComplete 0 xids
2014-11-24 02:06:42.419+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.relationshiptypestore.db.names rebuild id generator, highId=3 defragged count=0
2014-11-24 02:06:42.934+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.propertystore.db.index.keys rebuild id generator, highId=3 defragged count=0
2014-11-24 02:06:46.351+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.propertystore.db.index rebuild id generator, highId=2 defragged count=0
2014-11-24 02:06:46.444+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.propertystore.db.strings rebuild id generator, highId=1490 defragged count=0
2014-11-24 02:06:46.538+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.propertystore.db.arrays rebuild id generator, highId=1 defragged count=0
2014-11-24 02:06:46.694+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.propertystore.db rebuild id generator, highId=60134068 defragged count=0
2014-11-24 02:06:46.943+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.relationshipstore.db rebuild id generator, highId=672185416 defragged count=0
2014-11-24 02:06:47.255+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore.nodestore.db rebuild id generator, highId=55117690 defragged count=0
2014-11-24 02:06:47.349+0000 INFO [org.neo4j]: D:\FTP\graph1.db\neostore rebuild id generator, highId=6 defragged count=0
2014-11-24 02:06:47.411+0000 INFO [org.neo4j]: XaResourceManager[nioneo_logical.log] recovery completed.
2014-11-24 02:06:47.411+0000 INFO [org.neo4j]: Recovery on log [D:\FTP\graph1.db\nioneo_logical.log.1] completed.
2014-11-24 02:06:47.411+0000 INFO [org.neo4j]: TM opening log: D:\FTP\graph1.db\tm_tx_log.1
2014-11-24 02:06:47.567+0000 INFO [org.neo4j]: BackupServer communication server started and bound to /0.0.0.0:6362
2014-11-24 02:06:47.599+0000 INFO [org.neo4j]: Non clean shutdown detected on log [D:\FTP\graph1.db\index\lucene.log.1]. Recovery started ...
2014-11-24 02:06:47.599+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\index\lucene.log.1] logVersion=252 with committed tx=5514
2014-11-24 02:06:47.599+0000 INFO [org.neo4j]: [D:\FTP\graph1.db\index\lucene.log.1] entries found=0 lastEntryPos=16
2014-11-24 02:06:47.599+0000 INFO [org.neo4j]: Opened logical log [D:\FTP\graph1.db\index\lucene.log.1] version=252, lastTxId=-1 (recovered)
2014-11-24 02:06:47.599+0000 INFO [org.neo4j]: XaResourceManager[lucene.log] sorting 0 xids
2014-11-24 02:06:47.599+0000 INFO [org.neo4j]: XaResourceManager[lucene.log] checkRecoveryComplete 0 xids
2014-11-24 02:06:47.599+0000 INFO [org.neo4j]: XaResourceManager[lucene.log] recovery completed.
2014-11-24 02:06:47.599+0000 INFO [org.neo4j]: Recovery on log [D:\FTP\graph1.db\index\lucene.log.1] completed.
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: --- STARTED diagnostics for KernelDiagnostics:Versions START ---
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: Graph Database: org.neo4j.kernel.EmbeddedGraphDatabase StoreId[time:1414568675229, id:-3029933565465970314, store version: 13561656364791302]
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: Kernel version: Neo4j - Graph Database Kernel 1.9.4
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: Neo4j component versions:
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: Neo4j - Graph Database Kernel 1.9.4
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: --- STARTED diagnostics for KernelDiagnostics:Versions END ---
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: --- STARTED diagnostics for NEO_STORE_VERSIONS START ---
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: Store versions:
Store versions:
NeoStore v0.A.0
NodeStore v0.A.0
RelationshipStore v0.A.0
RelationshipTypeStore v0.A.0
PropertyStore v0.A.0
PropertyIndexStore v0.A.0
StringPropertyStore v0.A.0
ArrayPropertyStore v0.A.0
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: --- STARTED diagnostics for NEO_STORE_VERSIONS END ---
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: --- STARTED diagnostics for NEO_STORE_ID_USAGE START ---
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: Id usage:
Id usage:
NodeStore: used=55155045 high=55155044
RelationshipStore: used=672214420 high=672214419
RelationshipTypeStore: used=2 high=1
PropertyStore: used=60137055 high=60137054
PropertyIndexStore: used=608130 high=608129
StringPropertyStore: used=1638 high=1637
ArrayPropertyStore: used=1 high=0
2014-11-24 02:06:47.614+0000 INFO [org
.neo4j]: --- STARTED diagnostics for NEO_STORE_ID_USAGE END ---
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: --- STARTED diagnostics for PERSISTENCE_WINDOW_POOL_STATS START ---
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: --- STARTED diagnostics for PERSISTENCE_WINDOW_POOL_STATS END ---
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: --- STARTED diagnostics for KernelDiagnostics:StoreFiles START ---
2014-11-24 02:06:47.614+0000 INFO [org.neo4j]: Disk space on partition (Total / Free / Free %): 316763721728 / 32676884480 / 10
Storage files: (filename : modification date - size)
active_tx_log: 2014-11-21T08:52:51+0800 - 11.00 B
index:
lucene:
node:
nodes:
segments.gen: 2014-11-21T12:28:14+0800 - 20.00 B
segments_4z: 2014-11-21T12:28:14+0800 - 5.25 kB
_111.fdt: 2014-11-21T12:28:53+0800 - 223.40 MB
_111.fdx: 2014-11-21T12:28:24+0800 - 55.69 MB
_111.fnm: 2014-11-21T12:28:24+0800 - 18.00 B
_111.frq: 2014-11-21T12:28:34+0800 - 53.68 MB
_111.nrm: 2014-11-21T12:28:35+0800 - 6.96 MB
_111.prx: 2014-11-21T12:28:37+0800 - 13.92 MB
_111.tii: 2014-11-21T12:28:38+0800 - 1.62 MB
_111.tis: 2014-11-21T12:28:58+0800 - 115.02 MB
_1ri.fdt: 2014-11-21T12:29:40+0800 - 263.73 MB
_1ri.fdx: 2014-11-21T12:29:09+0800 - 63.93 MB
_1ri.fnm: 2014-11-21T12:29:10+0800 - 18.00 B
_1ri.frq: 2014-11-21T12:29:21+0800 - 61.92 MB
_1ri.nrm: 2014-11-21T12:29:22+0800 - 7.99 MB
_1ri.prx: 2014-11-21T12:29:25+0800 - 15.98 MB
_1ri.tii: 2014-11-21T12:29:25+0800 - 1.84 MB
_1ri.tis: 2014-11-21T12:29:48+0800 - 129.59 MB
_2lv.fdt: 2014-11-21T12:30:33+0800 - 303.36 MB
_2lv.fdx: 2014-11-21T12:30:01+0800 - 73.55 MB
_2lv.fnm: 2014-11-21T12:30:01+0800 - 18.00 B
_2lv.frq: 2014-11-21T12:30:14+0800 - 71.53 MB
_2lv.nrm: 2014-11-21T12:30:16+0800 - 9.19 MB
_2lv.prx: 2014-11-21T12:30:19+0800 - 18.39 MB
_2lv.tii: 2014-11-21T12:30:20+0800 - 2.14 MB
_2lv.tis: 2014-11-21T12:30:46+0800 - 150.79 MB
_3gr.fdt: 2014-11-21T12:31:28+0800 - 311.85 MB
_3gr.fdx: 2014-11-21T12:31:00+0800 - 75.61 MB
_3gr.fnm: 2014-11-21T12:31:00+0800 - 18.00 B
_3gr.frq: 2014-11-21T12:31:13+0800 - 73.59 MB
_3gr.nrm: 2014-11-21T12:31:15+0800 - 9.45 MB
_3gr.prx: 2014-11-21T12:31:18+0800 - 18.90 MB
_3gr.tii: 2014-11-21T12:31:19+0800 - 2.18 MB
_3gr.tis: 2014-11-21T12:31:46+0800 - 154.25 MB
_4ah.fdt: 2014-11-21T12:32:23+0800 - 306.20 MB
_4ah.fdx: 2014-11-21T12:31:59+0800 - 74.23 MB
_4ah.fnm: 2014-11-21T12:31:59+0800 - 18.00 B
_4ah.frq: 2014-11-21T12:32:12+0800 - 72.22 MB
_4ah.nrm: 2014-11-21T12:32:14+0800 - 9.28 MB
_4ah.prx: 2014-11-21T12:32:17+0800 - 18.56 MB
_4ah.tii: 2014-11-21T12:32:17+0800 - 2.14 MB
_4ah.tis: 2014-11-21T12:32:44+0800 - 152.60 MB
_4d9.cfs: 2014-11-21T12:32:34+0800 - 65.42 MB
_4g1.cfs: 2014-11-21T12:32:46+0800 - 65.54 MB
_4hz.cfs: 2014-11-21T12:32:46+0800 - 6.42 MB
_4ij.cfs: 2014-11-21T12:32:47+0800 - 6.44 MB
_4it.cfs: 2014-11-21T12:32:57+0800 - 65.35 MB
_4ll.cfs: 2014-11-21T12:32:58+0800 - 65.73 MB
_4od.cfs: 2014-11-21T12:33:09+0800 - 65.89 MB
_4on.cfs: 2014-11-21T12:33:00+0800 - 6.50 MB
_4ox.cfs: 2014-11-21T12:33:01+0800 - 6.57 MB
_4p7.cfs: 2014-11-21T12:33:02+0800 - 6.57 MB
_4ph.cfs: 2014-11-21T12:33:03+0800 - 6.60 MB
_4pr.cfs: 2014-11-21T12:33:05+0800 - 6.60 MB
_4px.cfs: 2014-11-21T12:33:05+0800 - 718.54 kB
_4py.cfs: 2014-11-21T12:33:05+0800 - 723.03 kB
_4pz.cfs: 2014-11-21T12:33:05+0800 - 719.12 kB
_4q1.cfs: 2014-11-21T12:33:07+0800 - 6.59 MB
_gf.fdt: 2014-11-21T12:33:29+0800 - 131.96 MB
_gf.fdx: 2014-11-21T12:33:15+0800 - 33.04 MB
_gf.fnm: 2014-11-21T12:33:15+0800 - 18.00 B
_gf.frq: 2014-11-21T12:33:20+0800 - 31.02 MB
_gf.nrm: 2014-11-21T12:33:21+0800 - 4.13 MB
_gf.prx: 2014-11-21T12:33:23+0800 - 8.26 MB
_gf.tii: 2014-11-21T12:33:23+0800 - 1.01 MB
_gf.tis: 2014-11-21T12:33:33+0800 - 73.32 MB
- Total: 2014-11-24T10:06:47+0800 - 3.51 GB
- Total: 2014-11-21T12:28:14+0800 - 3.51 GB
- Total: 2014-11-21T12:28:14+0800 - 3.51 GB
lucene-store.db: 2014-11-22T17:39:30+0800 - 40.00 B
lucene.log.1: 2014-11-21T18:34:32+0800 - 16.00 B
lucene.log.active: 2014-11-21T18:33:31+0800 - 4.00 B
- Total: 2014-11-22T11:40:56+0800 - 3.51 GB
index.db: 2014-11-21T08:52:48+0800 - 103.00 B
lock: 2014-11-22T15:32:04+0800 - 0.00 B
messages.log: 2014-11-24T10:06:44+0800 - 37.60 MB
neostore: 2014-11-24T10:06:42+0800 - 54.00 B
neostore.id: 2014-11-24T10:06:47+0800 - 9.00 B
neostore.nodestore.db: 2014-11-22T15:32:04+0800 - 473.40 MB
neostore.nodestore.db.id: 2014-11-24T10:06:47+0800 - 9.00 B
neostore.propertystore.db: 2014-11-22T15:32:04+0800 - 2.30 GB
neostore.propertystore.db.arrays: 2014-11-22T15:32:04+0800 - 128.00 B
neostore.propertystore.db.arrays.id: 2014-11-24T10:06:46+0800 - 9.00 B
neostore.propertystore.db.id: 2014-11-24T10:06:46+0800 - 9.00 B
neostore.propertystore.db.index: 2014-11-22T17:03:23+0800 - 5.22 MB
neostore.propertystore.db.index.id: 2014-11-24T10:06:46+0800 - 9.00 B
neostore.propertystore.db.index.keys: 2014-11-22T15:32:04+0800 - 1024.00 kB
neostore.propertystore.db.index.keys.id: 2014-11-24T10:06:42+0800 - 9.00 B
neostore.propertystore.db.strings: 2014-11-22T15:32:04+0800 - 204.75 kB
neostore.propertystore.db.strings.id: 2014-11-24T10:06:46+0800 - 9.00 B
neostore.relationshipstore.db: 2014-11-22T15:32:04+0800 - 20.66 GB
neostore.relationshipstore.db.id: 2014-11-24T10:06:46+0800 - 9.00 B
neostore.relationshiptypestore.db: 2014-11-24T10:06:42+0800 - 10.00 B
neostore.relationshiptypestore.db.id: 2014-11-24T10:06:42+0800 - 9.00 B
neostore.relationshiptypestore.db.names: 2014-11-22T15:32:04+0800 - 114.00 B
neostore.relationshiptypestore.db.names.id: 2014-11-24T10:06:42+0800 - 9.00 B
nioneo_logical.log.1: 2014-11-22T15:32:23+0800 - 16.00 B
nioneo_logical.log.active: 2014-11-22T15:32:04+0800 - 4.00 B
nioneo_logical.log.v4729: 2014-11-22T15:31:23+0800 - 16.00 B
store_lock: 2014-11-21T12:21:37+0800 - 0.00 B
tm_tx_log.1: 2014-11-24T10:06:47+0800 - 0.00 B
tm_tx_log.2: 2014-11-21T12:21:38+0800 - 28.68 kB
2014-11-24 02:06:47.630+0000 INFO [org.neo4j]: --- STARTED diagnostics for KernelDiagnostics:StoreFiles END ---
2014-11-24 02:06:47.630+0000 INFO [org.neo4j]: Started - database is now available
2014-11-24 02:06:47.630+0000 INFO [org.neo4j]: GC Monitor started.
2014-11-24 02:24:00.340+0000 INFO [org.neo4j]: GC Monitor: Application threads blocked for an additional 142ms [total block time: 0.142s]
2014-11-24 02:42:44.771+0000 INFO [org.neo4j]: GC Monitor: Application threads blocked for an additional 373ms [total block time: 0.515s]
neo4j.properties:
dump_configuration=false
use_memory_mapped_buffers:true
neostore.nodestore.db.mapped_memory=100M
neostore.relationshipstore.db.mapped_memory=100M
neostore.propertystore.db.mapped_memory=100M
neostore.propertystore.db.strings.mapped_memory=20M
neostore.propertystore.db.arrays.mapped_memory=20M /* file cache*/
neostore.propertystore.db.index.keys.mapped_memory=20M
neostore.propertystore.db.index.mapped_memory=20M
cache_type=soft
cache.memory_radio=50%
node_cache_size=2000M
relationship_cache_size=800M
excution_guard_enabled=true
keep_logical_logs=false
online_backup_enabled=true
ha.pull_interval=10
Direction.BOTH is an indication that it goes in circles.
You MMIO settings should be much larger (closer to the file sizes),
and your heap probably too (as it includes the mmio sections on Windows -> at least 12G to 16G heap).
You didn't share the part of messages.log that gives indication about heap sizes.
neostore.nodestore.db.mapped_memory=500M
neostore.relationshipstore.db.mapped_memory=6G
neostore.propertystore.db.mapped_memory=1G
neostore.propertystore.db.strings.mapped_memory=1G
If you run enterprise anyway you should use:
cache_type=hpc
or
cache_type=none
For the Guard, besides setting the config you've already got, the code to add it is something like this:
((GraphDatabaseAPI)graphDB).getDependencyResolver().resolveDependency(Guard.class);
guard.startTimeout(timeLimit);
guard.startOperationsCount(maxOps);
try {
return doOperation();
} catch (GuardException e) {
LOG.warn("Aborting Operation ");
throw new RuntimeException(e);
} finally {
guard.stop();
}

Resources