Trying to capture thread dump to a file using kill -3
Tried
-XX:+UnlockDiagnosticVMOptions -XX:+LogVMOutput -XX:LogFile=dump.log
This works but looking for something like
jstack 17264 > /tmp/threaddump.txt
Any simple way to capture thread dump using kill -3 and output to a file using command