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!

Could not create the Java virtual machine

Discussion in 'General Discussion' started by DigiCrime, Feb 4, 2012.

  1. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    166
    When ran as a user..

    java
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.


    When ran as root it runs just fine. How do I adjust this or fix? This is a dedicated server. CentOS 4 gigs of ram quad core
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    Check to see if "Shell Fork Bomb Protection" is enabled. This option is found at:

    "WHM >> Security Center >> Shell Fork Bomb Protection"

    If it's enabled, try disabling it to see if the issue persists. Keep in mind that while disabling it should allow the user to use more resources, it can also make your server vulnerable to fork bombs.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    166
    It is turned on but I found that if my script runs as a cron, it works just fine actually I meant to update my post lol. You just can't run it from the command line directly. :rolleyes:
     
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