...
Install in the tomcat home directory
Change the settings for:
- JAVA_HOME
according to your setup.
Also change memory configuration (especially the maximum memory –Xmx) according to the memory on your server and server tuning.
Code Block | ||
---|---|---|
| ||
## Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs # base settings export PATH=$PATH:$HOME/bin # java export JAVA_HOME=/opt/java/jre6 export PATH=$PATH:$JAVA_HOME/bin # JAVA_OPTS standard settings export JAVA_OPTS='-Xms5000m -Xmx15000m -Xss1024k -verbose:gc -Djava.awt.headless=true' # JAVA_OPTS remove debug settings # export JAVA_OPTS='-Xms5000m -Xmx15000m -Xss1024k -verbose:gc -Djava.awt.headless=true -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n' # JAVA_OPTS profiler settings # export JAVA_OPTS="-Xms5000m -Xmx15000m -Xss512k -verbose:gc $JPROFILER_OPTS" # tomcat export TOMCAT_HOME=/opt/tomcat export PATH=$PATH:$TOMCAT_HOME/bin |
...