[英]Error occurred during initialization of VM, Could not reserve enough space for object heap
I tried to make a Minecraft Server, using the suggestions I've seen people telling others to use the Paper API.我尝试使用我看到人们告诉其他人使用论文 API 的建议来制作一个 Minecraft 服务器。 So I got all the files, and I allocated 512 MB of ram to it (using -Xmx512M), and it runs completely fine, But it bumps into the limit of RAM too much.
所以我得到了所有文件,并为它分配了 512 MB 的内存(使用 -Xmx512M),它运行得非常好,但是它太多地碰到了内存的限制。 so I tried to push it to 3 GB (using -Xmx3G), (A bit excessive, for what I'm using it for, but it'll help me sleep at night. knowing I have a server that's not running into issues) but then I run into the problem where Java simply does not want to start.
所以我尝试将它推到 3 GB(使用 -Xmx3G),(有点过分,因为我正在使用它,但它会帮助我晚上睡觉。知道我有一个没有遇到问题的服务器)但后来我遇到了 Java 根本不想开始的问题。
I experimented a bit, found that anything higher than 1.5G and Java starts having problems.我试验了一下,发现任何高于 1.5G 和 Java 的东西都开始出现问题。 Could not reserve enough space for 3145728KB object heap .
无法为 3145728KB object 堆保留足够的空间。
So I went looking around, and found people saying "Add an Environment Variable to the System Variables with _JAVA_OPTIONS and -Xmx3G" and whatever, and it appears to not change anything for me.所以我环顾四周,发现有人说“使用 _JAVA_OPTIONS 和 -Xmx3G 将环境变量添加到系统变量中”等等,这似乎对我没有任何改变。 Java still doesn't want to start.
Java 还是不想入手。 Does anyone know how this is?
有谁知道这是怎么回事? I can't seem to update my Java to any higher version, assuming mine was outdated.
假设我的已经过时,我似乎无法将我的 Java 更新到任何更高版本。 So it can't be an update, and not everyone runs into this issue because a server manager once told me their server ran with 10GB of ram.
所以它不可能是更新,并不是每个人都会遇到这个问题,因为服务器管理员曾经告诉我他们的服务器运行 10GB 内存。
I'd ask them, but I've lost contact, so I'm asking here instead.我会问他们,但我失去了联系,所以我在这里问。
You may be using a 32-bit Java installation.您可能正在使用 32 位 Java 安装。 Check which Java is being executed and install/use the 64-bit version.
检查正在执行哪个 Java 并安装/使用 64 位版本。
https://java.com/en/download/manual.jsp https://java.com/en/download/manual.jsp
Make sure you're running 64 Bit Java.确保您运行的是 64 位 Java。 Otherwise, go to the link above and get the Windows 64-Bit Offline download.
否则,go 到上面的链接并获得 Windows 64 位离线下载。 then run that.
然后运行它。 Immediately fixed it for me.
立即为我修好了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.