Hi, On 2 February 2011 13:21, jan gestre <ipcopper...@gmail.com> wrote: <snip> > Hi Olaf and Brett, > > I already made those changes similar to what is mentioned here --> > http://spiralbound.net/blog/2008/03/17/rhel-system-configuration-changes-for-oracle-10g, > it appears that the changes improved the performance, the system no > longer chokes. However I still want to optimize other settings like > JVM configuration to further enhance systems performance, > unfortunately I have where to find the JVM config.
It depends whether you're using the RedHat supplied (or EPEL) tomcat RPM or a download from Apache. (a) downloaded from Apache (I use this): Read the RUNNING.TXT (for background info). JVM configuration for Tomcat is usually in setenv.sh which is normally in: $CATALINA_BASE/bin/setenv.sh (CATALINA_BASE == CATALINA_HOME by default) (b) RHEL5 supplied RPM Environment variables are configured in the file: /etc/sysconfig/tomcat In either case, the environment variables you need to set are: CATALINA_OPTS: used during START only JAVA_OPTS: used during both START and STOP operations. Normally JVM heap size, GC logging etc are set in CATALINA_OPTS since they are only valid on START operations. The only thing I normally place in JAVA_OPTS is: -Djava.awt.headless=true and library path (if running on X86_64 systems) Sample setenv.sh is included below (X86_64, RHEL5, Tomcat 6.0.30) YMMV: In my configuration I have simple wrapper start/stop scripts that set the following environment variables prior to calling catalina.sh start / stop. This permits multiple Tomcat instances on a single server. Very difficult to do with stock RHEL5 Tomcat RPM CATALINA_HOME=/opt/tomcat6 (points to where binaries are installed) CATALINA_BASE=/home/tomcat/tc1 (points to instance) CATALINA_PID=${CATALINA_BASE}/temp/tomcat.pid -- ${CATALINA_BASE}/bin/setenv.sh -- CATALINA_OPTS="-d64 -Xmx2048m -XX:MaxPermSize=384m \ -Dcom.sun.management.snmp.port=<xxx> \ ... other jmxremote / snmp parameters as needed \ -verbose:gc -Xloggc:${CATALINA_BASE}/logs/gc.log \ -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps \ -XX:HeapDumpPath=${CATALINA_BASE}/temp \ -XX:+HeapDumpOnOutOfMemoryError \ -Dorg.apache.catalina.startup.EXIT_ON_INIT_FAILURE=true \ -DjvmRoute=jvm1" JAVA_HOME=/usr/lib/jvm/java JAVA_OPTS="-Djava.awt.headless=true -Djava.library.path=/usr/lib64" Good luck! > > Cheers! > > Jan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Best Regards, Brett Delle Grazie --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org