<?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-2011 How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2011 How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments</link><pubDate>Mon, 12 Aug 2024 02:22:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Current Revision posted to Appian Knowledge Base by Maggie Deppe-Walker on 8/12/2024 2:22:46 AM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#notifications-engine"&gt;Notifications&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#database-memory"&gt;Database&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#hardware-upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/health-check.html"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize process models. There are many tips and tricks for optimizing a process model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/understanding-the-health-check-report.html#maximum-number-of-process-variables-per-process-model"&gt;documentation&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the Archiving Processes&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to archive or delete a process after a custom amount of time (e.g. 2 hours, conditionally based on another process), you&amp;nbsp;can leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory may indicate a high number of versions of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory may indicate a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;&lt;strong&gt;&lt;span style="font-size:75%;"&gt;&lt;a id="notifications-engine"&gt;&lt;/a&gt;Notifications&amp;nbsp;Engine&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;notifications engine stores information about system notifications and alerts.&amp;nbsp;&lt;/span&gt;These notifications are cleared from the system when both of the following requirements are satisfied:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The alert is past its expiration limit (generally 10 days)&lt;/li&gt;
&lt;li&gt;The user associated with the notification logs into Appian.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High notification engine memory is likely due to a large amount of system notifications or alerts. There are multiple ways to reduce the memory footprint of the notifications engine:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Have all users log into Appian to clear out expired notifications, especially users that have not logged into Appian for a long period of time.&lt;/li&gt;
&lt;li&gt;For notifications that have not yet expired, have all users navigate to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;SITE_URL&amp;gt;/suite/apps&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and go to &amp;quot;Alerts&amp;quot; to clear out any unnecessary alerts. If you are unable to access this page, Appian Support can enable this view through a property change and application server restart.&lt;/li&gt;
&lt;li&gt;If approved by the customer, Appian Support can delete notifications for a certain user (or all users) from the backend.&amp;nbsp;Appian Support&amp;nbsp;can retrieve and provide the number of alerts per user to the customer if requested.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="database-memory"&gt;&lt;/a&gt;Database Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Database memory consumption is directly proportional to the size of the tables in the database. To reduce overall memory consumption of the database, cleanup any unnecessary data. The below query can be run through phpMyAdmin to return all tables order by their size:&amp;nbsp;&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code panel"&gt;&lt;span&gt;select table_schema,&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;table_name&lt;/span&gt;&lt;span&gt;, table_rows,&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;avg_row_length&lt;/span&gt;&lt;span&gt;, data_length, index_length&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;from&lt;/span&gt;&lt;span&gt;&amp;nbsp;information_schema.&lt;/span&gt;&lt;span class="code-keyword"&gt;tables&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;order&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;by&lt;/span&gt;&lt;span&gt;&amp;nbsp;data_length&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;desc&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Database&amp;nbsp;memory is allocated in order to do read and write operations with the database. High database memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize database memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;a id="hardware-upgrade"&gt;&lt;/a&gt;When to Upgrade Hardware&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;As your applications grow and as Appian adds new features, your site may require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&amp;nbsp;&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>KB-2011 How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/38</link><pubDate>Mon, 12 Aug 2024 02:20:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 38 posted to Appian Knowledge Base by Maggie Deppe-Walker on 8/12/2024 2:20:19 AM&lt;br /&gt;
&lt;h2 id="mcetoc_1i5265jfc0"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#notifications-engine"&gt;Notifications&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#database-memory"&gt;Database&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#hardware-upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="mcetoc_1i5265jfc1"&gt;Instructions&lt;/h2&gt;
&lt;h2 id="mcetoc_1i5265jfc2"&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3 id="mcetoc_1i5265jfc3"&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/health-check.html"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize process models. There are many tips and tricks for optimizing a process model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/understanding-the-health-check-report.html#maximum-number-of-process-variables-per-process-model"&gt;documentation&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the Archiving Processes&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to archive or delete a process after a custom amount of time (e.g. 2 hours, conditionally based on another process), you&amp;nbsp;can leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id="mcetoc_1i5265jfc4"&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory may indicate a high number of versions of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="mcetoc_1i5265jfc5"&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory may indicate a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h3 id="mcetoc_1i5265jfc6"&gt;&lt;span&gt;&lt;strong&gt;&lt;span style="font-size:75%;"&gt;&lt;a id="notifications-engine"&gt;&lt;/a&gt;Notifications&amp;nbsp;Engine&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;notifications engine stores information about system notifications and alerts.&amp;nbsp;&lt;/span&gt;These notifications are cleared from the system when both of the following requirements are satisfied:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The alert is past its expiration limit (generally 10 days)&lt;/li&gt;
&lt;li&gt;The user associated with the notification logs into Appian.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High notification engine memory is likely due to a large amount of system notifications or alerts. There are multiple ways to reduce the memory footprint of the notifications engine:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Have all users log into Appian to clear out expired notifications, especially users that have not logged into Appian for a long period of time.&lt;/li&gt;
&lt;li&gt;For notifications that have not yet expired, have all users navigate to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;SITE_URL&amp;gt;/suite/apps&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and go to &amp;quot;Alerts&amp;quot; to clear out any unnecessary alerts. If you are unable to access this page, Appian Support can enable this view through a property change and application server restart.&lt;/li&gt;
&lt;li&gt;If approved by the customer, Appian Support can delete notifications for a certain user (or all users) from the backend.&amp;nbsp;Appian Support&amp;nbsp;can retrieve and provide the number of alerts per user to the customer if requested.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1i5265jfc7"&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="database-memory"&gt;&lt;/a&gt;Database Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Database memory consumption is directly proportional to the size of the tables in the database. To reduce overall memory consumption of the database, cleanup any unnecessary data. The below query can be run through phpMyAdmin to return all tables order by their size:&amp;nbsp;&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code panel"&gt;&lt;span&gt;select table_schema,&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;table_name&lt;/span&gt;&lt;span&gt;, table_rows,&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;avg_row_length&lt;/span&gt;&lt;span&gt;, data_length, index_length&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;from&lt;/span&gt;&lt;span&gt;&amp;nbsp;information_schema.&lt;/span&gt;&lt;span class="code-keyword"&gt;tables&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;order&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;by&lt;/span&gt;&lt;span&gt;&amp;nbsp;data_length&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;desc&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Database&amp;nbsp;memory is allocated in order to do read and write operations with the database. High database memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize database memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="mcetoc_1i5265jfc8"&gt;&lt;a id="hardware-upgrade"&gt;&lt;/a&gt;When to Upgrade Hardware&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;As your applications grow and as Appian adds new features, your site may require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&amp;nbsp;&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&gt;
&lt;h2 id="mcetoc_1i5265jfc9"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>KB-2011 How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/35</link><pubDate>Tue, 06 Oct 2020 16:07:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 35 posted to Appian Knowledge Base by James Lee on 10/6/2020 4:07:40 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#notifications-engine"&gt;Notifications&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#database"&gt;Database&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#hardware-upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize process models. There are many tips and tricks for optimizing a process model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the Archiving Processes&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to archive or delete a process after a custom amount of time (e.g. 2 hours, conditionally based on another process), you&amp;nbsp;can leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory may indicate a high number of versions of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory may indicate a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;&lt;strong&gt;&lt;a id="notifications-engine"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Notifications&amp;nbsp;Engine&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;The&amp;nbsp;notifications engine stores information about system notifications and alerts.&amp;nbsp;&lt;/span&gt;These notifications are cleared from the system when both of the following requirements are satisfied:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The alert is past its expiration limit (generally 10 days)&lt;/li&gt;
&lt;li&gt;The user associated with the notification logs into Appian.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High notification engine memory is likely due to a large amount of system notifications or alerts. There are multiple ways to reduce the memory footprint of the notifications engine:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Have all users log into Appian to clear out expired notifications, especially users that have not logged into Appian for a long period of time.&lt;/li&gt;
&lt;li&gt;For notifications that have not yet expired, have all users navigate to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;SITE_URL&amp;gt;/suite/apps&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and go to &amp;quot;Alerts&amp;quot; to clear out any unnecessary alerts. If you are unable to access this page, Appian Support can enable this view through a property change and application server restart.&lt;/li&gt;
&lt;li&gt;If approved by the customer, Appian Support can delete notifications for a certain user (or all users) from the backend.&amp;nbsp;Appian Support&amp;nbsp;can retrieve and provide the number of alerts per user to the customer if requested.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="database"&gt;&lt;/a&gt;Database Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Database memory consumption is directly proportional to the size of the tables in the database. To reduce overall memory consumption of the database, cleanup any unnecessary data. The below query can be run through phpMyAdmin to return all tables order by their size:&amp;nbsp;&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code panel"&gt;&lt;span&gt;select table_schema,&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;table_name&lt;/span&gt;&lt;span&gt;, table_rows,&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;avg_row_length&lt;/span&gt;&lt;span&gt;, data_length, index_length&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;from&lt;/span&gt;&lt;span&gt;&amp;nbsp;information_schema.&lt;/span&gt;&lt;span class="code-keyword"&gt;tables&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;order&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;by&lt;/span&gt;&lt;span&gt;&amp;nbsp;data_length&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;desc&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Database&amp;nbsp;memory is allocated in order to do read and write operations with the database. High database memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize database memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;a id="hardware-upgrade"&gt;&lt;/a&gt;When to Upgrade Hardware&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;As your applications grow and as Appian adds new features, your site may require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&amp;nbsp;&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>KB-2011 How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/34</link><pubDate>Thu, 10 Sep 2020 21:36:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 34 posted to Appian Knowledge Base by James Lee on 9/10/2020 9:36:21 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#database"&gt;Database&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#hardware-upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize process models. There are many tips and tricks for optimizing a process model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the Archiving Processes&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to archive or delete a process after a custom amount of time (e.g. 2 hours, conditionally based on another process), you&amp;nbsp;can leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory may indicate a high number of versions of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory may indicate a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="database"&gt;&lt;/a&gt;Database Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Database memory consumption is directly proportional to the size of the tables in the database. To reduce overall memory consumption of the database, cleanup any unnecessary data. The below query can be run through phpMyAdmin to return all tables order by their size:&amp;nbsp;&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code panel"&gt;&lt;span&gt;select table_schema,&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;table_name&lt;/span&gt;&lt;span&gt;, table_rows,&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;avg_row_length&lt;/span&gt;&lt;span&gt;, data_length, index_length&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;from&lt;/span&gt;&lt;span&gt;&amp;nbsp;information_schema.&lt;/span&gt;&lt;span class="code-keyword"&gt;tables&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;order&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;by&lt;/span&gt;&lt;span&gt;&amp;nbsp;data_length&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;desc&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Database&amp;nbsp;memory is allocated in order to do read and write operations with the database. High database memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize database memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;a id="hardware-upgrade"&gt;&lt;/a&gt;When to Upgrade Hardware&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;As your applications grow and as Appian adds new features, your site may require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&amp;nbsp;&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;September 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>KB-2011 How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/33</link><pubDate>Thu, 10 Sep 2020 21:34:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 33 posted to Appian Knowledge Base by James Lee on 9/10/2020 9:34:00 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#database"&gt;Database&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize process models. There are many tips and tricks for optimizing a process model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the Archiving Processes&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to archive or delete a process after a custom amount of time (e.g. 2 hours, conditionally based on another process), you&amp;nbsp;can leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory may indicate a high number of versions of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory may indicate a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="database"&gt;&lt;/a&gt;Database Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Database memory consumption is directly proportional to the size of the tables in the database. To reduce overall memory consumption of the database, cleanup any unnecessary data. The below query can be run through phpMyAdmin to return all tables order by their size:&amp;nbsp;&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;pre class="code panel"&gt;&lt;span&gt;select table_schema,&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;table_name&lt;/span&gt;&lt;span&gt;, table_rows,&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;avg_row_length&lt;/span&gt;&lt;span&gt;, data_length, index_length&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;from&lt;/span&gt;&lt;span&gt;&amp;nbsp;information_schema.&lt;/span&gt;&lt;span class="code-keyword"&gt;tables&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;order&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;by&lt;/span&gt;&lt;span&gt;&amp;nbsp;data_length&amp;nbsp;&lt;/span&gt;&lt;span class="code-keyword"&gt;desc&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Database&amp;nbsp;memory is allocated in order to do read and write operations with the database. High database memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize database memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&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 Cloud.&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;September 2020&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>KB-2011 How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/32</link><pubDate>Fri, 25 Oct 2019 21:29:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 32 posted to Appian Knowledge Base by Rebecca Jonas on 10/25/2019 9:29:54 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize process models. There are many tips and tricks for optimizing a process model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the Archiving Processes&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to archive or delete a process after a custom amount of time (e.g. 2 hours, conditionally based on another process), you&amp;nbsp;can leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory may indicate a high number of versions of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory may indicate a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for the default data store in Appian Cloud.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to Upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your applications grow and as Appian adds new features, your site may require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss. &lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>KB-2011 How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/31</link><pubDate>Fri, 25 Oct 2019 21:24:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 31 posted to Appian Knowledge Base by Rebecca Jonas on 10/25/2019 9:24:40 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize process models. There are many tips and tricks for optimizing a process model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the Archiving Processes&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to archive or delete a process after a custom amount of time (e.g. 2 hours, conditionally based on another process), you&amp;nbsp;can leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory may indicate a high number of versions of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory may indicate a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for the default data store in Appian Cloud.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to Upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your applications grow and as Appian adds new features, your site may require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss. &lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/30</link><pubDate>Fri, 25 Oct 2019 20:53:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Tom Ryan</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 30 posted to Appian Knowledge Base by Tom Ryan on 10/25/2019 8:53:54 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize process models. There are many tips and tricks for optimizing a process model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the Archiving Processes&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to archive or delete a process after a custom amount of time (e.g. 2 hours, conditionally based on another process), you&amp;nbsp;can leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory may indicate a high number of versions of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory may indicate a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for the default data store in Appian Cloud.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and app server sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to Upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your applications grow and as Appian adds new features, your site may require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss. &lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/29</link><pubDate>Thu, 24 Oct 2019 22:02:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 29 posted to Appian Knowledge Base by Rebecca Jonas on 10/24/2019 10:02:46 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize process models. There are many tips and tricks for optimizing a process model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the Archiving Processes&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to archive or delete a process after a custom amount of time (e.g. 2 hours, conditionally based on another process), you&amp;nbsp;can leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian Cloud.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and app server sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to Upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/28</link><pubDate>Thu, 24 Oct 2019 22:01:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 28 posted to Appian Knowledge Base by Rebecca Jonas on 10/24/2019 10:01:49 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize process models. There are many tips and tricks for optimizing a process model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the Archiving Processes&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to archive or delete a process after a custom amount of time (e.g. 2 hours, conditionally based on another process), you&amp;nbsp;can leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian Cloud.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and app server sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian Cloud.&lt;/p&gt;
&lt;p&gt;Last Reviewed: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/27</link><pubDate>Wed, 23 Oct 2019 22:04:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Anirudh Rathi</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 27 posted to Appian Knowledge Base by Anirudh Rathi on 10/23/2019 10:04:19 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics Engines&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/26</link><pubDate>Wed, 23 Oct 2019 22:01:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>khalid.sharara</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 26 posted to Appian Knowledge Base by khalid.sharara on 10/23/2019 10:01:14 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/25</link><pubDate>Wed, 23 Oct 2019 21:59:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>khalid.sharara</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 25 posted to Appian Knowledge Base by khalid.sharara on 10/23/2019 9:59:40 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/24</link><pubDate>Wed, 23 Oct 2019 21:57:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>khalid.sharara</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 24 posted to Appian Knowledge Base by khalid.sharara on 10/23/2019 9:57:31 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to&amp;nbsp;outline how an Appian Cloud customer can reduce the memory footprint of a site.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/23</link><pubDate>Wed, 23 Oct 2019 21:49:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Anirudh Rathi</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 23 posted to Appian Knowledge Base by Anirudh Rathi on 10/23/2019 9:49:34 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to look at the areas that an Appian Cloud customer can reduce their memory footprint on a site.&amp;nbsp;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;In addition, it also highlights some strategies to optimize and control memory usage in Appian environments.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Content Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Design Engine&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/22</link><pubDate>Wed, 23 Oct 2019 21:48:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Anirudh Rathi</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 22 posted to Appian Knowledge Base by Anirudh Rathi on 10/23/2019 9:48:32 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to look at the areas that an Appian Cloud customer can reduce their memory footprint on a site.&amp;nbsp;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;In addition, it also highlights some strategies to optimize and control memory usage in Appian environments.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;&lt;strong&gt;Process Execution and Process Analytics&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Content Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Design Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/21</link><pubDate>Wed, 23 Oct 2019 21:25:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Anirudh Rathi</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 21 posted to Appian Knowledge Base by Anirudh Rathi on 10/23/2019 9:25:53 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to look at the areas that an Appian Cloud customer can reduce their memory footprint on a site.&amp;nbsp;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;In addition, it also highlights some strategies to optimize and control memory usage in Appian environments.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Execution and Process Analytics&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Content Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Design Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/20</link><pubDate>Wed, 23 Oct 2019 21:20:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Anirudh Rathi</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 20 posted to Appian Knowledge Base by Anirudh Rathi on 10/23/2019 9:20:33 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to look at the areas that an Appian Cloud customer can reduce their memory footprint on a site.&amp;nbsp;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;In addition, it also highlights some strategies to optimize and control memory usage in Appian environments.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines" rel="noopener noreferrer" target="_blank"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Execution and Process Analytics&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Content Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Design Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/19</link><pubDate>Wed, 23 Oct 2019 21:19:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Anirudh Rathi</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 19 posted to Appian Knowledge Base by Anirudh Rathi on 10/23/2019 9:19:11 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to look at the areas that an Appian Cloud customer can reduce their memory footprint on a site.&amp;nbsp;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;In addition, it also highlights some strategies to optimize and control memory usage in Appian environments.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines" rel="noopener noreferrer" target="_blank"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Execution and Process Analytics&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Content Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Design Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/18</link><pubDate>Wed, 23 Oct 2019 21:16:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Anirudh Rathi</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 18 posted to Appian Knowledge Base by Anirudh Rathi on 10/23/2019 9:16:44 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to look at the areas that an Appian Cloud customer can reduce their memory footprint on a site.&amp;nbsp;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;In addition, it also highlights some strategies to optimize and control memory usage in Appian environments.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines" rel="noopener noreferrer" target="_blank"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Execution and Process Analytics&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Content Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Design Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how-to, Cloud&lt;/div&gt;
</description></item><item><title>DRAFT KB - XXXX How to address high memory usage in Appian Cloud environments</title><link>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments/revision/17</link><pubDate>Wed, 23 Oct 2019 21:14:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b05b6d0e-5dfb-4201-8ad8-b81af262c127</guid><dc:creator>Anirudh Rathi</dc:creator><comments>https://community.appian.com/support/w/kb/1574/kb-2011-how-to-address-high-memory-usage-in-appian-cloud-environments#comments</comments><description>Revision 17 posted to Appian Knowledge Base by Anirudh Rathi on 10/23/2019 9:14:48 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The purpose of this article is to look at the areas that an Appian Cloud customer can reduce their memory footprint on a site.&amp;nbsp;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;In addition, it also highlights some strategies to optimize and control memory usage in Appian environments.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;&lt;span&gt;Table of Contents&lt;/span&gt;:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Engines" rel="noopener noreferrer" target="_blank"&gt;Engines&lt;/a&gt;&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a title="Process" href="#Process_Execution_and_Process_Analytics"&gt;Process Execution and Process Analytics&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Content"&gt;Content&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Process_Design"&gt;Process Design&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#MySQL"&gt;MySQL&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Application_Server"&gt;Application Server&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Other_Processes"&gt;Other Processes&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-weight:400;"&gt;&lt;a href="#Hardware_Upgrade"&gt;Hardware Upgrade&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Engines"&gt;&lt;/a&gt;Engines&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Execution_and_Process_Analytics"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Execution and Process Analytics&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The process execution and process analytics engines store data on processes running in Appian (such as process variables and process history).&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;Run an &lt;/span&gt;&lt;a href="/w/the-appian-playbook/90/appian-health-check"&gt;&lt;span style="font-weight:400;"&gt;Appian Health Check&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; to identify which processes are taking up the most memory. After identifying the largest consumers you can take several actions depending on the results:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Clean up processes and adjust archival settings. Often there are many complete processes in an Appian environment that are still taking up memory since they have not been set to archive or delete. If this is the case, Appian Support recommends deleting these processes and requesting a restart through a support case. This is because the memory from the cleaned up processes will be freed up when the engines are restarted. The archival and deletion settings of these processes should be set to more aggressive settings to prevent this issue in the future. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Archiving_Processes.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Set a timer for processes that are never completed. Sometimes, an application will have processes that users often do not complete. These processes remain in memory forever until they are cleaned up. If this is the case, Appian Support recommends setting a timer on these processes to end the process if not completed by a certain time. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/Intermediate_Event_-_Timer.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;Optimize a process model. There are many tips and tricks for optimizing a processes model. One of the common inefficiencies in processes are large process variables. These take up more and more memory over time as the process variables&amp;rsquo; versions are saved. Review the &lt;/span&gt;&lt;a href="/w/the-appian-playbook/220/creating-memory-efficient-models"&gt;&lt;span style="font-weight:400;"&gt;Appian playbook&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;The built in monitoring view can help give insights into which processes are consuming the most memory. Review the &lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/latest/monitoring_view.html"&gt;&lt;span style="font-weight:400;"&gt;documentation&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/li&gt;
&lt;li style="font-weight:400;"&gt;&lt;span style="font-weight:400;"&gt;If you want to keep a process around for a custom amount of time, you may leverage the &lt;/span&gt;&lt;a href="/b/appmarket/posts/process-management-services"&gt;&lt;span style="font-weight:400;"&gt;Process Management Services&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Content"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Content Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The content engine stores metadata and security for communities, knowledge centers, folders and documents as well as rules/interfaces, constants and data stores.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High content engine memory indicates a high number of constants or document metadata. To optimize, Appian Support recommends cleaning up constant versions. Review &lt;a href="/support/w/kb/441/kb-1226-content-collaboration-engine-consumes-high-memory"&gt;&lt;span style="font-weight:400;"&gt;KB-1226&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; for more details.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Process_Design"&gt;&lt;/a&gt;&lt;span style="font-size:75%;"&gt;Process Design Engine&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The design engine stores all of the process models and data types.&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;High design engine memory indicates a high number of process model versions in the cloud environment. To optimize, Appian Support recommends looking into cleaning up process model versions either&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manually or by leveraging the &lt;a href="/b/appmarket/posts/process-model-utilities"&gt;&lt;span style="font-weight:400;"&gt;Process Model Utilities&lt;/span&gt;&lt;/a&gt;&lt;span style="font-weight:400;"&gt; plugin from the AppMarket.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="MySQL"&gt;&lt;/a&gt;MySQL Memory&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL is used for both the primary and secondary data sources in Appian.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;How to Optimize&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;MySQL memory is allocated in order to do read and write operations with the database. High MySQL memory can be caused by complex or inefficient commands (such as large select statements or expensive views). In order to optimize MySQL memory, Appian Support recommends revisiting the way the database is being utilized and looking for ways in which it could be used more efficiently.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Application_Server"&gt;&lt;/a&gt;Application Server&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;The application server is used for imports, exports, SAIL evaluation, emails, plugins, web services, and appserver sessions to services and users.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Other_Processes"&gt;&lt;/a&gt;Other Processes&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;There are various internal processes that run to make sure that Appian is running smoothly. These include processes to store and replicate data, antivirus, and engine management and syncing software.&amp;nbsp;&lt;/span&gt;&lt;span style="font-weight:400;"&gt;Work with Appian Technical Support to resolve memory issue relaled to these components.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span style="font-weight:400;"&gt;&lt;a id="Hardware_Upgrade"&gt;&lt;/a&gt;When to upgrade Hardware&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span style="font-weight:400;"&gt;As your application grows and as Appian adds new features, your site will require more RAM to meet the increased memory demands. If optimizing memory in the components listed above has not reduced memory below our monitoring thresholds and Appian Support continues to create cases to alert you of high memory, you must upgrade hardware to reduce the risk of your site crashing and potential data loss.&lt;/span&gt;Please speak with your account executive to increase the memory allocation for your site.&lt;/p&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: October 2019&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

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