Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Troubleshooting Guide

- Previous: Client Side Logging
- Next: See if the Problem has been Solved Before

### Obtaining a Thread Dump

This section explains how to obtain a thread dump for Application Server 8.1. By default, the server dumps a core file and restarts with the `-Xrs java-option` flag in the `server.xml` file.

#### On UNIX

The following procedure describes how to obtain a server thread dump on UNIX.

#### To obtain a server thread dump on UNIX

##### Steps

1. Verify that the `server.xml` file for the affected server instance does not include the `-Xrs java-option` flag. Remove the `-Xrs java-option` flag if it exists.

2. If the option is changed, restart the server instance.

3. Use the `ps` command to determine the `java` and/or `appservDAS` processes under which the application server is running.

4. Run the following command on the application server instance:

       kill -3 pid

   The `kill` command redirects the thread dump to the `server.log` file for server the instance.

#### On Windows

The following procedure describes how to obtain a server thread dump on Windows.

#### To obtain a server thread dump on Windows

##### Steps

1. Verify that the `server.xml` file for your server instance does not include the `-Xrs` `java-option` flag. Remove the `-Xrs` `java-option` flag if it exists.

2. If the option was changed, restart your Application Server.

3. Type `ctrl-brk` in the Application Server window. The thread dump will be redirected to the `server.log` file for the instance.

- Previous: Client Side Logging
- Next: See if the Problem has been Solved Before

- © 2010, Oracle Corporation and/or its affiliates