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.

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:
    16
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16
    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