tomcat troubleshooting
Issue 1:
Solve:
vim /tomcat home dir/bin/catalina.sh
add the following line:
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1024m -Xmx1024m -XX:NewSize=512m -XX:MaxNewSize=512m -XX:PermSize=512m -XX:MaxPermSize=512m"
Issue 2:
`SEVERE: The web application [/name] appears to have started a thread named [Prototyper] but has failed to stop it. This is very likely to create a memory leak.`
Solve:
tomcat did not shutdown properly
vim /tomcat home dir/bin/catalina.sh
add the following line after PRGDIR=dirname "$PRG"
:
1 | if [ -z "$CATALINA_PID" ]; then |
==============================bin/shutdown.shexec "$PRGDIR"/"$EXECUTABLE" stop -force "$@" #add -force