![](/img/trans.png)
[英]Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine
[英]Error occurred during initialization of VM; Could not reserve enough space for object heap; Could not create the Java virtual machine
我遇到了這個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版(最終版)
謝謝
嘗試
java -Xmx64m
基本上你的機器沒有足夠的內存,但你可能可以逃脫64MB。 讓我知道你是怎么辦的。
您可以使用此命令來了解當前的內存使用情況:
swapinfo -tam
我有同樣的錯誤,內存使用率超過95%。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.