JVM内存问题Error occurred during initialization of VM

时间:2024-03-21 10:32:17

JVM内存问题
Error occurred during initialization of VM
Could not reserve enough space for object heap
出现这个问题的原因是JVM分配的内存大于系统可用内存,所以没有足够的内存来创建object解决方法如下:

在myeclipse中:

(1)点击“Window->Preferences->Java->Installed JREs”可以看到myeclipse配置的JRE。
(2)找到目前使用的jre,点击右侧edit
JVM内存问题Error occurred during initialization of VM
(3)将arguments修改为合适的值
JVM内存问题Error occurred during initialization of VM

至此,问题可以解决。