51 Viewing Thread Information

You can download or view thread dumps to analyze the runtime state of the application server. This can be especially useful when trying to detect problems that could result in resource starvation or thread hangs.

To download or view thread information:

  1. In the General Admin tree, expand the Admin node, expand the System Tools node, expand the System Information node, and then double-click Thread Info.

    The Thread Information form is shown.

  2. The Regular Expression check box is selected by default. This option enables you to use Java regular expressions to search for thread names.

    Examples:

    • Thread.* to find Thread-0, Thread-1, and Thread-3

    • .*thread.* to find pool-6-thread-1, pool-8-thread-1, and pool-14-thread-2

    If you deselect the check box, you must search for exact thread names.

  3. In the Thread Name field, enter the thread name or text string to search for.
  4. To limit your search to one or more thread states, select the state(s) in the States field. If you do not select a state, all states are searched.
  5. To download the selected thread information as a text file for use with a thread dump analyzer, click Download and then open or save SysInfo.zip. The text file is inside SysInfo.zip.

    Note:

    Downloading thread information is possible only in the following cases:

    • WebCenter Sites JDK includes a compatible jstack utility.

    • The first JDK listed in your operating system's library path includes a jstack utility that is compatible with WebCenter Sites JDK.

    If a compatible jstack is not found, the following message is shown: "Thread dump feature is not supported for this platform."

  6. To view the selected thread information in the administrator's interface, click Show Results.

    For each thread matching the search, the following information opens:

    • Name

    • ID

    • State

    • Total time the CPU executed the thread

    • Total time the thread was in user mode

    • Number of times it was blocked and waited

    • How long it was blocked and waited

    • Object for which it is waiting

    • Stack trace