无法创建Java虚拟机 [英] Could not create the Java virtual machine

查看:121
本文介绍了无法创建Java虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

面临java虚拟机初始化的一些问题。当我使用root帐户时,我可以正常使用java。但当我是一个用户帐户时,它返回以下错误

facing some problem with java virtual machine initialization. when i am using root account i can properly work with java. but when i am a user account it returns following errors

user@host# $JAVA_HOME/bin/java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

这似乎不是内存问题,因为同一命令适用于root帐户。可用内存(free -m)超过1200MB
我也试过增加JVM内存限制

It does not seems like a memory issue as the same command works with root account. Available memory (free -m) is more than 1200MB Also i have tried increasing the JVM memory limits

推荐答案

小心。如果您尝试输入不存在的命令,您将收到此消息

Just be careful. You will get this message if you try to enter a command that doesn't exist like this

/ usr / bin / java -v

/usr/bin/java -v

这篇关于无法创建Java虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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