Showing posts with label stack trace. Show all posts
Showing posts with label stack trace. Show all posts

Tuesday, October 21, 2008

How to generate stacktrace

Requesting stackTrace on linux

kill -"quitsignal" "pid"

How to find the signal?

Execute kill -l to get a list of signals and their numbers. See which is the one for QUIT, usually it would be QUIT OR SIGQUIT and number would be 3 based on your OS. Then send quit signal as below:

kill -3 "pid" OR kill -s SIGQQUIT "pid"

The dump file would be created in the corresponding profile directory or the place where it is configured. If you have a open console where process is running, then we can generate the dump by pressing \. On windows we need to press

Getting stackTrace on JBOSS by using JMX console. Select the MBean 'type=ServerInfo' under jboss.system. Invoke the operation listThreadDump() to get the required output.

This link explains clearly how to read stack traces.