Where is a thread dump saved for TIBCO Data Virtualization 8.5 and TIBCO Business Directory 8.5 running on Windows?

Where is a thread dump saved for TIBCO Data Virtualization 8.5 and TIBCO Business Directory 8.5 running on Windows?

book

Article ID: KB0072597

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization 8.5.x

Description

Where is a thread dump saved for TIBCO Data Virtualization 8.5 and TIBCO Business Directory 8.5 running on Windows?

Resolution

For TDV (TIBCO Data Virtualization) 8.5 running on Windows, there are two common ways to obtain a thread dump.

Approach 1: Click on the Free Unused Memory button located under the Memory Graph in TDV Studio.

       User-added image

A thread dump will be written to cs_server_status.log. Below is an example entry from cs_server_status.log:

        ----------------
        INFO 2022-02-01 14:03:29.929 -0800 StatusReporter - 
                        ...
        | Thread Dump |
           "main" Id=1 WAITING on java.lang.Class@1d057a39
               at java.base@11.0.8.0.4/java.lang.Object.wait(Native Method)
         ----------------

Approach 2: Use the jstack utility bundled with the TDV installation.

This approach is useful if it is not possible to click on the Free Unused Memory button because TDV Studio is currently unable to connect to the TDV server. The steps are below.

1.  Obtain the PID of the TDV server "java.exe" process from the Task Manager. 

              User-added image

Please ensure that you look at "java.exe" and not at "javaw.exe" (the latter is the TDV Studio process).

If multiple "java.exe" processes are listed in the Task Manager, identify the correct process as follows.
  • Right-click on the process in the Task Manager.
  • Select Properties from the pop-up menu that appears. 
  • Click on the General tab, and review the Location field. The field should display the TDV installation folder as shown below.
              User-added image

2.   Open a command prompt window in Administrator mode.

              User-added image

3.   Run the following command in the window
                 <TDV_INSTALL_DIR>\jdk\bin\jstack < PID>
      The thread dump will appear in the window as shown below.

                   User-added image

For TIBCO Business Directory 8.5 running on Windows, use the  jstack utility bundled with the BD installation to generate a thread dump. The steps are below.

1.   Obtain the PID of the BD "java.exe" process from the Task Manager. 

If multiple "java.exe" processes are listed in the Task Manager, identify the correct process as follows.
  • Right-click on the process in the Task Manager.
  • Select Properties from the pop-up menu that appears. 
  • Click on the General tab, and review the Location field. The field should display the BD installation folder as shown below.
              User-added image

2.   Open a command prompt window in Administrator mode.

              User-added image

3.   Run the following command in the window
                <BD_INSTALL_DIR>\jdk\bin\jstack < PID>
      The thread dump will appear in the window as shown below.
 
              User-added image
     

 

Issue/Introduction

Where is a thread dump saved for TIBCO Data Virtualization 8.5 and TIBCO Business Directory 8.5 running on Windows?