Neo4j 未在 Raspberry Pi 上启动(内存问题和 java.lang.NoClassDefFoundError)
Neo4j not starting on Raspberry Pi (memory issues and java.lang.NoClassDefFoundError)
我目前正在尝试在我的 Raspberry Pi 上安装 Neo4j。到目前为止,最新版本的 installation 运行良好。
当我尝试 neo4j start
时收到此错误消息,但能够通过设置 dbms.memory.heap.initial_size=12m
和 dbms.memory.heap.max_size=12m
和 dbms.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.
我已经尝试 google 这个问题几个小时了,但我觉得我真的不知道要寻找什么。
我的设置:
- Raspberry Pi 4(8 GB 内存)
- Ubuntu 服务器 (
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)
)
- Neo4j 版本 4.2.3
经过更多尝试,似乎是最新的 Neo4j 版本 (4.2.3) 有问题。
我现在安装了 4.0.11 版本并且没有任何问题。
我目前正在尝试在我的 Raspberry Pi 上安装 Neo4j。到目前为止,最新版本的 installation 运行良好。
当我尝试 neo4j start
时收到此错误消息,但能够通过设置 dbms.memory.heap.initial_size=12m
和 dbms.memory.heap.max_size=12m
和 dbms.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.
我已经尝试 google 这个问题几个小时了,但我觉得我真的不知道要寻找什么。
我的设置:
- Raspberry Pi 4(8 GB 内存)
- Ubuntu 服务器 (
uname -a
returnsLinux 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
returnsopenjdk 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
经过更多尝试,似乎是最新的 Neo4j 版本 (4.2.3) 有问题。 我现在安装了 4.0.11 版本并且没有任何问题。