Ask the Community
Groups
Generate a heap memory dump for a Traverse component - Connect IT Community | Kaseya
<main> <article class="userContent"> <p><strong>QUESTION:</strong></p> <p>How do I generate a Heap Memory dump for a particular Traverse component?</p> <p><strong>SOLUTION:</strong></p> <p><em>These steps assume that the component is listed as running within the Traverse Service Controller (or ./etc/traverse.init status for Linux).</em></p> <p><strong>On a Linux server:</strong></p> <ul><li>First install a JDK on the Traverse Linux server, if not already installed:</li> </ul><div> <pre class="code codeBlock" spellcheck="false" tabindex="0">sudo yum install java-1.6.0-openjdk-devel </pre> </div> <ul><li>Next determine the process ID of the Traverse component (see <a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fkaseya.zendesk.com%2Fentries%2F92066808-How-to-determine-PID-process-ID-of-a-Traverse-component%29">https://kaseya.zendesk.com/entries/92066808-How-to-determine-PID-process-ID-of-a-Traverse-component)</a></li> <li>Generate a heap dump from a shell prompt using the 'jmap' utility included with the JDK and substituting the correct process ID instead of '9999' and specifying an appropriate output file name;</li> </ul><div> <pre class="code codeBlock" spellcheck="false" tabindex="0">sudo jmap -dump:format=b,file=/tmp/jvm.hprof 9999 Dumping heap to /tmp/jvm.hprof ... Heap dump file created </pre> </div> <p> </p> <p><strong>On a Windows server:</strong></p> <ul><li>Download and install the Oracle JDK (<a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fwww.oracle.com%2Fjava%2F%29">https://www.oracle.com/java/)</a></li> <li>Determine the process ID of the Traverse component (see <a href="/home/leaving?allowTrusted=1&target=https%3A%2F%2Fkaseya.zendesk.com%2Fentries%2F92066808-How-to-determine-PID-process-ID-of-a-Traverse-component%29">https://kaseya.zendesk.com/entries/92066808-How-to-determine-PID-process-ID-of-a-Traverse-component)</a></li> <li>From the 'bin' folder in the JDK installation location, run the 'jmap' utility, substituting the correct process ID and an appropriate output file name. For example;<br><br>cd C:\Program Files\Java\jdk1.7.0_45\bin <blockquote class="blockquote"> <p>jmap -dump:format=b,file=jvm.hprof 9999<br>Dumping heap to C:\Program Files\Java\jdk1.7.0_45\bin\jvm.hprof ...<br>Heap dump file created</p> </blockquote> </li> </ul><p> </p> <div> <p> </p> <p><strong>RELATED ARTICLES:</strong></p> <p><a rel="nofollow" href="https://kaseya.vanillacommunities.com/kb/articles/aliases/kaseya/hc/en-gb/articles/229042268">Generating A Heap Dump Using JConsole</a></p> <p> </p> </div> </article> </main>