+ Reply to Thread
Results 1 to 2 of 2

Thread: Best way to install Tomcat on Centos?

  1. #1
    ScaredKitten is offline x10Hosting Member ScaredKitten is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    1

    Best way to install Tomcat on Centos?

    I once did the mistake of installing tomcat while I had apache and php which made things very confusing. I want a way of safely installing Tomcat on my VPS and disabling Apache first

    I am bored with php, so now I want to try something else

  2. #2
    dfgo12 is offline x10Hosting Member dfgo12 is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    3

    Re: Best way to install Tomcat on Centos?

    I am using Tomcat with the S1 VPS package. There are a few things I would suggest.

    1. Use the Sun JDK package rather than Open JDK. This saves about 80Mb of RAM which is useful.

    2. You will need to set limits on Tomcat's JVM to stay within the available RAM. Edit the file '/etc/tomcat6/tomcat6.conf and set the line 'JAVA_OPTS' to something like this:

    JAVA_OPTS="-Xminf0.1 -Xmaxf0.6 -Xms64m -Xmx64m -Xss128k -Xmn16m -XX:MaxPermSize=64m"'.

    This limits the Heap (-Xmx) to 64Mb and the permgen memory (-XX:MaxPermSize) to 64Mb also. If you have a 1Gb allowance you can increase these values.

    3. I use Apache as a front end to Tomcat as I find the server is more responsive when configured this way. You need to use the mod_jk package for Apache to do this. It's a bit complicated to set up but worth the effort.

    Derek

    '

+ Reply to Thread

Similar Threads

  1. Apache Tomcat 6 needed
    By branstetter16 in forum Free Hosting
    Replies: 2
    Last Post: 09-04-2010, 04:09 AM
  2. need tomcat
    By baladun in forum Feedback and Suggestions
    Replies: 1
    Last Post: 03-26-2010, 03:33 AM
  3. Apache Tomcat Support?
    By zapzack in forum Feedback and Suggestions
    Replies: 21
    Last Post: 11-03-2009, 01:15 PM
  4. Tomcat
    By lhyman in forum Feedback and Suggestions
    Replies: 4
    Last Post: 08-10-2009, 07:54 PM
  5. Tomcat
    By templeofgod in forum Free Hosting
    Replies: 1
    Last Post: 04-01-2008, 01:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers