Results 1 to 4 of 4

Thread: Trying run a java app but have java issue

  1. #1
    Member
    Join Date
    Sep 2003
    Location
    St. Louis, MO
    Posts
    22

    Default Trying run a java app but have java issue

    I am try to run this command (some fields changed for privacy) in ssh to start it

    Code:
    cd /home/USERNAME/;nohup /usr/bin/j2sdk1.4.2_03/bin/java -jar jwwim_server_sql2.jar 127.0.0.1 USERNAME_DATABASENAME USERNAME_DATABASEUSERNAME DATABASEPASS PORTNUMBER
    I can run it with no problems as root but get this error if i run as the user

    Code:
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Any ideas???

    I also tried putting the java installation in the users folder and still no luck..
    Trevor Cooper
    Nexsus Networks
    tcooper@nexsusnetworks.net

  2. #2
    Member
    Join Date
    Jun 2003
    Posts
    33

    Default

    same issue here... someone please post info...

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    33

    Default Problem Found

    java needs a lot of system resources, cpanel puts some ulimit restrictions in /etc/bashrc to limit normal users... with these default ulimit settings java uses more than its share and gets killed... if you comment out those lines and re-login you will be able to run it... i am currently looking for correct ulimit settings soi you can still limit users to some degree and let them use java... i will post those later...

  4. #4
    Member
    Join Date
    Sep 2003
    Location
    St. Louis, MO
    Posts
    22

    Default

    instead of editing /etc/bashrc I added this to the command -Xmx48M like here below...

    Code:
    cd /home/USERNAME/;
    nohup /usr/bin/j2sdk1.4.2_03/bin/java -Xmx48M -jar jwwim_server_sql2.jar 127.0.0.1 USERNAME_DATABASENAME USERNAME_DATABASEUSERNAME DATABASEPASS PORTNUMBER
    Trevor Cooper
    Nexsus Networks
    tcooper@nexsusnetworks.net

Similar Threads

  1. Java app problem (OpenJDK RE 1.6.x)
    By PPNSteve in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 10-07-2009, 01:26 PM
  2. Replies: 7
    Last Post: 04-28-2009, 10:12 AM
  3. How do we run Java with /tmp noexec ?
    By mydomain in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 02-19-2008, 04:33 PM
  4. java-sys missing cant get java clock to work
    By dezomat in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 04-18-2006, 09:04 PM
  5. client run JAVA application from regular shell
    By jeroman8 in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 03-09-2005, 10:53 AM