When starting Tomcat, you will need to configure some environment variables to accommodate the files that will be loaded when Tomcat and SHRINE start up. This can include the ontology that SHRINE uses for queries, as well as the Adapter Mapping file that SHRINE uses to map to the ontology. To avoid issues with resourcing and potential memory leaks, we need to ensure that Tomcat has enough resources to operate.

Please set up a 'setenv.sh' file within the Tomcat/bin directory:

# Set Tomcat options to prevent hanging thread on shutdown
export CATALINA_OPTS=" -XX:MaxPermSize=256m -Dakka.daemonic=on "

# Set Tomcat options to prevent resource problems with larger ontology v2.0.1
export CATALINA_OPTS="$CATALINA_OPTS -server -Xms1024m -Xmx2048m -Duser.timezone=America/New_York
  • No labels