无法为对象堆保留足够的空间 [英] Could not reserve enough space for object heap

查看:488
本文介绍了无法为对象堆保留足够的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行时,每次尝试运行程序时都会反复出现以下异常。

When I am running I am getting the following exception repeatedly each time I try to run the program.


初始化期间出错VM

Error occurred during initialization of 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. Can anyone tell me how can I eliminate this error?

推荐答案

使用 -XX运行JVM:MaxHeapSize = 512m (或任何大数字)(或 -Xmx512m

Run the JVM with -XX:MaxHeapSize=512m (or any big number) (or -Xmx512m for short)

这篇关于无法为对象堆保留足够的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆