Skip to content
ewg118 edited this page Dec 29, 2014 · 3 revisions

The first step in deploying the Harvester application is to deploy Tomcat on the server. Tomcat7 is recommended over Tomcat8. In Ubuntu, this can be done via the package manager--

sudo apt-get install tomcat7

This will install Tomcat and all dependencies, including the latest Java JDK. Tomcat's home in Ubuntu is /var/lib/tomcat7 by default.

Configuring the Virtual Machine

By default, the Tomcat startup script will allot less than 500 MB of heap space to Java. Any application running Orbeon will likely require at least 1GB for test and 2GB in production, especially considering the complexity of the harvesting and transformation process.

The Orbeon wiki has documentation for configuring the virtual machine. Edit /etc/default/tomcat7 to modify the Java defaults, around line 22. The following should function well in production:

JAVA_OPTS="-server -Djava.awt.headless=true -Xms2G -Xmx2G -XX:MaxPermSize=256m -XX:NewSize=896m -XX:MaxNewSize=896m -Dlog4j.configuration=/var/lib/tomcat7/lib/log4j.properties"
JAVA_OPTS="${JAVA_OPTS} -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled"
Clone this wiki locally