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

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

问题描述

首先,我有一个装有 8GB 内存的盒子,所以我怀疑总内存是问题所在.此应用程序在 6GB 或更少的机器上运行良好.

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.

我试图在 Eclipse 中运行配置的VM 参数"下使用 -Xmx3G 保留 3GB 空间.

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

每次我尝试保留超过 1500mb 时,都会收到此错误:虚拟机初始化过程中发生错误;无法为对象堆保留足够的空间"使用 -Xmx3G

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

这里发生了什么?

推荐答案

难道你在那台机器上使用的是 32 位 jvm?

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

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

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