【问题标题】:Neo4j not starting on Raspberry Pi (memory issues and java.lang.NoClassDefFoundError)Neo4j 未在 Raspberry Pi 上启动(内存问题和 java.lang.NoClassDefFoundError)
【发布时间】:2021-01-26 22:57:10
【问题描述】:

我目前正在尝试在我的 Raspberry Pi 上安装 Neo4j。到目前为止,最新版本的 installation 运行良好。 当我尝试neo4j start 时,我收到了此错误消息,但能够通过设置dbms.memory.heap.initial_size=12mdbms.memory.heap.max_size=12mdbms.memory.pagecache.size=1g 来解决它(尽管我感觉不对,因为我的Pi 有8GB 内存):

nohup: ignoring input
2021-01-26 21:54:18.409+0000 ERROR Invalid memory configuration - exceeds physical memory. Check the configured values for dbms.memory.pagecache.size and db>
2021-01-26 21:54:18.436+0000 INFO  Neo4j Server shutdown initiated by request
2021-01-26 21:54:18.437+0000 INFO  Stopped.

现在,当我尝试启动 neo4j 时,我的日志中出现以下错误:

nohup: ignoring input
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class org.neo4j.configuration.GraphDatabaseSettings
        at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:105)
        at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:90)
        at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:35)
2021-01-26 22:20:55.271+0000 INFO  [o.n.s.CommunityBootstrapper] Neo4j Server shutdown initiated by request
2021-01-26 22:20:55.290+0000 INFO  [o.n.s.CommunityBootstrapper] Stopped.

我现在已经尝试用谷歌搜索这个问题几个小时,但我觉得我真的不知道要寻找什么。

我的设置:

  • 树莓派 4(8 GB 内存)
  • Ubuntu 服务器(uname -a 返回 Linux ubuntu 5.8.0-1011-raspi #14-Ubuntu SMP PREEMPT Tue Dec 15 08:53:29 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
  • Java 11(java -version 返回 openjdk version "11.0.9.1" 2020-11-04 OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10) OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.20.10, mixed mode)
  • Neo4j 版本 4.2.3

【问题讨论】:

    标签: java linux ubuntu neo4j raspberry-pi


    【解决方案1】:

    经过更多尝试,最新的 Neo4j 版本(4.2.3)似乎有问题。 我现在安装了 4.0.11 版本,它可以正常工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-01-08
      • 1970-01-01
      • 2016-03-14
      • 1970-01-01
      • 2014-04-02
      • 2012-09-14
      • 2023-01-03
      相关资源
      最近更新 更多