<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1176 How to generate a Java heap dump</title><link>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1176 How to generate a Java heap dump</title><link>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump</link><pubDate>Thu, 21 Dec 2023 15:33:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6557ae17-3417-4542-ba68-2f1630004ad4</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump#comments</comments><description>Current Revision posted to Appian Knowledge Base by Maggie Deppe-Walker on 12/21/2023 3:33:17 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian Technical Support might ask you to provide them with Java heap dumps to troubleshoot memory leaks, performance issues, etc. There are different ways of generating this file. This article describes the most common way of generating a heap dump. Please note that these commands should be run on the application server machine when collecting a heap dump of the application server&amp;#39;s Java process.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click Windows Command Processor and select &lt;strong&gt;Run as administrator&lt;/strong&gt;). For Linux, open a new Terminal session.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;JAVA_HOME&amp;gt;/bin&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the following command (replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the path to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;PID of Java Process&amp;gt;&lt;/code&gt; with the ID of the Java process):
&lt;pre&gt;&lt;code&gt;jmap -dump:format=b,file=&amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; &amp;lt;PID of Java Process&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The &lt;code&gt;jmap&lt;/code&gt; command will generate a file named &lt;strong&gt;heapdump.hprof&lt;/strong&gt; under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;To determine the ID of the Java process, run &lt;code&gt;ps -ef | grep java&lt;/code&gt; in Linux or open &lt;strong&gt;Windows Task Manager&lt;/strong&gt; and go to the &lt;strong&gt;Processes&lt;/strong&gt; tab in Windows.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note: the raw heap dump file may contain sensitive information from your Appian environment. Appian support will provide steps on your support ticket for analyzing the .hprof file captured.&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, application server, how-to&lt;/div&gt;
</description></item><item><title>KB-1176 How to generate a Java heap dump</title><link>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump/revision/5</link><pubDate>Wed, 03 May 2023 14:23:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6557ae17-3417-4542-ba68-2f1630004ad4</guid><dc:creator>Kevin Kleinegger</dc:creator><comments>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Kevin Kleinegger on 5/3/2023 2:23:11 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian Technical Support might ask you to provide them with Java heap dumps to troubleshoot memory leaks, performance issues, etc. There are different ways of generating this file. This article describes the most common way of generating a heap dump. Please note that these commands should be run on the application server machine when collecting a heap dump of the application server&amp;#39;s Java process.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click Windows Command Processor and select &lt;strong&gt;Run as administrator&lt;/strong&gt;). For Linux, open a new Terminal session.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;JAVA_HOME&amp;gt;/bin&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the following command (replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the path to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;PID of Java Process&amp;gt;&lt;/code&gt; with the ID of the Java process):
&lt;pre&gt;&lt;code&gt;jmap -dump:format=b,file=&amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; &amp;lt;PID of Java Process&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The &lt;code&gt;jmap&lt;/code&gt; command will generate a file named &lt;strong&gt;heapdump.hprof&lt;/strong&gt; under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;To determine the ID of the Java process, run &lt;code&gt;ps -ef | grep java&lt;/code&gt; in Linux or open &lt;strong&gt;Windows Task Manager&lt;/strong&gt; and go to the &lt;strong&gt;Processes&lt;/strong&gt; tab in Windows.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note: the raw heap dump file may contain sensitive information from your Appian environment. Appian support will provide steps on your support ticket for analyzing the .hprof file captured.&lt;/span&gt;&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed: May 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, application server, how-to&lt;/div&gt;
</description></item><item><title>KB-1176 How to generate a Java heap dump</title><link>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump/revision/4</link><pubDate>Tue, 19 Dec 2017 16:24:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6557ae17-3417-4542-ba68-2f1630004ad4</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Parmida Borhani on 12/19/2017 4:24:23 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian Technical Support might ask you to provide them with Java heap dumps to troubleshoot memory leaks, performance issues, etc. There are different ways of generating this file. This article describes the most common way of generating a heap dump. Please note that these commands should be run on the application server machine when collecting a heap dump of the application server&amp;#39;s Java process.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click Windows Command Processor and select &lt;strong&gt;Run as administrator&lt;/strong&gt;). For Linux, open a new Terminal session.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;JAVA_HOME&amp;gt;/bin&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the following command (replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the path to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;PID of Java Process&amp;gt;&lt;/code&gt; with the ID of the Java process):
&lt;pre&gt;jmap -dump:format=b,file=&amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; &amp;lt;PID of Java Process&amp;gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The &lt;code&gt;jmap&lt;/code&gt; command will generate a file named &lt;strong&gt;heapdump.hprof&lt;/strong&gt; under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If Technical Support requests that you capture a heap dump without running Java Garbage Collection, use the following command:&lt;/p&gt;
&lt;pre&gt;jmap -dump:live,format=b,file=&amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; &amp;lt;PID of Java Process&amp;gt;&lt;/pre&gt;
&lt;p&gt;To determine the ID of the Java process, run &lt;code&gt;ps -ef | grep java&lt;/code&gt; in Linux or open &lt;strong&gt;Windows Task Manager&lt;/strong&gt; and go to the &lt;strong&gt;Processes&lt;/strong&gt; tab in Windows.&lt;/p&gt;
&lt;p&gt;Note: the raw heap dump file may contain sensitive information from your Appian environment. For this reason, Appian Technical Support will ask you to run heap dump analysis on the raw output to generate an analysis file that does not contain any sensitive data. There is a range of software that can perform heap dump analysis. The steps for performing this analysis using the &lt;strong&gt;Java Memory Analyzer&lt;/strong&gt; are as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download the correct Java Memory Analyzer for your system from &lt;a href="http://www.eclipse.org/mat/downloads.php"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Unzip &lt;code&gt;MemoryAnalyzer-*.zip&lt;/code&gt; into &lt;code&gt;&amp;lt;MEMORY_ANALYZER_HOME&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click Windows Command Processor and select &lt;strong&gt;Run as administrator&lt;/strong&gt;). For Linux, open a new Terminal session.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;MEMORY_ANALYZER_HOME&amp;gt;/mat&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the analysis command (replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the path to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;):&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;./ParseHeapDump.sh|bat &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; org.eclipse.mat.api:suspects&lt;/pre&gt;
&lt;p&gt;The analysis file will then be available at &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/Leak_Suspects.zip&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For scenarios where there&amp;#39;s no leak but only high heap usage that eventually goes down, the leak suspects report will show a considerably smaller size of the heap when compared to the original heap dump size. This is because the parsing removes unreachable objects simulating what garbage collection will eventually do.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re analyzing something that is not a leak, then you don&amp;#39;t want the unreachable objects to be removed because you need to know what needs to be optimized that&amp;#39;s consuming too much heap.&lt;/p&gt;
&lt;p&gt;To get that information in the report add the &lt;code&gt;-keep_unreachable_objects&lt;/code&gt; flag:&lt;/p&gt;
&lt;pre&gt;./ParseHeapDump.sh|bat -keep_unreachable_objects &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; org.eclipse.mat.api:suspects&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, application server, how-to&lt;/div&gt;
</description></item><item><title>KB-1176 How to generate a Java heap dump</title><link>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump/revision/3</link><pubDate>Fri, 17 Mar 2017 15:46:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6557ae17-3417-4542-ba68-2f1630004ad4</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Nick Vigilante on 3/17/2017 3:46:20 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;Appian Technical Support might ask you to provide them with Java heap dumps to troubleshoot memory leaks, performance issues, etc. There are different ways of generating this file. This article describes the most common way of generating a heap dump. Please note that these commands should be run on the application server machine when collecting a heap dump of the application server&amp;#39;s Java process.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click Windows Command Processor and select &lt;strong&gt;Run as administrator&lt;/strong&gt;). For Linux, open a new Terminal session.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;JAVA_HOME&amp;gt;/bin&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the following command (replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the path to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;PID of Java Process&amp;gt;&lt;/code&gt; with the ID of the Java process):
&lt;pre&gt;jmap -dump:format=b,file=&amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; &amp;lt;PID of Java Process&amp;gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The &lt;code&gt;jmap&lt;/code&gt; command will generate a file named &lt;strong&gt;heapdump.hprof&lt;/strong&gt; under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If Technical Support requests that you capture a heap dump without running Java Garbage Collection, use the following command:&lt;/p&gt;
&lt;pre&gt;jmap -dump:live,format=b,file=&amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; &amp;lt;PID of Java Process&amp;gt;&lt;/pre&gt;
&lt;p&gt;To determine the ID of the Java process, run &lt;code&gt;ps -ef | grep java&lt;/code&gt; in Linux or open &lt;strong&gt;Windows Task Manager&lt;/strong&gt; and go to the &lt;strong&gt;Processes&lt;/strong&gt; tab in Windows.&lt;/p&gt;
&lt;p&gt;Note: the raw heap dump file may contain sensitive information from your Appian environment. For this reason, Appian Technical Support will ask you to run heap dump analysis on the raw output to generate an analysis file that does not contain any sensitive data. There is a range of software that can perform heap dump analysis. The steps for performing this analysis using the &lt;strong&gt;Java Memory Analyzer&lt;/strong&gt; are as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download the correct Java Memory Analyzer for your system from &lt;a href="http://www.eclipse.org/mat/downloads.php"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Unzip &lt;code&gt;MemoryAnalyzer-*.zip&lt;/code&gt; into &lt;code&gt;&amp;lt;MEMORY_ANALYZER_HOME&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click Windows Command Processor and select &lt;strong&gt;Run as administrator&lt;/strong&gt;). For Linux, open a new Terminal session.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;MEMORY_ANALYZER_HOME&amp;gt;/mat&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the analysis command (replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the path to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;):&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;./ParseHeapDump.sh|bat &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; org.eclipse.mat.api:suspects&lt;/pre&gt;
&lt;p&gt;The analysis file will then be available at &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/Leak_Suspects.zip&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For scenarios where there&amp;#39;s no leak but only high heap usage that eventually goes down, the leak suspects report will show a considerably smaller size of the heap when compared to the original heap dump size. This is because the parsing removes unreachable objects simulating what garbage collection will eventually do.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re analyzing something that is not a leak, then you don&amp;#39;t want the unreachable objects to be removed because you need to know what needs to be optimized that&amp;#39;s consuming too much heap.&lt;/p&gt;
&lt;p&gt;To get that information in the report add the &lt;code&gt;-keep_unreachable_objects&lt;/code&gt; flag:&lt;/p&gt;
&lt;pre&gt;./ParseHeapDump.sh|bat -keep_unreachable_objects &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; org.eclipse.mat.api:suspects&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, application server, how-to&lt;/div&gt;
</description></item><item><title>KB-1176 How to generate a Java heap dump</title><link>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump/revision/1</link><pubDate>Mon, 06 Mar 2017 17:07:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6557ae17-3417-4542-ba68-2f1630004ad4</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Nick Vigilante on 3/6/2017 5:07:29 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;Appian Technical Support might ask you to provide them with Java heap dumps to troubleshoot memory leaks, performance issues, etc. There are different ways of generating this file. This article describes the most common way of generating a heap dump. Please note that these commands should be run on the application server machine when collecting a heap dump of the application server&amp;#39;s Java process.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click Windows Command Processor and select &lt;strong&gt;Run as administrator&lt;/strong&gt;). For Linux, open a new Terminal session.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;JAVA_HOME&amp;gt;/bin&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the following command (replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the path to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;PID of Java Process&amp;gt;&lt;/code&gt; with the ID of the Java process):
&lt;pre&gt;jmap -dump:format=b,file=&amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; &amp;lt;PID of Java Process&amp;gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The &lt;code&gt;jmap&lt;/code&gt; command will generate a file named &lt;strong&gt;heapdump.hprof&lt;/strong&gt; under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If Technical Support requests that you capture a heap dump without running Java Garbage Collection, use the following command:&lt;/p&gt;
&lt;pre&gt;jmap -dump:live,format=b,file=&amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; &amp;lt;PID of Java Process&amp;gt;&lt;/pre&gt;
&lt;p&gt;To determine the ID of the Java process, run &lt;code&gt;ps -ef | grep java&lt;/code&gt; in Linux or open &lt;strong&gt;Windows Task Manager&lt;/strong&gt; and go to the &lt;strong&gt;Processes&lt;/strong&gt; tab in Windows.&lt;/p&gt;
&lt;p&gt;Note: the raw heap dump file may contain sensitive information from your Appian environment. For this reason, Appian Technical Support will ask you to run heap dump analysis on the raw output to generate an analysis file that does not contain any sensitive data. There is a range of software that can perform heap dump analysis. The steps for performing this analysis using the &lt;strong&gt;Java Memory Analyzer&lt;/strong&gt; are as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download the correct Java Memory Analyzer for your system from &lt;a href="http://www.eclipse.org/mat/downloads.php"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Unzip &lt;code&gt;MemoryAnalyzer-*.zip&lt;/code&gt; into &lt;code&gt;&amp;lt;MEMORY_ANALYZER_HOME&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click Windows Command Processor and select &lt;strong&gt;Run as administrator&lt;/strong&gt;). For Linux, open a new Terminal session.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;MEMORY_ANALYZER_HOME&amp;gt;/mat&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the analysis command (replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the path to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;):&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;./ParseHeapDump.sh|bat &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; org.eclipse.mat.api:suspects&lt;/pre&gt;
&lt;p&gt;The analysis file will then be available at &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/Leak_Suspects.zip&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, application server&lt;/div&gt;
</description></item><item><title>KB-1176 How to generate a Java heap dump</title><link>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump/revision/2</link><pubDate>Mon, 06 Mar 2017 12:08:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6557ae17-3417-4542-ba68-2f1630004ad4</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Nick Vigilante on 3/6/2017 12:08:59 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;Appian Technical Support might ask you to provide them with Java heap dumps to troubleshoot memory leaks, performance issues, etc. There are different ways of generating this file. This article describes the most common way of generating a heap dump. Please note that these commands should be run on the application server machine when collecting a heap dump of the application server&amp;#39;s Java process.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click Windows Command Processor and select &lt;strong&gt;Run as administrator&lt;/strong&gt;). For Linux, open a new Terminal session.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;JAVA_HOME&amp;gt;/bin&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the following command (replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the path to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;PID of Java Process&amp;gt;&lt;/code&gt; with the ID of the Java process):
&lt;pre&gt;jmap -dump:format=b,file=&amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; &amp;lt;PID of Java Process&amp;gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The &lt;code&gt;jmap&lt;/code&gt; command will generate a file named &lt;strong&gt;heapdump.hprof&lt;/strong&gt; under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If Technical Support requests that you capture a heap dump without running Java Garbage Collection, use the following command:&lt;/p&gt;
&lt;pre&gt;jmap -dump:live,format=b,file=&amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; &amp;lt;PID of Java Process&amp;gt;&lt;/pre&gt;
&lt;p&gt;To determine the ID of the Java process, run &lt;code&gt;ps -ef | grep java&lt;/code&gt; in Linux or open &lt;strong&gt;Windows Task Manager&lt;/strong&gt; and go to the &lt;strong&gt;Processes&lt;/strong&gt; tab in Windows.&lt;/p&gt;
&lt;p&gt;Note: the raw heap dump file may contain sensitive information from your Appian environment. For this reason, Appian Technical Support will ask you to run heap dump analysis on the raw output to generate an analysis file that does not contain any sensitive data. There is a range of software that can perform heap dump analysis. The steps for performing this analysis using the &lt;strong&gt;Java Memory Analyzer&lt;/strong&gt; are as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Download the correct Java Memory Analyzer for your system from &lt;a href="http://www.eclipse.org/mat/downloads.php"&gt;here&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Unzip &lt;code&gt;MemoryAnalyzer-*.zip&lt;/code&gt; into &lt;code&gt;&amp;lt;MEMORY_ANALYZER_HOME&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click Windows Command Processor and select &lt;strong&gt;Run as administrator&lt;/strong&gt;). For Linux, open a new Terminal session.&lt;/li&gt;
&lt;li&gt;Navigate to &lt;code&gt;&amp;lt;MEMORY_ANALYZER_HOME&amp;gt;/mat&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run the analysis command (replace &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; with the path to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;):&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;./ParseHeapDump.sh|bat &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/heapdump.hprof&amp;quot; org.eclipse.mat.api:suspects&lt;/pre&gt;
&lt;p&gt;The analysis file will then be available at &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/Leak_Suspects.zip&lt;/code&gt;&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, application server, how-to&lt;/div&gt;
</description></item></channel></rss>