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

标签 java neo4j

从新的 graph.db 文件夹开始。我使用嵌入式图形数据库、java 和 cypher 查询来创建节点。看来节点创建成功了。已调试并检查结果对象。

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

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

WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual. Starting 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。但没有错误。我不知道要在日志文件中读取什么内容以供诊断。请指教。

控制台.log:

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

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

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

[API] Successfully shutdown Neo4j Server.

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

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

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

[API] Successfully shutdown Neo4j Server.

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

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

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

[API] Successfully shutdown Neo4j Server.

我还应该在哪里查找错误?如何启动 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 ---

最佳答案

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

关于java - 通过java代码生成db后Neo4j 2.2.1服务器无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29874200/

相关文章:

java - Eclipse中这些不同的执行环境是什么意思呢?

java - 部署时出现空指针异常

neo4j - 如何避免neo4j的死锁

mongodb - 多个数据库与 eve

java - Spring Data Neo4j 4.1 中的树/层次结构建模

java - 单点登录在 Spring Web 应用程序中不起作用

java.lang.OutOfMemoryError : Java heap space, 如何释放内存?

java - "java.net.SocketException: Connection reset"在我的 Runnable 类中,为什么?

java - 如何为本地运行的 neo4j 服务器获取 GraphDatabaseService 实例

java - Spring-Data-Neo4j:relationshipEntity 仅返回节点的 graphId。