“VM初始化时发生错误;使用-Xmx3G无法为对象堆预留足够的空间 [英] “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G

查看:366
本文介绍了“VM初始化时发生错误;使用-Xmx3G无法为对象堆预留足够的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我有一个8GB的RAM的盒子,所以我怀疑总记忆是问题。
此应用程序在6GB或更少的机器上运行正常。



我正在运行配置中的VM参数下使用-Xmx3G保留3GB的空间在Eclipse中。



每次我尝试保留超过1500mb,我得到这个错误:
VM初始化时发生错误;使用-Xmx3G



这里发生了什么?

解决方案

可能是在这台机器上使用32位jvm吗?


First of all, I have a box with 8gb of ram, so I doubt total memory is the issue. This application is running fine on machines with 6gb or less.

I am trying to reserve 3GB of space using -Xmx3G under "VM Arguments" in Run Configurations in Eclipse.

Every time I try to reserve more than 1500mb, I get this error: "Error occurred during initialization of VM; Could not reserve enough space for object heap" using -Xmx3G

What is going on here?

解决方案

Could it be that you're using a 32-bit jvm on that machine?

这篇关于“VM初始化时发生错误;使用-Xmx3G无法为对象堆预留足够的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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