Maybe try to change the allowed memory for Tomcat in the setenv.sh file, as said here
For example :
export CATALINA_OPTS="$CATALINA_OPTS -Xms2g -Xmx4g"
(The Tomcat documentation recommend to use CATALINA_OPTS over JAVA_OPTS for memory settings, but both way work)