-
1. Re: How to take Thread Dump in jboss as 7.1
wdfink Jun 1, 2013 7:20 AM (in response to rameshchokkapu)Do you start such background threads in your app? Remember that is not according to the spec.
To answer your question a thread dump can be done by a kill -3 <pid> on a Unix system or the java tool jstack <pid> the pid can be found by using the jps command.
Windows you might use the task manager.
-
2. Re: How to take Thread Dump in jboss as 7.1
rameshchokkapu Jun 1, 2013 7:42 AM (in response to wdfink)Thank you for Reply..
OS : Linux.
i am using this command to get the jboss pid 'ps aux| grep jboss'.
now i used kill -3 4207 and bin>jstack 4207.
but both are not printing any threads info into server.log
waht i have to do now?
please help me.
Thank u
-
3. Re: How to take Thread Dump in jboss as 7.1
wdfink Jun 1, 2013 8:17 AM (in response to rameshchokkapu)Thread dump are a Java feature and did not go into the server.log.
It's printed to the console yeah, sometimes difficult expecialy if you start with 2>&1 >/dev/null
If you use jstack <pid> the threaddump is printed to stdout or you can redirect it to a file.
-
4. Re: How to take Thread Dump in jboss as 7.1
rameshchokkapu Jun 1, 2013 8:34 AM (in response to wdfink)Thanku for Reply.
Dear Wolf
please explain ' difficult expecialy if you start with 2>&1 >/dev/null '
i am not undrestanding this point.
Thank You
-
5. Re: How to take Thread Dump in jboss as 7.1
wdfink Jun 1, 2013 9:44 AM (in response to rameshchokkapu)If you start the server with standalone.sh 2>&1 >/dev/null that mean the output of STDERR (2) will got to STDOUT(1) and than STDOUT will go to the null device wich mean 'nowhere'.
So you are not able to catch it