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.
Add CATALINA_OPTS to /opt/shrine/tomcat/bin/setenv.sh . Set -Xmx to use all but one gigabyte of your system; for example give it 3GB on a 4GB system.
No matter which option you choose to install the JDK, be sure that your tomcat environment use the correct "JAVA_HOME" and "JRE_HOME" values. Set JAVA_HOME and JRE_HOME in /opt/shrine/tomcat/bin/setenv.sh :