The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Java JDK/JRE installation error

Discussion in 'EasyApache' started by afndeveloper, Feb 10, 2016.

  1. afndeveloper

    afndeveloper Member

    Joined:
    Feb 10, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Turkey
    cPanel Access Level:
    Root Administrator
    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
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    319
    Likes Received:
    23
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    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
     
  3. afndeveloper

    afndeveloper Member

    Joined:
    Feb 10, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Turkey
    cPanel Access Level:
    Root Administrator
    Thank you for your response. I upgraded my server, but I still have same error. Ram status now:

    Code:
                                    total       used       free     shared    buffers     cached
    Mem:                            2048         786       1261          4          0        405
    -/+ buffers/cache:                           381       1666
    Swap:                              0          0          0
    
     
    #3 afndeveloper, Feb 10, 2016
    Last edited: Feb 10, 2016
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you elaborate on the specific steps you too to install these packages individually?

    Thank you.
     
  5. afndeveloper

    afndeveloper Member

    Joined:
    Feb 10, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Turkey
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page