简体   繁体   English

VM初始化期间发生错误; 无法为对象堆保留足够的空间; 无法创建Java虚拟机

[英]Error occurred during initialization of VM; Could not reserve enough space for object heap; Could not create the Java virtual machine

I got this java problem 我遇到了这个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]# 

This is a virtual machine. 这是一个虚拟机。 I am thinking this problem because of the memory is not big enough. 我在想这个问题是因为内存不够大。 If some one agree with me. 如果有人同意我的话。

It is running with a CentOS release 5.6 (Final) 它运行的是CentOS 5.6版(最终版)

Thanks 谢谢

Try 尝试

java -Xmx64m

Basically your machine doesn't have enough memory, but you may be able to get away with 64MB. 基本上你的机器没有足够的内存,但你可能可以逃脱64MB。 Let me know how you get on. 让我知道你是怎么办的。

You can use this command to know your current memory usage: 您可以使用此命令来了解当前的内存使用情况:

swapinfo -tam

I had the same error and the memory use was above 95%. 我有同样的错误,内存使用率超过95%。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VM 初始化过程中发生错误 无法为对象堆保留足够的空间 无法创建 Java 虚拟机 - Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine VM初始化期间发生Java错误无法为对象堆保留足够的空间 - Java Error occurred during initialization of VM Could not reserve enough space for object heap “虚拟机初始化时出错; 无法为对象堆保留足够的空间”使用 -Xmx3G - “Error occurred during initialization of VM; Could not reserve enough space for object heap” using -Xmx3G VM 初始化时出错 无法为 object 堆 Android Studio 保留足够的空间 - Error occurred during initialization of VM Could not reserve enough space for object heap Android Studio 初始化 VM 时出错,无法为 object 堆预留足够的空间 - Error occurred during initialization of VM, Could not reserve enough space for object heap 解决方法:“ VM初始化期间发生错误; 无法为对象堆保留足够的空间” - How to resolve this : “Error occurred during initialization of VM; Could not reserve enough space for object heap” VM初始化期间发生错误,无法为对象堆保留足够的空间 - Error occurred during initialization of VM Could not reserve enough space for object heap “ VM初始化期间发生错误,无法为1048576KB对象堆保留足够的空间” - “Error occurred during initialization of VM Could not reserve enough space for 1048576KB object heap” 初始化VM时出错,无法为对象堆保留足够的空间 - Spring Tool Suite? - Error occured during initialization of VM, Could not reserve enough space for object heap - Spring Tool Suite? VM初始化期间发生错误:无法为对象堆保留足够的空间 - Error occured during initialization of VM: Could not reserve enough space for object heap
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM