Generally, the file configuration in catalina.sh is misleading, as shown in the figure:
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;