简体   繁体   English

安装 Cassandra 时出错(初始堆大小无效:-Xms4096M)

[英]Error while installing Cassandra (Invalid initial heap size: -Xms4096M)

I am trying to run Cassandra on my windows, but I keep on getting this error.我正在尝试在我的 Windows 上运行 Cassandra,但我不断收到此错误。

Failed 64-bit check. Re-running to get version from 32-bit
Invalid initial heap size: -Xms4096M
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Can anyone explain why I am facing this and how to resolve this error.谁能解释我为什么面临这个问题以及如何解决这个错误。

So it sounds to me like your JAVA_HOME variable is pointing to a 32-bit JRE.所以在我看来,您的JAVA_HOME变量指向的是 32 位 JRE。 Reverify/install your Java installation, making sure to use a 64-bit version.重新验证/安装您的 Java 安装,确保使用 64 位版本。

If you're using Cassandra 3, Java 8 is the highest main version that it will work with.如果您使用的是 Cassandra 3,Java 8 是可以使用的最高主版本。 If you're on Cassandra 4, this is going to be difficult to run natively as Windows support was completely removed from that version.如果你在 Cassandra 4 上,这将很难在本地运行,因为 Windows 支持已从该版本中完全删除。

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

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