通过java代码生成db后,Neo4j 2.2.1服务器无法启动

时间:2015-04-26 05:40:31

标签: java neo4j

开始使用新的graph.db文件夹。我使用嵌入式图形db,java和cypher查询来创建节点。它似乎成功地创建了节点。已经调试并检查了结果对象。

我现在想启动neo4j服务器来检查浏览器中的节点。但是,它给出了消息:

  

bash-4.2 $ ./neo4j-community-2.2.1/bin/neo4j start

     

警告:最多1024   允许打开文件,建议至少40 000。看看Neo4j   手册。启动Neo4j服务器...

     

警告:不更改用户进程   [2868] ...等待服务器准备好......无法启动内部   120秒Neo4j服务器可能无法启动,请检查   日志。

我检查了console.log和message.log。但没有错误。我不知道在日志文件中要读什么来放在这里进行诊断。请指教。

CONSOLE.LOG:

  

2015-04-26 05:14:47.278 + 0000 INFO

     

[API]将启动超时设置为:   基于120000的120000ms

     

2015-04-26 05:14:49.700 + 0000 INFO

     

[API]   成功关闭Neo4j服务器。

     

2015-04-26 05:15:24.684 + 0000 INFO

     

[API]将启动超时设置为:120000ms,基于120000

     

2015-04-26 05:15:26.477 + 0000 INFO

     

[API]成功关闭Neo4j服务器。

     

2015-04-26 05:19:54.699 + 0000 INFO

     

[API]将启动超时设置为:   基于120000的120000ms

     

2015-04-26 05:19:56.521 + 0000 INFO

     

[API]成功关闭Neo4j服务器。

我还应该在哪里寻找错误?如何启动neo4j服务器?

编辑:

已检查messages.log。下面的文字。所以看起来它正在通过代码关闭:

2015-04-26 10:05:21.169+0000 INFO  [org.neo4j]: --- STARTED diagnostics for KernelDiagnostics:StoreFiles END ---
2015-04-26 10:05:21.356+0000 INFO  [org.neo4j]: Database is now ready
2015-04-26 10:06:05.470+0000 INFO  [org.neo4j]: Index population started: [:PRODUCT(id) [provider: {key=lucene, version=1.0}]]
2015-04-26 10:06:05.653+0000 INFO  [org.neo4j]: Schema state store has been cleared.
2015-04-26 10:06:05.695+0000 INFO  [org.neo4j]: Index population completed. Index is now online: [:PRODUCT(id) [provider: {key=lucene, version=1.0}]]
2015-04-26 10:06:05.764+0000 INFO  [org.neo4j]: Schema state store has been cleared.
2015-04-26 10:06:18.148+0000 INFO  [org.neo4j]: Sampled index :PRODUCT(id) with 2 unique values in sample of avg size 2 taken from index containing 2 entries
2015-04-26 10:06:46.028+0000 INFO  [org.neo4j]: Shutdown started
2015-04-26 10:06:46.031+0000 INFO  [org.neo4j]: Database is now unavailable
2015-04-26 10:06:46.246+0000 INFO  [org.neo4j]: About to rotate counts store at transaction 8 to [/home/dedhiaj/neo4j-community-2.2.1/data/graph.db/neostore.counts.db.b], from [/ho
me/dedhiaj/neo4j-community-2.2.1/data/graph.db/neostore.counts.db.a].
2015-04-26 10:06:46.250+0000 INFO  [org.neo4j]: Successfully rotated counts store at transaction 8 to [/home/dedhiaj/neo4j-community-2.2.1/data/graph.db/neostore.counts.db.b], from
 [/home/dedhiaj/neo4j-community-2.2.1/data/graph.db/neostore.counts.db.a].
2015-04-26 10:06:47.495+0000 INFO  [org.neo4j]: NeoStore closed
2015-04-26 10:06:47.496+0000 INFO  [org.neo4j]: --- STOPPING diagnostics START ---
2015-04-26 10:06:47.497+0000 INFO  [org.neo4j]: --- STOPPING diagnostics END ---

1 个答案:

答案 0 :(得分:1)

同时增加Linux操作系统的“ulimit”>