tomcat configures jvm memory and specifies the jdk version used for running

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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326161823&siteId=291194637