通过Java代码生成db后Neo4j 2.2.1服务器无法启动 [英] Neo4j 2.2.1 server does not start after db is generated via java code

查看:454
本文介绍了通过Java代码生成db后Neo4j 2.2.1服务器无法启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Started with a new graph.db folder. Am using embedded graph db, java and cypher query to create nodes. It seems to create the nodes successfully. Have debugged and checked the result object.

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

I want to now start the neo4j server to check the nodes in the browser. However, it gives the message:

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

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

警告:最多1024 允许打开文件,建议至少40 000.见Neo4j 手动的.正在启动Neo4j Server ...

WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual. Starting Neo4j Server...

警告:不更改用户流程 [2868] ...正在等待服务器准备就绪……无法在内部启动 120秒Neo4j Server可能无法启动,请检查 日志.

WARNING: not changing user process [2868]... waiting for server to be ready...... Failed to start within 120 seconds. Neo4j Server may have failed to start, please check the logs.

我检查了console.log和message.log.但是没有错误.我不知道要在日志文件中读取哪些内容以进行诊断.请指教.

I checked the console.log and message.log. But there is not error. I don't know what to read in the log files to put up here for diagnosis. Please advice.

Console.log:

2015-04-26 05:14:47.278 + 0000信息

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

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

[API] Setting startup timeout to: 120000ms based on 120000

2015-04-26 05:14:49.700 + 0000信息

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

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

[API] Successfully shutdown Neo4j Server.

2015-04-26 05:15:24.684 + 0000信息

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

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

[API] Setting startup timeout to: 120000ms based on 120000

2015-04-26 05:15:26.477 + 0000信息

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

[API]成功关闭Neo4j Server.

[API] Successfully shutdown Neo4j Server.

2015-04-26 05:19:54.699 + 0000信息

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

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

[API] Setting startup timeout to: 120000ms based on 120000

2015-04-26 05:19:56.521 + 0000信息

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

[API]成功关闭Neo4j Server.

[API] Successfully shutdown Neo4j Server.

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

Where else should I look for errors? How can I get the neo4j server up?

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

Checked messages.log. Text below. So looks like it is shutting down ok via the code:

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 ---

推荐答案

还增加Linux操作系统的"ulimit">

Also increase "ulimit" of your Linux OS>

这篇关于通过Java代码生成db后Neo4j 2.2.1服务器无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆