![](https://img-blog.csdnimg.cn/img_convert/ab40958e80454da2b7d4232795c1d574.png)
Generally, the file configuration in catalina.sh is misleading, as shown in the figure:
![](https://img-blog.csdnimg.cn/img_convert/474bdc301bba421eaa92615ae95ac1ca.png)
solve:
Add to:
About 125 lines:
#-Djava.security.egd=file:/dev/./urandom
#Set tomcat memory
#JAVA_OPTS="-server -Xms1024m -Xmx4096m -XX:PermSize=128M -XX:MaxPermSize=128m"
#Open the debug port
JAVA_OPTS="-server -Xms4048M -Xmx4048M -XX:MetaspaceSize=512M -XX:MaxNewSize=1048M -XX:MaxMetaspaceSize=1048M"
#CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9180"
#CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9180"
About 375 lines:
CATALINA_OPTS="$CATALINA_OPTS -javaagent:/web/license/classfinal-fatjar.jar='-nopwd'";
export CATALINA_OPTS;