无法为对象堆保留足够的空间 [英] Could not reserve enough space for object heap
本文介绍了无法为对象堆保留足够的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每次尝试运行程序时,我都会反复收到以下异常.
I am getting the following exception repeatedly each time I try to run the program.
VM 初始化时出错
无法为对象堆保留足够的空间
Could not reserve enough space for object heap
无法创建 Java 虚拟机.
Could not create the Java virtual machine.
我尝试增加虚拟内存(页面大小)和 RAM 大小,但无济于事.
I tried to increase my virtual memory (page size) and RAM size, but to no avail.
我怎样才能消除这个错误?
How can I eliminate this error?
推荐答案
使用 -XX:MaxHeapSize=512m
(或您需要的任何大数字)(或 -Xmx512m)运行 JVM
简称)
Run the JVM with -XX:MaxHeapSize=512m
(or any big number as you need) (or -Xmx512m
for short)
这篇关于无法为对象堆保留足够的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文