Difference between revisions of "Notes on csrdu.org"

From MyWiki
Jump to: navigation, search
Line 9: Line 9:
 
Edit the TOMCAT_HOME/bin/catalina.sh file and add the JAVA_OPTS variable as:<br>
 
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"<br>
 
JAVA_OPTS="-Djava.awt.headless=true -Xmx512M -XX:MaxPermSize=128M -Dcom.sun.security.enableCRLDP=true"<br>
3. Edit server.xml to configure autodeploy.
+
3. Edit server.xml to configure autodeploy to false ( maybe not )
 +
<Host  appBase="webapps" unpackWARs="true" autoDeploy="false"
 +
xmlValidation="false" xmlNamespaceAware="false">

Revision as of 08:46, 21 April 2015

1. Install java JDK and tomcat, setting the following environtment variables for Tomcat ( add 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

2. Set java memory options :
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"
3. Edit server.xml to configure autodeploy to false ( maybe not ) <Host appBase="webapps" unpackWARs="true" autoDeploy="false" xmlValidation="false" xmlNamespaceAware="false">