Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    1

    Default Running Java Outside Cpanel

    Hi there,

    I just got a new server with 4G RAM and install CPanel WHM on it.

    2 issues:

    1. The server is running at 3.8G is there a way to cap Cpanel memory usage at say 2G? (i was running the same software on a 2G machine and it ran just fine)

    2. I want to run a Java process as root, the process will run for a few hours at a time and requires 1G of RAM to run.

    is this achievable?

    Thanks.

  2. #2
    Member
    Join Date
    Aug 2009
    Location
    Houston, Tx
    Posts
    275

    Default Running Java Outside Cpanel

    Hello,

    I noticed your post, and the memory limit you are referring to would be set with the following instructions.

    First you will make your edits to httpd.conf

    Second you would save your edits and distill the file using the following: /usr/local/cpanel/bin/apache_conf_distiller --update

    (this will make the changes be applied to future Apache configuration modifications)

    Then you will need to restart the service via:
    service restart httpd
    or
    /etc/init.d/httpd restart


    As far as the issue with running the java process as root, unfortunately that would be something we could not support directly, as it would be customization of the scripts. However that is not to say it can't be done.

    I hope this helps with your issue.

    Thank you,
    Matthew Curry

Similar Threads & Tags
Similar threads

  1. Replies: 7
    Last Post: 04-28-2009, 10:12 AM
  2. running (ajax + java) shoutbox or irc applet
    By oprock in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-13-2008, 04:24 PM
  3. Java applets not running (PLEASE help)
    By Kikkorm in forum New User Questions
    Replies: 15
    Last Post: 10-12-2007, 09:35 AM
  4. java-sys missing cant get java clock to work
    By dezomat in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-18-2006, 09:04 PM
  5. Trying run a java app but have java issue
    By TJCooper in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-11-2004, 12:35 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube