Difference between revisions of "Set the environment variables for tomcat"

From MyWiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
  export CATALINA_HOME=/usr/local/src/tomcat6
 
  export CATALINA_HOME=/usr/local/src/tomcat6
 
  export CATALINA_BASE=/usr/local/src/tomcat6
 
  export CATALINA_BASE=/usr/local/src/tomcat6
 +
 +
Edit the TOMCAT_HOME/bin/catalina.sh file and add the JAVA_OPTS variable as:<br>
 +
JAVA_OPTS="-Djava.awt.headless=true -Xmx512M
 +
-XX:MaxPermSize=128M -Dcom.sun.security.enableCRLDP=true"

Latest revision as of 19:10, 27 April 2015

Add below to .bash_profile

export JAVA_HOME=/usr/local/src/java6-source/jdk1.6.0_25
export PATH=$JAVA_HOME/bin:$PATH
export CATALINA_HOME=/usr/local/src/tomcat6
export CATALINA_BASE=/usr/local/src/tomcat6

Edit the TOMCAT_HOME/bin/catalina.sh file and add the JAVA_OPTS variable as:

JAVA_OPTS="-Djava.awt.headless=true -Xmx512M
-XX:MaxPermSize=128M -Dcom.sun.security.enableCRLDP=true"