Resin and Debuggers


Thread Dumps

If you need to know what your Resin server is doing within its threads, you can obtain a dump as follows:

  • Windows. Open a command prompt and start the server by changing to the installation's /bin directory and running the command httpd.exe. When the server has started and processed the pages you are interested in, press Ctrl-Break. The server will shut down and display where and what all the threads are currently doing.

  • UNIX. Open a command prompt and type kill -QUIT <PID>. The PID is one of the child processes for IBM's JDK and the parent process of all the threads in Sun's JDK.

Once you kill the server, output will be generated similar to that shown in Figure 12.4. Pay particular attention to the threads in the waiting-on-monitor stage, because several threads may be waiting on each other—thereby producing a deadlock.

click to expand
Figure 12.4: Resin thread dump output.




Mastering Resin
Mastering Resin
ISBN: 0471431036
EAN: 2147483647
Year: 2002
Pages: 180

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net