Show TOC

Analyzing Thread DumpsLocate this document in the navigation structure

Use

The most-used method for an administrator to detect whether a problem occurred in the system is using thread dumps.

You can monitor and detect if an error occurs on AS Java via the System Overview tool. Then you can switch to the Thread Dump Analysis function to trigger and find out the problem.

More information: System Overview

Prerequisites

Open SAP NetWeaver Administrator.

Procedure

Triggering Thread Dumps

For a Long Running Thread

  1. In the Availability and Performance work center, choose System Overview .

  2. Go to Threads and see if a long running thread is detected.

  3. If yes, from the Long Running context menu, choose Trigger Thread Dump .

  4. The Thread Dump Analysis tool is opened.

  5. Choose Generate Thread Dump .

  6. From the dialog window, select Only Server Processes with Long Running Threads and choose OK .

  7. The archive file appears in the table. It has the Contains Red Threads column selected.

On a Particular Server Process

  1. Choose Start of the navigation path Troubleshooting  Next navigation step Advanced Troubleshooting  Next navigation step Thread Dump Analisys End of the navigation path.

  2. Choose Generate Thread Dump .

  3. Choose Custom , select a server process and then choose OK .

  4. The archive file appears in the table.

On All Server Processes

  1. Choose Start of the navigation path Troubleshooting  Next navigation step Advanced Troubleshooting  Next navigation step Thread Dump Analisys End of the navigation path .

  2. Choose Generate Thread Dump .

  3. Choose All Server Processes and then choose OK .

    The operation may take several minutes depending on the number of server processes.

  4. The archive file appears in the table.

Analyzing Thread Dumps

  1. To see and resolve the problem, select the relevant thread dump and choose Download .

  2. Save the ZIP file to your local file system.

  3. Use the Eclipse Memory Analyzer tool to open the ZIP file and to analyze the dump.

    More information: Working with the Memory Analyzer

  4. As a solution, you can decide whether to stop the application or to write a customer message.

Removing Thread Dumps

  1. Open the Thread Dump Analysis function.

  2. From the table, select the thread dump you want to delete.

  3. Choose Remove .

More Information

Thread dump analysis in SAP NetWeaver Developer Studio: Performing Thread Dump Analysis