How to get Java Thread Dump
Get thread dump of java on UNIX
Please make sure Java runnning without "-Xrs" JVM option and "&"
for background process.
On terminal window, check Java's process ID by using "ps" command.
Then, execute "kill -3 pid" for sending "SIGQUIT" signal.
Java Thread Dump will be generated to standard out or nohup.out or javacorexxx.txt
Get thread dump of java on Windows command prompt
Please make sure Java runnning without "-Xrs" JVM option.
Ctrl+Pause(Break) on the command prompt window
You should increase Screen Buffer Height size on Layout tab of command
prompt property.
Get thread dump of java on Windows Service
Shutdown Java.
Open server.bat by notepad or some editor
For using jdb, add some jdb parameters to "JAVA2_MEMSET" environment valiable;
ex) -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5556
rf) http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/jdb.html
For reflecting this modification to registry, execute "server.bat -service" once on Command Prompt.
Start Java from control panel.
On command prompt, execute jdb like;
ex) %JAVA_HOME%\bin\jdb -connect com.sun.jdi.SocketAttach:hostname=localhost,port=5556
Execute "suspend" command for suspending all process
Execute "where all" command for getting all java process info
Execute "resume" command for resuming all process
Exit jdb