Products | Versions |
---|---|
TIBCO Data Virtualization | All supported versions |
This article provides the details to generate Heap Dump for a TIBCO Data Virtualization(TDV) Server running on Linux machine.
Option I: Using the Java 'jmap' utility
1. From Linux terminal, run the following command to find the PID of the TDV Server.
ps -ef | grep ServerBoot
Screenshot for reference:
In this example, the PID is 223844.
2.Navigate to [TDV_Install_Dir]/jdk/bin path. Run the 'jmap' utility shipped with TDV 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:
Optional - If TIBCO Support requested for 'all' objects instead of only live objects, update the flag -dump:all
Screenshot for reference:
Option II: Using TDV "Composite_dumpHeap" utility:
1. From Linux terminal, 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:
-bash>./composite_dumpHeap.bat HeapDump.hprof 12:12:20.098 [main] ERROR logging.monitor.stdout - Monitor - [dumpheap, HeapDump.hprof] 12:12:20.122 [main] ERROR logging.monitor.stdout - 12:12:29.074 [main] INFO com.compositesw.monitor.Monitor - Generated heap dump to file: /TIBCO/8.7Sid9100/HeapDump.hprof
Screenshot for reference: