Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Default Tomcat not working

    Hi,

    I have installed tomcat on my Linux VPS server. I can not run JVM on my server. Jsp page can not work. I have received following error while running javac command. i have installed tomcat from the WHM but it is not working.

    root@host [/usr/local/jakarta/tomcat/bin]# javac
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.

    Please update me. Its urgent.

    Thanks,

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    3

    Default

    Hi,

    I am using below mantioned linux OS.


    Linux version 2.6.9-022stab078.21-enterprise (Red Hat Linux 3.3.3-7))

  3. #3
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,782
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by samba View Post
    Hi,

    I have installed tomcat on my Linux VPS server. I can not run JVM on my server. Jsp page can not work. I have received following error while running javac command. i have installed tomcat from the WHM but it is not working.

    root@host [/usr/local/jakarta/tomcat/bin]# javac
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the Java virtual machine.

    Please update me. Its urgent.

    Thanks,
    Sounds like you don't have enough RAM available in your VPS, thus preventing the JVM from starting. HOw much RAM does your account have?

  4. #4
    Member
    Join Date
    Dec 2006
    Posts
    13

    Default

    if you have limited RAM, you could create a setenv.sh file that gets loaded by the Tomcat startup script. Just Google it for the heap-related flags you can set. Though the default is typically 64MB and I wouldn't suggest going much lower than that so you might want to get more physical RAM.

  5. #5
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,782
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by plexihosting View Post
    if you have limited RAM, you could create a setenv.sh file that gets loaded by the Tomcat startup script. Just Google it for the heap-related flags you can set. Though the default is typically 64MB and I wouldn't suggest going much lower than that so you might want to get more physical RAM.
    Seconded. I've seen some really cheap VPS accounts places that only provide 64 MB of RAM. If that is all you have, your best option is to upgrade to at least 128 MB (though I recommend higher) and tweak the JVM runtime parameters, whether in the setenv script or the jsvc loader.

  6. #6
    Member
    Join Date
    Dec 2006
    Posts
    13

    Default

    Also, setenv will let you set the garbage collection parameters but on a low-end system you might want to stick to the defaults there too (until you upgrade)

    EDIT: Please also note that enabling Shell Fork Bomb protection could also cause this.
    Last edited by plexihosting; 12-27-2006 at 11:17 PM.

Similar Threads & Tags
Similar threads

  1. tomcat not working
    By flashweb in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 09-07-2007, 06:19 PM
  2. Tomcat always stop working...
    By its_joe in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-28-2007, 12:03 AM
  3. tomcat stopped working
    By big in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-18-2007, 06:31 PM
  4. Tomcat 4.1.12 servlets no longer working
    By deddy in forum cPanel Developers
    Replies: 2
    Last Post: 12-14-2005, 08:35 AM
  5. last night upgrade tomcat stopped working
    By big in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-25-2005, 11:47 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube