There are 2 options when running the command to collect a new threaddump file for the agent:
- get ThreadDump for the agent matching [REGULAR EXPRESSION] for performance
- get ThreadDump for the agent matching [REGULAR EXPRESSION] for functional
If the user does not want the text format thread dump to be sent back to the CLW client then the "for performance" option should be used (lesser overhead to EM). Otherwise use the "for functional" option should be used. For both cases the thread dump is persisted on the EM. The [REGULAR EXPRESSION] in this command must match the Agent Name.
In the example below a Tomcat agent with metric name "*SuperDomain*|HostName|Tomcat|Tomcat Agent" is used:
java -Xmx128M -Duser=admin -Dpassword= -Dhost=EM_host -Dport=EM_port -jar "EM_HOME/lib/CLWorkstation.jar" get ThreadDump for the agent matching ".*HostName\|Tomcat\|Tomcat Agent.*" for functional > clw_threaddump.out 2>&1
If the thread dump creation has been successful the file clw_threaddump.out will show this type of output:
TD enable on EM = true
TD enable onTomcat Agent = true
"main" Id=1 RUNNABLE (in native)
at java.net.DualStackPlainSocketImpl.accept0(Native Method)
NOTE: If only the first line is visible then a match to the specified regex for the agent name has not been successful i.e.