简体   繁体   中英

Eclipse: Error occurred during initialization of VM

A few days I started getting this eror message when debugging my eclipse RCP:

Error occurred during initialization of VM
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.

I used to restart my stystem if that occured which fixed it but today even a restart didn't work anymore. Can anyone please give me a hint why this is suddenly appearing.

Those are the VM arguments I'm using:

-Dosgi.requiredJavaVersion=1.5 -Xmx2048m -Xms1024m -Dosgi.locking=none -XX:MaxPermSize=256m

Try to fix it with:

Go to Start->Control Panel->System->Advanced(tab)->Environment Variables->System Variables->New:

Variable name: _JAVA_OPTIONS

Variable value: -Xmx512M

You are opening Eclipse by specifying 2GB of max memory and 1GB of min memory. And the message is telling you that there is not enough memory available to support that.

重新安装最新版本的 JDK 后,我的问题得到了解决。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM