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();
}
Related
I have a hazelcast cluster with two machines.
The only object in the cluster is a map. Analysing the log files I noticed that the health monitor starts to report a slow increase in memory consumption even though no new entries are being added to map (see sample of log entries below)
Any ideas of what may be causing the memory increase?
<p>2015-09-16 10:45:49 INFO HealthMonitor:? - [10.11.173.129]:5903
[dev] [3.2.1] memory.used=97.6M, memory.free=30.4M,
memory.total=128.0M, memory.max=128.0M, memory.used/total=76.27%,
memory.used/max=76.27%, load.process=0.00%, load.system=1.00%,
load.systemAverage=3.00%, thread.count=96, thread.peakCount=107,
event.q.size=0, executor.q.async.size=0, executor.q.client.size=0,
executor.q.operation.size=0, executor.q.query.size=0,
executor.q.scheduled.size=0, executor.q.io.size=0,
executor.q.system.size=0, executor.q.operation.size=0,
executor.q.priorityOperation.size=0, executor.q.response.size=0,
operations.remote.size=1, operations.running.size=0, proxy.count=2,
clientEndpoint.count=0, connection.active.count=2,
connection.count=2</p>
<p>2015-09-16 10:46:02 INFO
InternalPartitionService:? - [10.11.173.129]:5903 [dev] [3.2.1]
Remaining migration tasks in queue = 51 2015-09-16 10:46:12 DEBUG
TeleavisoIvrLoader:71 - Checking for new files... 2015-09-16 10:46:13
INFO InternalPartitionService:? - [10.11.173.129]:5903 [dev] [3.2.1]
All migration tasks has been completed, queues are empty. 2015-09-16
10:46:19 INFO HealthMonitor:? - [10.11.173.129]:5903 [dev] [3.2.1]
memory.used=103.9M, memory.free=24.1M, memory.total=128.0M,
memory.max=128.0M, memory.used/total=81.21%, memory.used/max=81.21%,
load.process=0.00%, load.system=1.00%, load.systemAverage=2.00%,
thread.count=73, thread.peakCount=107, event.q.size=0,
executor.q.async.size=0, executor.q.client.size=0,
executor.q.operation.size=0, executor.q.query.size=0,
executor.q.scheduled.size=0, executor.q.io.size=0,
executor.q.system.size=0, executor.q.operation.size=0,
executor.q.priorityOperation.size=0, executor.q.response.size=0,
operations.remote.size=0, operations.running.size=0, proxy.count=2,
clientEndpoint.count=0, connection.active.count=2,
connection.count=2</p>
<p>2015-09-16 10:46:49 INFO HealthMonitor:? - [10.11.173.129]:5903
[dev] [3.2.1] memory.used=105.1M, memory.free=22.9M,
memory.total=128.0M, memory.max=128.0M, memory.used/total=82.11%,
memory.used/max=82.11%, load.process=0.00%, load.system=1.00%,
load.systemAverage=1.00%, thread.count=73, thread.peakCount=107,
event.q.size=0, executor.q.async.size=0, executor.q.client.size=0,
executor.q.operation.size=0, executor.q.query.size=0,
executor.q.scheduled.size=0, executor.q.io.size=0,
executor.q.system.size=0, executor.q.operation.size=0,
executor.q.priorityOperation.size=0, executor.q.response.size=0,
operations.remote.size=0, operations.running.size=0, proxy.count=2,
clientEndpoint.count=0, connection.active.count=2,
connection.count=2</p>
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)
I am running neo4j on an EC2 instance. But for some reason it randomly shuts down from time to time. Is there a way to check the shutdown logs? And is there a way to automatically restart the server? I couldn't locate the log folder. But here's what my messages.log file looks like. This section covers the timeframe when the server went down (before 2015-04-13 05:39:59.084+0000) and when I manually restarted the server (at 2015-04-13 05:39:59.084+0000). You can see that there is no record of server issue or shutdown. Time frame before 2015-03-05 08:18:47.084+0000 contains info of the previous server restart.
2015-03-05 08:18:44.180+0000 INFO [o.n.s.m.Neo4jBrowserModule]: Mounted Neo4j Browser at [/browser]
2015-03-05 08:18:44.253+0000 INFO [o.n.s.w.Jetty9WebServer]: Mounting static content at [/webadmin] from [webadmin-html]
2015-03-05 08:18:44.311+0000 INFO [o.n.s.w.Jetty9WebServer]: Mounting static content at [/browser] from [browser]
2015-03-05 08:18:47.084+0000 INFO [o.n.s.CommunityNeoServer]: Server started on: http://0.0.0.0:7474/
2015-03-05 08:18:47.084+0000 INFO [o.n.s.CommunityNeoServer]: Remote interface ready and available at [http://0.0.0.0:7474/]
2015-03-05 08:18:47.084+0000 INFO [o.n.k.i.DiagnosticsManager]: --- SERVER STARTED END ---
2015-04-13 05:39:59.084+0000 INFO [o.n.s.CommunityNeoServer]: Setting startup timeout to: 120000ms based on -1
2015-04-13 05:39:59.265+0000 INFO [o.n.k.InternalAbstractGraphDatabase]: No locking implementation specified, defaulting to 'community'
2015-04-13 05:39:59.383+0000 INFO [o.n.k.i.DiagnosticsManager]: --- INITIALIZED diagnostics START ---
2015-04-13 05:39:59.384+0000 INFO [o.n.k.i.DiagnosticsManager]: Neo4j Kernel properties:
2015-04-13 05:39:59.389+0000 INFO [o.n.k.i.DiagnosticsManager]: neostore.propertystore.db.mapped_memory=78M
2015-04-13 05:39:59.389+0000 INFO [o.n.k.i.DiagnosticsManager]: neostore.nodestore.db.mapped_memory=21M
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/
I just downloaded neo4j enterprise a few backs ago and had it set it up successfully to run on the cloud (EC2). It stored about 50 nodes in a span of 3 days, was just doing simple testing and playing with the database commands.
Today it suddenly terminated itself and 'failed to start'. On inspecting, message.log shows this:
/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.relationshiptypestore.db.names non clean shutdown detected
2013-05-04 05:39:29.957+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.relationshiptypestore.db.names] brickCount=0 brickSize=0b mappedMem=0b (storeSize=38b)
2013-05-04 05:39:29.959+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.relationshiptypestore.db non clean shutdown detected
2013-05-04 05:39:29.960+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.relationshiptypestore.db] brickCount=0 brickSize=0b mappedMem=0b (storeSize=0b)
2013-05-04 05:39:29.960+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.strings non clean shutdown detected
2013-05-04 05:39:29.960+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.strings] brickCount=3 brickSize=28288b mappedMem=28311552b (storeSize=84864b)
2013-05-04 05:39:29.961+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.index.keys non clean shutdown detected
2013-05-04 05:39:29.961+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.index.keys] brickCount=0 brickSize=0b mappedMem=0b (storeSize=874b)
2013-05-04 05:39:29.962+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.index non clean shutdown detected
2013-05-04 05:39:29.962+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.index] brickCount=0 brickSize=0b mappedMem=0b (storeSize=198b)
2013-05-04 05:39:29.963+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.arrays non clean shutdown detected
2013-05-04 05:39:29.963+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.arrays] brickCount=1 brickSize=32384b mappedMem=32505856b (storeSize=32384b)
2013-05-04 05:39:29.972+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db non clean shutdown detected
2013-05-04 05:39:29.972+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db] brickCount=12 brickSize=33538b mappedMem=33554432b (storeSize=402456b)
2013-05-04 05:39:29.978+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.relationshipstore.db non clean shutdown detected
2013-05-04 05:39:29.978+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.relationshipstore.db] brickCount=0 brickSize=40887b mappedMem=40894464b (storeSize=33b)
2013-05-04 05:39:29.978+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.nodestore.db.labels non clean shutdown detected
2013-05-04 05:39:29.978+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.nodestore.db.labels] brickCount=0 brickSize=0b mappedMem=0b (storeSize=68b)
2013-05-04 05:39:29.980+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.nodestore.db non clean shutdown detected
2013-05-04 05:39:29.980+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.nodestore.db] brickCount=3 brickSize=8386b mappedMem=8388608b (storeSize=25158b)
2013-05-04 05:39:29.981+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.schemastore.db non clean shutdown detected
2013-05-04 05:39:29.981+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.schemastore.db] brickCount=0 brickSize=0b mappedMem=0b (storeSize=64b)
2013-05-04 05:39:29.983+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore non clean shutdown detected
2013-05-04 05:39:29.983+0000 INFO [o.n.k.i.n.s.StoreFactory]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore] brickCount=0 brickSize=0b mappedMem=0b (storeSize=54b)
2013-05-04 05:39:30.023+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: Non clean shutdown detected on log [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/nioneo_logical.log.1]. Recovery started ...
2013-05-04 05:39:30.029+0000 INFO [o.n.k.i.t.x.XaLogicalLog]: [/usr/local/neo4j-enterprise-2.0.0/data/graph.db/nioneo_logical.log.1] logVersion=8 with committed tx=503
2013-05-04 05:39:30.071+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.relationshiptypestore.db.names hit=0 miss=0 switches=0 ooe=0
2013-05-04 05:39:30.071+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.relationshiptypestore.db hit=0 miss=0 switches=0 ooe=0
2013-05-04 05:39:30.071+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.strings hit=0 miss=0 switches=0 ooe=0
2013-05-04 05:39:30.071+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.index.keys hit=0 miss=0 switches=0 ooe=0
2013-05-04 05:39:30.071+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.index hit=0 miss=0 switches=0 ooe=0
2013-05-04 05:39:30.075+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db.arrays hit=0 miss=2 switches=0 ooe=0
2013-05-04 05:39:30.080+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.propertystore.db hit=0 miss=33 switches=0 ooe=0
2013-05-04 05:39:30.080+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.relationshipstore.db hit=0 miss=0 switches=0 ooe=0
2013-05-04 05:39:30.080+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.nodestore.db.labels hit=0 miss=0 switches=0 ooe=0
2013-05-04 05:39:30.081+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.nodestore.db hit=0 miss=33 switches=0 ooe=0
2013-05-04 05:39:30.081+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore.schemastore.db hit=0 miss=1 switches=0 ooe=0
2013-05-04 05:39:30.083+0000 INFO [o.n.k.i.n.s.StoreFactory]: /usr/local/neo4j-enterprise-2.0.0/data/graph.db/neostore hit=0 miss=3 switches=0 ooe=0
2013-05-04 05:39:30.084+0000 INFO [o.n.k.i.DiagnosticsManager]: --- STOPPING diagnostics START ---
2013-05-04 05:39:30.084+0000 INFO [o.n.k.i.DiagnosticsManager]: --- STOPPING diagnostics END ---
2013-05-04 05:39:30.085+0000 INFO [o.n.k.EmbeddedGraphDatabase]: Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#58e5f46e' was successfully initialized, but failed to start. Please see attached cause exception.: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource#5b0d95cd' was successfully initialized, but failed to start. Please see attached cause exception.: NodeRecord[1231] not in use
enter code here
the /logs folder contains console.log which shows this:
(NeoStoreXaDataSource.java:310)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 15 more
5/4/13 5:35:31 AM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
5/4/13 5:39:28 AM org.neo4j.server.CommunityBootstrapper WARNING: WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
5/4/13 5:39:28 AM org.neo4j.server.AbstractNeoServer INFO: Setting startup timeout to: 120000ms based on -1
Detected incorrectly shut down database, performing recovery..
05:39:29.132 [main] WARN o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
5/4/13 5:39:30 AM org.neo4j.server.CommunityBootstrapper SEVERE:
java.lang.RuntimeException: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#58e5f46e' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:314)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:89)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:205)
at org.neo4j.kernel.impl.recovery.StoreRecoverer.recover(StoreRecoverer.java:115)
at org.neo4j.server.preflight.PerformRecoveryIfNecessary.run(PerformRecoveryIfNecessary.java:59)
at org.neo4j.server.preflight.PreFlightTasks.run(PreFlightTasks.java:70)
at org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:286)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:129)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#58e5f46e' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
aused by: org.neo4j.kernel.impl.nioneo.store.InvalidRecordException
... 10 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource#5b0d95cd' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
at org.neo4j.kernel.impl.transaction.XaDataSourceManager.start(XaDataSourceManager.java:128)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 12 more
Caused by: org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: NodeRecord[1231] not in use
at org.d incorrectly shut down database, performing recovery..
05:39:29.132 [main] WARN o.neo4j.kernel.EmbeddedGraphDatabase - WARNING! You are using an unsupported Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
5/4/13 5:39:30 AM org.neo4j.server.CommunityBootstrapper SEVERE:
java.lang.RuntimeException: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#58e5f46e' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:314)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:106)
at org.neo4j.graphdb.factory.GraphDatabaseFactory$1.newDatabase(GraphDatabaseFactory.java:89)
at org.neo4j.graphdb.factory.GraphDatabaseBuilder.newGraphDatabase(GraphDatabaseBuilder.java:205)
at org.neo4j.kernel.impl.recovery.StoreRecoverer.recover(StoreRecoverer.java:115)
at org.neo4j.server.preflight.PerformRecoveryIfNecessary.run(PerformRecoveryIfNecessary.java:59)
at org.neo4j.server.preflight.PreFlightTasks.run(PreFlightTasks.java:70)
at org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:286)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:129)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#58e5f46e' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
aused by: org.neo4j.kernel.impl.nioneo.store.InvalidRecordException
... 10 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource#5b0d95cd' was successfully initialized, but failed to start. Please see attached cause exception.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:497)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:104)
at org.neo4j.kernel.impl.transaction.XaDataSourceManager.start(XaDataSourceManager.java:128)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 12 more
Caused by: org.neo4j.kernel.impl.nioneo.store.InvalidRecordException: NodeRecord[1231] not in use
at org.neo4j.kernel.impl.nioneo.store.NodeStore.getRecord(NodeStore.java:239)
at org.neo4j.kernel.impl.nioneo.store.NodeStore.getRecord(NodeStore.java:112)
at org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.gatherUpdatesFromPropertyCommands(WriteTransaction.java:692)
at org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.convertIntoLogicalPropertyUpdates(WriteTransaction.java:669)
at org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.applyCommit(WriteTransaction.java:619)
at org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.doCommit(WriteTransaction.java:561)
at org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:321)
eo4j.kernel.impl.nioneo.store.NodeStore.getRecord(NodeStore.java:112)
at org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.gatherUpdatesFromPropertyCommands(WriteTransaction.java:692)
at org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.convertIntoLogicalPropertyUpdates(WriteTransaction.java:669)
at org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.applyCommit(WriteTransaction.java:619)
at org.neo4j.kernel.impl.nioneo.xa.WriteTransaction.doCommit(WriteTransaction.java:561)
at org.neo4j.kernel.impl.transaction.xaframework.XaTransaction.commit(XaTransaction.java:321)
at org.neo4j.kernel.impl.transaction.xaframework.XaResourceManager.injectTwoPhaseCommit(XaResourceManager.java:407)
at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.applyTwoPhaseCommitEntry(XaLogicalLog.java:562)
at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.applyEntry(XaLogicalLog.java:437)
at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.doInternalRecovery(XaLogicalLog.java:771)
at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.open(XaLogicalLog.java:206)
at org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.open(XaLogicalLog.java:161)
at org.neo4j.kernel.impl.transaction.xaframework.XaContainer.openLogicalLog(XaContainer.java:64)
at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.start(NeoStoreXaDataSource.java:310)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:491)
... 15 more
5/4/13 5:39:30 AM org.neo4j.server.CommunityBootstrapper SEVERE: Failed to start Neo Server on port [7474]
I'm not a JAVA programmer so I do not know how to debug this issue. I mainly use node-neo4j (node.js) to talk to my neo4j server.
Please help thank you.
Check out this post in the Neo4j google group.
https://groups.google.com/forum/#!topic/neo4j/3BVM4kmso5c
While it may work for a while on Java 6, eventually you are going to encounter some bugs due to wrong JDK versions. Update to Java 7 and the problem should disappear.
If it doesn't, please also make sure you are not running OpenJDK but Oracle JDK.
The exception says:
You are using an unsupported Java runtime. Please use Oracle(R)
Java(TM) Runtime Environment 7.
You are probably running java version 5 or 6. You can download Java SE 7 from the oracle website.