You need to increase Tomcat's VM memory limits, especially the one controlled by the "-xMx" option.
A good way to do that is to create a file named TOMCAT_HOME/bin/setenv.sh or TOMCAT_HOME\bin\setenv.bat and put a JAVA_OPTS assignment statement in it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
a bit of art, as a gift, that will fit in a stocking