虚拟机初始化时出错;无法为对象堆保留足够的空间;无法创建Java虚拟机 [英] Error occurred during initialization of VM; Could not reserve enough space for object heap; Could not create the Java virtual machine

查看:82
本文介绍了虚拟机初始化时出错;无法为对象堆保留足够的空间;无法创建Java虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了这个Java问题

I got this java problem

[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.

它正在运行CentOS版本5.6(最终版)

It is running with a CentOS release 5.6 (Final)

谢谢

推荐答案

尝试

java -Xmx64m

基本上,您的计算机没有足够的内存,但是您也许可以摆脱64MB的内存.让我知道你过得怎么样.

Basically your machine doesn't have enough memory, but you may be able to get away with 64MB. Let me know how you get on.

这篇关于虚拟机初始化时出错;无法为对象堆保留足够的空间;无法创建Java虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆