Java JDK/JRE installation error
I installed Tomcat 7 via Easyapache 3. I am not sure about Tomcat 7 package including Java, so I tried to install Java JDK/JRE individually. Then I enter java -version to command line, but I encounter a error:
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.
I have Centos 6.7, 64 bit, 1gb ram server.
What should I do?
Thank you
Kind regards
-
Hi, I think you don't have enough RAM available in your server. How much RAM available in your server ? Check the RAM status using command: free -m 0 -
Thank you for your response. I upgraded my server, but I still have same error. Ram status now: total used free shared buffers cached Mem: 2048 786 1261 4 0 405 -/+ buffers/cache: 381 1666 Swap: 0 0 00 -
so I tried to install Java JDK/JRE individually
Hello :) Could you elaborate on the specific steps you too to install these packages individually? Thank you.0 -
I tried many methods to install such as this article: Install Java 8 JDK/JRE 8u45 on RHEL/CentOS 7/6/5 and Fedora 22-12 Also this: How to Install JAVA 8 (JDK 8u72) on CentOS/RHEL 7/6/5 Nevertheless, I couldn't do it. Thank you 0 -
There are some older threads that may help you address this issue: Java memory problem Could not create the Java virtual machine Also, please see this document: How to Deploy Java Applications - cPanel Knowledge Base - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
5 comments