Symptoms:
Thread dump and heap dumps are necessary for troubleshooting issues in a Pivotal tc Server instance. This KB walks through the options for obtaining these for your apps running on tc Server.
There are a couple options for obtaining a thread dump.
There are a number of ways to obtain heap dumps as well.
setenv.sh at $CATALINA_HOME/bin:
export CATALINA_OPTS="$CATALINA_OPTS -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/to/heapdumps"On Windows, edit
setenv.bat:
set CATALINA_OPTS=%CATALINA_OPTS% -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="C:\path\to\heapdumps"
These options can also be configured in wrapper.conf as described in this article.