set JAVA_OPTS=-Xms512m -Xmx1024m -XX:PermSize=128M -XX:MaxPermSize=256M
Insert before the first line set
If it is a linux system, modify the bin/catalina.sh file in the same way
The content is: JAVA_OPTS='-Xms1024m -Xmx4096m -XX:PermSize=512M -XX:MaxPermSize=1024M'
If you need to formulate the jdk that tomcat runs, also modify the bin/catalina.sh file.
Add the following:
export JAVA_HOME=/work/java/jdk1.7.0_80