How to capture a Heap Dump for TIBCO Data Virtualization running on Windows?

How to capture a Heap Dump for TIBCO Data Virtualization running on Windows?

book

Article ID: KB0071349

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization All supported versions

Description

This article provides the details to capture a Heap Dump for TIBCO Data Virtualization(TDV) Server running on Windows machine. 

Issue/Introduction

How to capture a Heap Dump for TIBCO Data Virtualization running on Windows?

Environment

All Supported Operating Systems

Resolution

Option I: Using the Java 'jmap' utility 
1. Find the PID of the TDV Sever. Open Task Manager > Details tab > Find 'java.exe' 
To verify it is the right 'java.exe' > right-click and select Properties. It will show the path to [TDV_Server_dir]\jdk\bin.  

User-added image
 
2.Open Command Prompt. Run the 'jmap' utility shipped with TDV (in the [TDV_Install_Dir]/jdk/bin folder) to get a heap dump for the PID, as shown in the example below.
jmap -dump:live,format=b,file=\tmp\heap_dump_live.hprof <pid>
==> Heap dump files created

Note:
<pid> is the PID found in step1. 
file is a path to a directory on the same machine 

Screenshot for reference-
User-added image


Option II: Using TDV "Composite_dumpHeap" utility: 
1. From Command Prompt, navigate to <TDV_install_dir>/bin.
2. Enter the composite_dumpHeap syntax:
usage: composite_dumpheap.bat filepath
Dump CIS heap memory to the specified file. If this file exists it will be regenerated.

Example: 
C:\Program Files\TIBCO\TDV Server 8.7.0-9400\bin>composite_dumpHeap.bat HeapDump.hprof
16:29:47.792 [main] ERROR logging.monitor.stdout - Monitor - [dumpheap, HeapDump.hprof]
16:29:47.795 [main] ERROR logging.monitor.stdout -
16:29:50.145 [main] INFO  com.compositesw.monitor.Monitor - Generated heap dump to file: C:\Program Files\TIBCO\TDV Server 8.7.0-9400\bin\HeapDump.hprof

Screenshot for reference:
User-added image