我正在尝试运行 first example Processing 中的增强现实。点击运行按钮后,我收到以下消息:
[0] "Error occurred during initialization of VM"
[1] "Could not reserve enough space for object heap"
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
该草图在具有 8GB RAM、Processing (x86) 的计算机上运行,并且我在首选项中将最大可用内存增加到 2048MB,但它仍然不起作用。
我该如何解决?
最佳答案
JVM 需要连续的内存空间来初始化。因此,它无法保留您指定的内存量。通过减少堆空间看看它是否有效
关于java - 处理和堆大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23361362/