We want to generate thread dump in JBoss 5.1.0. We are using SUSE Linux Enterprise Server 11 and Java 1.7.
First we got JBoss process id and executed below mentioned command.
jstack 16917 >> threaddump.log
We are getting command not found message.
Have you confirmed the < java_home >/bin is in your path? Jstack should be available with java 1.7. You can also check and confirm that jstack is present under your < java_home >/bin directory. Whatever user you are logging in with on the Unix SUSE box to try and execute jstack enter
> echo $PATH
and confirm that java/bin is appearing in the path. If it's not present you will need to modify the user profile and add into your path configuration.