-
Notifications
You must be signed in to change notification settings - Fork 22
Installing Tomcat
Ethan Gruber edited this page May 26, 2021
·
6 revisions
The first step in deploying Numishare is to deploy Tomcat on the server.
sudo apt-get install tomcat9
This will install Tomcat and all dependencies, including the latest Java JDK. Tomcat's home in Ubuntu is /var/lib/tomcat9 by default.
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/tomcat9 to modify the Java defaults. The following should function well in production:
JAVA_OPTS="-server -Djava.awt.headless=true -Xms2G -Xmx2G"