Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    604
    Likes Received:
    43
    Trophy Points:
    28
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. afndeveloper

    afndeveloper Member

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

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice