1
它发生在我的vps中。我的vps有足够的内存,但vm无法运行
[[email protected] ~]# free -m
total used free shared buffers cached
Mem: 12067 87 11980 0 0 0
-/+ buffers/cache: 87 11980
Swap: 0 0 0
[[email protected] ~]# java -version
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.
当我将其更改为“java -Xms16m -Xmx16m -version”时,它工作。 我尝试了很多次,它最大的尺寸是22米,但我的记忆也有很多免费区域。
谢谢you.But我真的不明白“玩”。什么我应该进入命令行。 – Ethan