简体   繁体   English

Neo4j 未在 Raspberry Pi 上启动(内存问题和 java.lang.NoClassDefFoundError)

[英]Neo4j not starting on Raspberry Pi (memory issues and java.lang.NoClassDefFoundError)

I am currently trying to install Neo4j on my Raspberry Pi.我目前正在尝试在我的 Raspberry Pi 上安装 Neo4j。 The installation for the latest version worked great so far.到目前为止,最新版本的安装效果很好。 When I tried neo4j start I received this error message but was able to resolve it by setting dbms.memory.heap.initial_size=12m and dbms.memory.heap.max_size=12m and dbms.memory.pagecache.size=1g (allthough that feels wrong to me since my Pi has 8GB of memory): When I tried neo4j start I received this error message but was able to resolve it by setting dbms.memory.heap.initial_size=12m and dbms.memory.heap.max_size=12m and dbms.memory.pagecache.size=1g (allthough that我感觉不对,因为我的 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.

Now , when I try to start neo4j I get this error in my logs:现在,当我尝试启动 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.

I have now been trying to google the problem for a couple hours but I feel like I don't really know what to look for.我现在一直在尝试用谷歌搜索这个问题几个小时,但我觉得我真的不知道要寻找什么。

My setup:我的设置:

  • Raspberry Pi 4 (8 GB memory)树莓派 4(8 GB 内存)
  • Ubuntu Server ( uname -a returns Linux ubuntu 5.8.0-1011-raspi #14-Ubuntu SMP PREEMPT Tue Dec 15 08:53:29 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux ) Ubuntu Server ( uname -a returns 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 returns 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) ) Java 11 ( java -version returns 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 version 4.2.3 Neo4j 版本 4.2.3

After some more trying it seems like it is a problem with the latest Neo4j version (4.2.3).经过更多尝试,最新的 Neo4j 版本(4.2.3)似乎有问题。 I now installed version 4.0.11 and it works without any problems.我现在安装了 4.0.11 版,它可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM