Documentation page for latest APM 10.7 version:
https://docops.ca.com/ca-apm/10-7/en/implementing-agents/java-agent/configure-java-monitoring/configure-thread-dumps1. By default the thread dump file will be created in the folder <EM_HOME>/threaddumps, where EM_HOME is the home directory of the Collector for the relevant agent.
2. The text format thread dump returned to the CLW client will have the stack truncated if there are more than 10 elements (this is non-configurable) and this is the same result as when saving the thread dump from the Workstation Investigator UI using option "Save as Text button"
3. To see the full thread dump stack requires loading it into the Workstation Investigator UI and viewing with any other external thread analysis tool will likely result in errors.
4. To retrieve the list of already collected threaddump file names use the command:
get List of ThreadDump filenames for the agent matching [REGULAR EXPRESSION]For example:
java -Xmx128M -Duser=admin -Dpassword= -Dhost=EM_host -Dport=EM_port -jar "EM_HOME/lib/CLWorkstation.jar" get List of ThreadDump filenames for the agent matching ".*HostName\|Tomcat\|Tomcat Agent.*"The output will show:
.*HostName\|Tomcat\|Tomcat Agent.*emConnection=available
TD enable on EM = true
TD enable onTomcat Agent = true
HostName_Tomcat_Tomcat_Agent_TD_1531962786959
5. Per the usual CLW usage the command can also be included as part of shell\batch file and subsequently invoked via Shell Command Action for any required alert.