<?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-1177 How to generate a Java thread dump</title><link>https://community.appian.com/support/w/kb/394/kb-1177-how-to-generate-a-java-thread-dump</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1177 How to generate a Java thread dump</title><link>https://community.appian.com/support/w/kb/394/kb-1177-how-to-generate-a-java-thread-dump</link><pubDate>Mon, 23 Oct 2023 01:48:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:293c63c6-2d02-4925-9eae-19ac1f9ad34e</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/394/kb-1177-how-to-generate-a-java-thread-dump#comments</comments><description>Current Revision posted to Appian Knowledge Base by Maggie Deppe-Walker on 10/23/2023 1:48:15 AM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian Technical Support&amp;nbsp;might ask you to provide them with Java thread dump to troubleshoot performance issues. There are different ways of generating this file. This article will describes the most common way of generating a thread dump.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h4&gt;Steps to identify top threads by CPU&lt;/h4&gt;
&lt;p&gt;In Linux, run&amp;nbsp;&lt;strong&gt;top&lt;/strong&gt;, press the&amp;nbsp;&lt;strong&gt;c&lt;/strong&gt; key, then press&amp;nbsp;&lt;strong&gt;Shift+H&lt;/strong&gt;. This will show the threads sorted by highest to lowest CPU usage. Please&amp;nbsp;provide a screenshot of the output.&lt;/p&gt;
&lt;p&gt;In Windows, use &lt;a href="https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx" rel="noopener noreferrer" target="_blank"&gt;Process Explorer&lt;/a&gt; or &lt;a href="https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx" rel="noopener noreferrer" target="_blank"&gt;Process Monitor&lt;/a&gt;&amp;nbsp;to show the threads for the Java process and take&amp;nbsp;a screenshot of the top threads by CPU.&lt;/p&gt;
&lt;p&gt;Typically, collecting this information is only necessary when you are actively experiencing slowness/performance issues.&lt;/p&gt;
&lt;h4&gt;Steps to collect thread dumps&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click &lt;strong&gt;Windows Command Processor&lt;/strong&gt; 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: &lt;code&gt;jstack JAVA_PROCESS_ID &amp;gt; &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/threaddump_&amp;lt;#&amp;gt;.txt&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;If and only if the Java process is unresponsive, use the following command: &lt;code&gt;jstack -F JAVA_PROCESS_ID &amp;gt; &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/threaddump_&amp;lt;#&amp;gt;.txt&amp;quot;&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;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;code&gt;JAVA_PROCESS_ID&lt;/code&gt; with the ID of the Java process, and &lt;code&gt;&amp;lt;#&amp;gt;&lt;/code&gt; with the thread dump attempt.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Repeat Step 3 at least 5 times every 2 to 3 minutes minimum, increasing &lt;code&gt;&amp;lt;#&amp;gt;&lt;/code&gt; by 1 for each successful thread dump collected.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&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:&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, application server, how-to&lt;/div&gt;
</description></item><item><title>KB-1177 How to generate a Java thread dump</title><link>https://community.appian.com/support/w/kb/394/kb-1177-how-to-generate-a-java-thread-dump/revision/4</link><pubDate>Tue, 19 Dec 2017 16:36:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:293c63c6-2d02-4925-9eae-19ac1f9ad34e</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/394/kb-1177-how-to-generate-a-java-thread-dump#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Parmida Borhani on 12/19/2017 4:36:42 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Appian Technical Support&amp;nbsp;might ask you to provide them with Java thread dump to troubleshoot performance issues. There are different ways of generating this file. This article will describes the most common way of generating a thread dump.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h4&gt;Steps to identify top threads by CPU&lt;/h4&gt;
&lt;p&gt;In Linux, run&amp;nbsp;&lt;strong&gt;top&lt;/strong&gt;, press the&amp;nbsp;&lt;strong&gt;c&lt;/strong&gt; key, then press&amp;nbsp;&lt;strong&gt;Shift+H&lt;/strong&gt;. This will show the threads sorted by highest to lowest CPU usage. Please&amp;nbsp;provide a screenshot of the output.&lt;/p&gt;
&lt;p&gt;In Windows, use &lt;a href="https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx" target="_blank"&gt;Process Explorer&lt;/a&gt; or &lt;a href="https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx" target="_blank"&gt;Process Monitor&lt;/a&gt;&amp;nbsp;to show the threads for the Java process and take&amp;nbsp;a screenshot of the top threads by CPU.&lt;/p&gt;
&lt;p&gt;Typically, collecting this information is only necessary when you are actively experiencing slowness/performance issues.&lt;/p&gt;
&lt;h4&gt;Steps to collect thread dumps&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click &lt;strong&gt;Windows Command Processor&lt;/strong&gt; 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: &lt;code&gt;jstack JAVA_PROCESS_ID &amp;gt; &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/threaddump_&amp;lt;#&amp;gt;.txt&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;If and only if the Java process is unresponsive, use the following command: &lt;code&gt;jstack -F JAVA_PROCESS_ID &amp;gt; &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/threaddump_&amp;lt;#&amp;gt;.txt&amp;quot;&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;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;code&gt;JAVA_PROCESS_ID&lt;/code&gt; with the ID of the Java process, and &lt;code&gt;&amp;lt;#&amp;gt;&lt;/code&gt; with the thread dump attempt.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Repeat Step 3 at least 5 times every 2 to 3 minutes minimum, increasing &lt;code&gt;&amp;lt;#&amp;gt;&lt;/code&gt; by 1 for each successful thread dump collected.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&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, application server, how-to&lt;/div&gt;
</description></item><item><title>KB-1177 How to generate a Java thread dump</title><link>https://community.appian.com/support/w/kb/394/kb-1177-how-to-generate-a-java-thread-dump/revision/3</link><pubDate>Fri, 24 Mar 2017 14:38:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:293c63c6-2d02-4925-9eae-19ac1f9ad34e</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/394/kb-1177-how-to-generate-a-java-thread-dump#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Nick Vigilante on 3/24/2017 2:38:52 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;p&gt;Appian Technical Support&amp;nbsp;might ask you to provide them with Java thread dump to troubleshoot performance issues. There are different ways of generating this file. This article will describes the most common way of generating a thread dump.&lt;/p&gt;
&lt;h4&gt;Steps to identify top threads by CPU&lt;/h4&gt;
&lt;p&gt;In Linux, run&amp;nbsp;&lt;strong&gt;top&lt;/strong&gt;, press the&amp;nbsp;&lt;strong&gt;c&lt;/strong&gt; key, then press&amp;nbsp;&lt;strong&gt;Shift+H&lt;/strong&gt;. This will show the threads sorted by highest to lowest CPU usage. Please&amp;nbsp;provide a screenshot of the output.&lt;/p&gt;
&lt;p&gt;In Windows, use &lt;a href="https://technet.microsoft.com/en-us/sysinternals/processexplorer.aspx" target="_blank"&gt;Process Explorer&lt;/a&gt; or &lt;a href="https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx" target="_blank"&gt;Process Monitor&lt;/a&gt;&amp;nbsp;to show the threads for the Java process and take&amp;nbsp;a screenshot of the top threads by CPU.&lt;/p&gt;
&lt;p&gt;Typically, collecting this information is only necessary when you are actively experiencing slowness/performance issues.&lt;/p&gt;
&lt;h4&gt;Steps to collect thread dumps&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;For Windows, open Command Prompt as administrator (right-click &lt;strong&gt;Windows Command Processor&lt;/strong&gt; 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: &lt;code&gt;jstack JAVA_PROCESS_ID &amp;gt; &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/threaddump_&amp;lt;#&amp;gt;.txt&amp;quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;If and only if the Java process is unresponsive, use the following command: &lt;code&gt;jstack -F JAVA_PROCESS_ID &amp;gt; &amp;quot;&amp;lt;APPIAN_HOME&amp;gt;/logs/threaddump_&amp;lt;#&amp;gt;.txt&amp;quot;&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;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;code&gt;JAVA_PROCESS_ID&lt;/code&gt; with the ID of the Java process, and &lt;code&gt;&amp;lt;#&amp;gt;&lt;/code&gt; with the thread dump attempt.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Repeat Step 3 at least 5 times every 2 to 3 minutes minimum, increasing &lt;code&gt;&amp;lt;#&amp;gt;&lt;/code&gt; by 1 for each successful thread dump collected.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&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, application server, how-to&lt;/div&gt;
</description></item></channel></rss>