PDA

View Full Version : How Do I Generate a Stack Trace/Thread Dump on Windows


rajib
04-09-2009, 07:32 PM
While troubleshooting issue (often with) the DGE, support engineers may ask for a stack trace/thread dump for the DGE component. On Linux/Solaris it is as simple as sending a SIGQUIT to the corresponding Java process. On Windows, the process involves few more steps:

a. Log into the console of the server where DGE is running. If this is a remote server, make sure to Remote Desktop into the console (mstsc.exe /console)

b. Launch Windows Task Manager and click on View -> Select Columns. Enable (check) the "PID" option and click on OK.

c. On the "Processes" tab, sort the output by "Image Name" and locate "monitor.exe" (for the DGE component; this will be "webapp.exe" for Web Application). Make a note of the PID for this process.

d. Launch a web browser (on the same server) and navigate to http://www.adaptj.com/main/download. Click on the "Launch" button on that page. When prompted, select the "Open" option. It may be necessary to associate the ".jnlp" extension with TRAVERSE_DIR\apps\jre\bin\javaws.exe

e. Click on the "gear" icon next to "Process ID". From the drop-down list, select "javaw.exe" with "parent:nnn" where nnn is PID noted earlier.

f. Click on Process -> Thread Dump. The output can be copied and sent to the support team for further analysis.