【发布时间】:2011-09-08 15:22:22
【问题描述】:
我遇到了这个java问题
[root@peach sbin]# java
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
[root@peach sbin]# free -m
total used free shared buffers cached
Mem: 256 182 73 0 0 0
-/+ buffers/cache: 182 73
Swap: 0 0 0
[root@peach sbin]#
这是一个虚拟机。我在想这个问题是因为内存不够大。如果有人同意我的话。
它正在运行 CentOS 5.6 版(最终版)
谢谢
【问题讨论】:
-
是的,你猜对了!考虑为该虚拟机分配更多内存。您可以在该 VM 的硬件设置中执行此操作。