<?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-1446 How to enable automatic heap dumps on OutOfMemoryError for Appian Search Server</title><link>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1446 How to enable automatic heap dumps on OutOfMemoryError for Appian Search Server</title><link>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server</link><pubDate>Tue, 09 Jan 2018 01:38:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe878f9c-a2af-4135-8414-a94f3c018c2e</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 1/9/2018 1:38:09 AM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Purpose&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server may crash due to an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;. An&lt;/span&gt;&lt;code&gt; &lt;/code&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; indicates that the search server has run out of available heap space. The root cause for running out of heap space may vary. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Default heap space for the Search Server is 1GB. For production servers with large search indices, this may need to be increased, but prior to increasing heap space it is necessary to investigate why the issue is occurring in order to ensure system stability.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Instructions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to investigate the root cause of the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;,&lt;/span&gt; a &lt;span style="font-weight:400;"&gt;heap dump must be gathered from the time the heap usage was high. The heap dump contains a snapshot of the objects stored in memory by the Search Server and will assist Appian Technical Support in determining the root cause behind the issue. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to configure the Search Server to attempt to capture a heap dump when an &lt;code&gt;OutOfMemoryError&lt;/code&gt; is triggered, amend the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script located in &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; to include the flag to automatically capture a heap dump:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Add the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;-XX:+HeapDumpOnOutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; argument to the search-server JVM arguments so it can create a heap dump if it runs out of heap space.&lt;/span&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Open the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script with a text editor.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Locate the following line:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Alter it such that the line reads:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Save the file.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Restart the search server and review &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/&lt;/code&gt;&lt;code&gt;logs/search-server/search-server.log&lt;/code&gt;. Ensure that the startup output contains the following lines:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;[INFO ][com.appian.es.bootstrap.NodeInit] JVM Arguments:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xms1024m&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xmx1024m&lt;br /&gt;&lt;/span&gt;&amp;nbsp; -XX:+HeapDumpOnOutOfMemoryError&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;If an &lt;code&gt;OutOfMemoryError&lt;/code&gt; is detected, the Search Server will attempt to capture a heap dump under &lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For information on how to analyze a heap dump, refer to &lt;a href="/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump"&gt;KB-1176&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: January 2018&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, how-to, search server, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX How to enable automatic heap dumps on OutOfMemoryError for Appian Search Server</title><link>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server/revision/7</link><pubDate>Mon, 08 Jan 2018 20:37:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe878f9c-a2af-4135-8414-a94f3c018c2e</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Parmida Borhani on 1/8/2018 8:37:01 PM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Purpose&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server may crash due to an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;. An&lt;/span&gt;&lt;code&gt; &lt;/code&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; indicates that the search server has run out of available heap space. The root cause for running out of heap space may vary. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Default heap space for the Search Server is 1GB. For production servers with large search indices, this may need to be increased, but prior to increasing heap space it is necessary to investigate why the issue is occurring in order to ensure system stability.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Instructions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to investigate the root cause of the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;,&lt;/span&gt; a &lt;span style="font-weight:400;"&gt;heap dump must be gathered from the time the heap usage was high. The heap dump contains a snapshot of the objects stored in memory by the Search Server and will assist Appian Technical Support in determining the root cause behind the issue. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to configure the Search Server to attempt to capture a heap dump when an &lt;code&gt;OutOfMemoryError&lt;/code&gt; is triggered, amend the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script located in &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; to include the flag to automatically capture a heap dump:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Add the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;-XX:+HeapDumpOnOutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; argument to the search-server JVM arguments so it can create a heap dump if it runs out of heap space.&lt;/span&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Open the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script with a text editor.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Locate the following line:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Alter it such that the line reads:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Save the file.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Restart the search server and review &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/&lt;/code&gt;&lt;code&gt;logs/search-server/search-server.log&lt;/code&gt;. Ensure that the startup output contains the following lines:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;[INFO ][com.appian.es.bootstrap.NodeInit] JVM Arguments:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xms1024m&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xmx1024m&lt;br /&gt;&lt;/span&gt;&amp;nbsp; -XX:+HeapDumpOnOutOfMemoryError&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;If an &lt;code&gt;OutOfMemoryError&lt;/code&gt; is detected, the Search Server will attempt to capture a heap dump under &lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For information on how to analyze a heap dump, refer to &lt;a href="/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump"&gt;KB-1176&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: January 2018&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, how-to, search server, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX How to enable automatic heap dumps on OutOfMemoryError for Appian Search Server</title><link>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server/revision/6</link><pubDate>Mon, 08 Jan 2018 20:36:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe878f9c-a2af-4135-8414-a94f3c018c2e</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Parmida Borhani on 1/8/2018 8:36:26 PM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Purpose&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server may crash due to an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;. An&lt;/span&gt;&lt;code&gt; &lt;/code&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; indicates that the search server has run out of available heap space. The root cause for running out of heap space may vary. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Default heap space for the Search Server is 1GB. For production servers with large search indices, this may need to be increased, but prior to increasing heap space it is necessary to investigate why the issue is occurring in order to ensure system stability.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Instructions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to investigate the root cause of the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;,&lt;/span&gt; a &lt;span style="font-weight:400;"&gt;heap dump must be gathered from the time the heap usage was high. The heap dump contains a snapshot of the objects stored in memory by the Search Server and will assist Appian Technical Support in determining the root cause behind the issue. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to configure the Search Server to attempt to capture a heap dump when an &lt;code&gt;OutOfMemoryError&lt;/code&gt; is triggered, amend the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script located in &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; to include the flag to automatically capture a heap dump:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Add the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;-XX:+HeapDumpOnOutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; argument to the search-server JVM arguments so it can create a heap dump if it runs out of heap space.&lt;/span&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Open the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script with a text editor.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Locate the following line:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Alter it such that the line reads:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Save the file.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Restart the search server and review &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/&lt;/code&gt;&lt;code&gt;logs/search-server/search-server.log&lt;/code&gt;. Ensure that the startup output contains the following lines:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;[INFO ][com.appian.es.bootstrap.NodeInit] JVM Arguments:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xms1024m&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xmx1024m&lt;br /&gt;&lt;/span&gt;&amp;nbsp; -XX:+HeapDumpOnOutOfMemoryError&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;If an &lt;code&gt;OutOfMemoryError&lt;/code&gt; is detected, the Search Server will attempt to capture a heap dump under &lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin.&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For information on how to analyze a heap dump, refer to &lt;a href="/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump"&gt;KB-1176&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: January 2018&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, how-to, search server, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX How to enable automatic heap dumps on OutOfMemoryError for Appian Search Server</title><link>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server/revision/5</link><pubDate>Mon, 08 Jan 2018 19:27:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe878f9c-a2af-4135-8414-a94f3c018c2e</guid><dc:creator>Tom Ryan</dc:creator><comments>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Tom Ryan on 1/8/2018 7:27:55 PM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Purpose&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server may crash due to an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;. An&lt;/span&gt;&lt;code&gt; &lt;/code&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; indicates that the search server has run out of available heap space. The root cause for running out of heap space may vary. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Default heap space for the Search Server is 1GB. For production servers with large search indices, this may need to be increased, but prior to increasing heap space it is necessary to investigate why the issue is occurring in order to ensure system stability.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Instructions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to investigate the root cause of the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;,&lt;/span&gt; a &lt;span style="font-weight:400;"&gt;heap dump must be gathered from the time the heap usage was high. The heap dump contains a snapshot of the objects stored in memory by the Search Server and will assist Appian Technical Support in determining the root cause behind the issue. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to configure the Search Server to attempt to capture a heap dump when an &lt;code&gt;OutOfMemoryError&lt;/code&gt; is triggered, amend the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script located in &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; to include the flag to automatically capture a heap dump:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Add the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;-XX:+HeapDumpOnOutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; argument to the search-server JVM arguments so it can create a heap dump if it runs out of heap space.&lt;/span&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Open the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script with a text editor&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Locate the following line:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Alter it such that the line reads:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Save the file&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Restart the search server and review &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/&lt;/code&gt;&lt;code&gt;logs/search-server/search-server.log&lt;/code&gt;. Ensure that the startup output contains the following lines:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;[INFO ][com.appian.es.bootstrap.NodeInit] JVM Arguments:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xms1024m&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xmx1024m&lt;br /&gt;&lt;/span&gt;&amp;nbsp; -XX:+HeapDumpOnOutOfMemoryError&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;If an &lt;code&gt;OutOfMemoryError&lt;/code&gt; is detected, the Search Server will attempt to capture a heap dump under &lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin.&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;For information on how to analyze a heap dump, refer to &lt;a href="/support/w/kb/393/kb-1176-how-to-generate-a-java-heap-dump"&gt;KB-1176&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: January 2018&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, how-to, search server, scripts&lt;/div&gt;
</description></item><item><title>KB-XXXX Enabling automatic heap dumps on OutOfMemoryError for Appian Search Server</title><link>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server/revision/1</link><pubDate>Mon, 08 Jan 2018 18:03:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe878f9c-a2af-4135-8414-a94f3c018c2e</guid><dc:creator>Jussi Lundstedt</dc:creator><comments>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Jussi Lundstedt on 1/8/2018 6:03:34 PM&lt;br /&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Symptom&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server may on rare occasions crash due to an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;. This may either happen only once or intermittently, and the root cause for these events may vary.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server crashing with an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError &lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;indicates that the search server has run out of available heap space. Default heap space for the Search Server is 1 gigabyte. For production servers with large search indices, this may need to be increased, but prior to increasing heap space it is necessary to investigate why the issue is occurring in order to ensure system stability.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to investigate the root cause of the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;,&lt;/span&gt; &lt;span style="font-weight:400;"&gt;heap dumps must be automatically gathered from the time this error occurs. The heap dump contains the objects stored by the JVM instance on which Appian Search Server runs and will assist Appian Technical Support in determining the root cause behind the issue. In order to enable automatic heap dumps, amend the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh &lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;script located in &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin &lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;to include the flag to automatically capture a heap dump:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Add the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;-XX:+HeapDumpOnOutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; argument to the search-server JVM arguments so it can create a heap dump if it runs out of heap space.&lt;/span&gt;&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Open the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh &lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;script with a text editor&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Locate the following line:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Alter it such that the line reads:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Save the file&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Restart the search server and tail the log. Ascertain that the startup output contains the following lines:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;[INFO ][com.appian.es.bootstrap.NodeInit] JVM Arguments:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xms1024m&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xmx1024m&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&amp;nbsp; -XX:+HeapDumpOnOutOfMemoryError&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Affected versions&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, search server, scripts&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX How to enable automatic heap dumps on OutOfMemoryError for Appian Search Server</title><link>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server/revision/4</link><pubDate>Mon, 08 Jan 2018 17:42:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe878f9c-a2af-4135-8414-a94f3c018c2e</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Parmida Borhani on 1/8/2018 5:42:10 PM&lt;br /&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Purpose&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server may on rare occasions crash due to an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;. This may either happen only once or intermittently, and the root cause for these events may vary.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server crashing with an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; indicates that the search server has run out of available heap space. Default heap space for the Search Server is 1 gigabyte. For production servers with large search indices, this may need to be increased, but prior to increasing heap space it is necessary to investigate why the issue is occurring in order to ensure system stability.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Instructions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to investigate the root cause of the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;,&lt;/span&gt; &lt;span style="font-weight:400;"&gt;heap dumps must be automatically gathered from the time this error occurs. The heap dump contains the objects stored by the JVM instance on which Appian Search Server runs and will assist Appian Technical Support in determining the root cause behind the issue. In order to enable automatic heap dumps, amend the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script located in &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; to include the flag to automatically capture a heap dump:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Add the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;-XX:+HeapDumpOnOutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; argument to the search-server JVM arguments so it can create a heap dump if it runs out of heap space.&lt;/span&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Open the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script with a text editor&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Locate the following line:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Alter it such that the line reads:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Save the file&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Restart the search server and tail the log. Ensure that the startup output contains the following lines:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;[INFO ][com.appian.es.bootstrap.NodeInit] JVM Arguments:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xms1024m&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xmx1024m&lt;br /&gt;&lt;/span&gt;&amp;nbsp; -XX:+HeapDumpOnOutOfMemoryError&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Last Reviewed: January 2018&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, how-to, search server, scripts&lt;/div&gt;
</description></item><item><title>KB-XXXX Enabling automatic heap dumps on OutOfMemoryError for Appian Search Server</title><link>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server/revision/3</link><pubDate>Mon, 08 Jan 2018 13:06:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe878f9c-a2af-4135-8414-a94f3c018c2e</guid><dc:creator>Jussi Lundstedt</dc:creator><comments>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Jussi Lundstedt on 1/8/2018 1:06:08 PM&lt;br /&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Symptom&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server may on rare occasions crash due to an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;. This may either happen only once or intermittently, and the root cause for these events may vary.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server crashing with an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; indicates that the search server has run out of available heap space. Default heap space for the Search Server is 1 gigabyte. For production servers with large search indices, this may need to be increased, but prior to increasing heap space it is necessary to investigate why the issue is occurring in order to ensure system stability.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to investigate the root cause of the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;,&lt;/span&gt; &lt;span style="font-weight:400;"&gt;heap dumps must be automatically gathered from the time this error occurs. The heap dump contains the objects stored by the JVM instance on which Appian Search Server runs and will assist Appian Technical Support in determining the root cause behind the issue. In order to enable automatic heap dumps, amend the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script located in &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; to include the flag to automatically capture a heap dump:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Add the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;-XX:+HeapDumpOnOutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; argument to the search-server JVM arguments so it can create a heap dump if it runs out of heap space.&lt;/span&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Open the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script with a text editor&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Locate the following line:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Alter it such that the line reads:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Save the file&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Restart the search server and tail the log. Ascertain that the startup output contains the following lines:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;[INFO ][com.appian.es.bootstrap.NodeInit] JVM Arguments:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xms1024m&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xmx1024m&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&amp;nbsp; -XX:+HeapDumpOnOutOfMemoryError&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Affected versions&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, heap, search server, scripts&lt;/div&gt;
</description></item><item><title>KB-XXXX Enabling automatic heap dumps on OutOfMemoryError for Appian Search Server</title><link>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server/revision/2</link><pubDate>Mon, 08 Jan 2018 13:05:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fe878f9c-a2af-4135-8414-a94f3c018c2e</guid><dc:creator>Jussi Lundstedt</dc:creator><comments>https://community.appian.com/support/w/kb/752/kb-1446-how-to-enable-automatic-heap-dumps-on-outofmemoryerror-for-appian-search-server#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Jussi Lundstedt on 1/8/2018 1:05:18 PM&lt;br /&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Symptom&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server may on rare occasions crash due to an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;. This may either happen only once or intermittently, and the root cause for these events may vary.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Cause&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The Appian Search Server crashing with an &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; indicates that the search server has run out of available heap space. Default heap space for the Search Server is 1 gigabyte. For production servers with large search indices, this may need to be increased, but prior to increasing heap space it is necessary to investigate why the issue is occurring in order to ensure system stability.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Action&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;In order to investigate the root cause of the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;OutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;,&lt;/span&gt; &lt;span style="font-weight:400;"&gt;heap dumps must be automatically gathered from the time this error occurs. The heap dump contains the objects stored by the JVM instance on which Appian Search Server runs and will assist Appian Technical Support in determining the root cause behind the issue. In order to enable automatic heap dumps, amend the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; script located in &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;&amp;lt;APPIAN_HOME&amp;gt;/search-server/bin&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; to include the flag to automatically capture a heap dump:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Add the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;-XX:+HeapDumpOnOutOfMemoryError&lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt; argument to the search-server JVM arguments so it can create a heap dump if it runs out of heap space.&lt;/span&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Open the &lt;/span&gt;&lt;code&gt;&lt;span style="font-weight:400;"&gt;start.bat|sh &lt;/span&gt;&lt;/code&gt;&lt;span style="font-weight:400;"&gt;script with a text editor&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Locate the following line:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Alter it such that the line reads:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;SS_MEM_ARGS=&amp;quot;-Xms1024m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError&amp;quot;&lt;/span&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Save the file&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Restart the search server and tail the log. Ascertain that the startup output contains the following lines:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre&gt;&lt;span style="font-weight:400;"&gt;[INFO ][com.appian.es.bootstrap.NodeInit] JVM Arguments:&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xms1024m&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:400;"&gt; &amp;nbsp;-Xmx1024m&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&amp;nbsp; -XX:+HeapDumpOnOutOfMemoryError&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;Affected versions&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

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