-
Notifications
You must be signed in to change notification settings - Fork 402
Troubleshooting
Follow the server logs in case of errors:
- apache-tomcat-x/logs/catalina.out
- apache-tomcat-x/logs/asgard.log
If you cannot determine the solution, post in the Asgard user forum linked from Support.
If your account contains a large number of cloud objects you might need to increase Asgard’s memory footprint. It’s also advisable to change the JVM garbage collection settings. To do make these changes, create a setenv.sh file in apache-tomcat-x/bin/ similar to the following code block, then restart Tomcat.
if [ "$1" == "start" ]; then
export JAVA_OPTS=" \
-verbose:sizes \
-Xmx4g -Xms4g \
-Xmn2g \
-XX:MaxPermSize=128m \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:-UseGCOverheadLimit \
-XX:+ExplicitGCInvokesConcurrent \
-XX:+PrintGCDateStamps -XX:+PrintGCDetails \
-XX:+PrintTenuringDistribution \
-XX:+CMSClassUnloadingEnabled \
-XX:+UseConcMarkSweepGC \
"
else
export JAVA_OPTS=""
fi
If you want to diagnose the state of a misbehaving server, run this command to dump the current threads to catalina.out:
kill -3 `ps -ef | grep java.*tomcat | grep -v grep | awk '{print$2}'` &
On Mac or Linux, if shutdown.sh does not successfully stop Tomcat, run this command to kill the Tomcat process:
kill -9 `ps -ef | grep java.*tomcat | grep -v grep | awk '{print$2}'` &
A Netflix Original Production
Tech Blog | Twitter @NetflixOSS | Jobs