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