<?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-2039 500 Internal Server Errors displayed when accessing some processes with single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2039 500 Internal Server Errors displayed when accessing some processes with single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu</link><pubDate>Mon, 15 Jun 2020 01:18:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 6/15/2020 1:18:52 AM&lt;br /&gt;
&lt;table style="background-color:#bcedaf;"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt;This issue has been resolved in an Appian hotfix/new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt; &lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a &lt;code&gt;500 - Internal Server Error&lt;/code&gt; is displayed and the following errors are seen in the application server log:&lt;/span&gt;&lt;/p&gt; &lt;pre&gt;&lt;span&gt;ERROR com.appiancorp.process.engine.StartProcessByEventRequest - Could not start process model [draftId=&amp;lt;ID&amp;gt;, version=&amp;lt;version&amp;gt;, userContext=&amp;lt;user&amp;gt;]&lt;br /&gt;com.appian.komodo.api.exceptions.SignalException: domain&lt;/span&gt;&lt;/pre&gt; &lt;pre&gt;&lt;span&gt;ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 16ms] com.appian.komodo.api.exceptions.SignalException: domain at &lt;/span&gt;&lt;/pre&gt; &lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt; &lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt; &lt;ol&gt; &lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt; &lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU. &lt;ol&gt; &lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt; &lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;/ol&gt; &lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt; &lt;ol&gt; &lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt; &lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt; &lt;ol&gt; &lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt; &lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt; &lt;/ol&gt; &lt;/li&gt; &lt;/ol&gt; &lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;strong&gt;execution_by_category_*&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;top_models_by_time_*&lt;/strong&gt;&lt;/li&gt; &lt;li&gt;&lt;strong&gt;top_processes_by_time_*&lt;/strong&gt;&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will roll over anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt; &lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. &lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146311&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;in&amp;nbsp;the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Hotfixes.html#hotfix-package-a"&gt;19.4 Hotfix Package C&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.3/Hotfixes.html#hotfix-package-d"&gt;19.3 Hotfix Package F&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-f"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-i"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-m"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-p"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt; &lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt; &lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with this article.&lt;/span&gt;&lt;/p&gt; &lt;h3&gt;&lt;span&gt;Self-managed&lt;/span&gt;&lt;/h3&gt; &lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;restarting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures:&lt;/span&gt;&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt; &lt;p&gt;If the above steps fail or take an extended amount of time, follow the procedures below to&amp;nbsp;forcibly kill and restart the engine:&lt;/p&gt; &lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt; &lt;ol&gt; &lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt; &lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt; &lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt; &lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt; &lt;/ol&gt; &lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt; &lt;ol&gt; &lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt; &lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt; &lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt; &lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt; &lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt; &lt;/ol&gt; &lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt; &lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3&amp;nbsp;to 19.4&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span&gt;Last Reviewed: June 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, domain, 500, engines, fixed issues, Performance, infrastructure, top processes&lt;/div&gt;
</description></item><item><title>KB-2039 500 Internal Server Errors displayed when accessing some processes with single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/18</link><pubDate>Mon, 15 Jun 2020 01:16:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 18 posted to Appian Knowledge Base by Parmida Borhani on 6/15/2020 1:16:50 AM&lt;br /&gt;
&lt;table style="background-color:#bcedaf;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;This issue has been resolved in an Appian hotfix/new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a &lt;code&gt;500 - Internal Server Error&lt;/code&gt; is displayed and the following errors are seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;ERROR com.appiancorp.process.engine.StartProcessByEventRequest - Could not start process model [draftId=&amp;lt;ID&amp;gt;, version=&amp;lt;version&amp;gt;, userContext=&amp;lt;user&amp;gt;]&lt;br /&gt;com.appian.komodo.api.exceptions.SignalException: domain&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 16ms] com.appian.komodo.api.exceptions.SignalException: domain at &lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;execution_by_category_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_models_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_processes_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will roll over anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. &lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146311&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;in&amp;nbsp;the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Hotfixes.html#hotfix-package-a"&gt;19.4 Hotfix Package C&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.3/Hotfixes.html#hotfix-package-d"&gt;19.3 Hotfix Package F&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-f"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-i"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-m"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-p"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with this article.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;restarting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the above steps fail or take an extended amount of time, follow the procedures below to&amp;nbsp;forcibly kill and restart the engine:&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3&amp;nbsp;to 19.4&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: June 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, 500, engines, fixed issues, Performance, infrastructure&lt;/div&gt;
</description></item><item><title>KB-2039 500 Internal Server Errors displayed when accessing some processes with single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/17</link><pubDate>Mon, 15 Jun 2020 01:15:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 17 posted to Appian Knowledge Base by Parmida Borhani on 6/15/2020 1:15:11 AM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a &lt;code&gt;500 - Internal Server Error&lt;/code&gt; is displayed and the following errors are seen in the application server log:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;ERROR com.appiancorp.process.engine.StartProcessByEventRequest - Could not start process model [draftId=&amp;lt;ID&amp;gt;, version=&amp;lt;version&amp;gt;, userContext=&amp;lt;user&amp;gt;]&lt;br /&gt;com.appian.komodo.api.exceptions.SignalException: domain&lt;/span&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 16ms] com.appian.komodo.api.exceptions.SignalException: domain at &lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;execution_by_category_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_models_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_processes_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will roll over anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. &lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146311&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;in&amp;nbsp;the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Hotfixes.html#hotfix-package-a"&gt;19.4 Hotfix Package C&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.3/Hotfixes.html#hotfix-package-d"&gt;19.3 Hotfix Package F&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-f"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-i"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-m"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-p"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with this article.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;restarting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the above steps fail or take an extended amount of time, follow the procedures below to&amp;nbsp;forcibly kill and restart the engine:&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3&amp;nbsp;to 19.4&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: June 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, 500, engines, Performance, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>KB-2039 500 Internal Server Errors displayed when accessing some processes with single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/16</link><pubDate>Mon, 18 May 2020 22:06:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 16 posted to Appian Knowledge Base by Parmida Borhani on 5/18/2020 10:06:40 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a &lt;code&gt;500 - Internal Server Error&lt;/code&gt; is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;execution_by_category_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_models_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_processes_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will roll over anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. &lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146311&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;in&amp;nbsp;the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Hotfixes.html#hotfix-package-a"&gt;19.4 Hotfix Package C&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.3/Hotfixes.html#hotfix-package-d"&gt;19.3 Hotfix Package F&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-f"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-i"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-m"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-p"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with this article.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;restarting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the above steps fail or take an extended amount of time, follow the procedures below to&amp;nbsp;forcibly kill and restart the engine:&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3&amp;nbsp;to 19.4&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: April 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, 500, engines, Performance, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>KB-2039 500 Internal Server Errors displayed when accessing some processes with single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/15</link><pubDate>Thu, 23 Apr 2020 18:29:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 15 posted to Appian Knowledge Base by James Lee on 4/23/2020 6:29:06 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a &lt;code&gt;500 - Internal Server Error&lt;/code&gt; is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;execution_by_category_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_models_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_processes_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will roll over anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. &lt;span&gt;This issue has been addressed via &lt;strong&gt;AN-146311&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;in&amp;nbsp;the following hotfixes/versions:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.4/Hotfixes.html#hotfix-package-a"&gt;19.4 Hotfix Package C&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.3/Hotfixes.html#hotfix-package-d"&gt;19.3 Hotfix Package F&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.2/Hotfixes.html#hotfix-package-f"&gt;19.2 Hotfix Package H&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/19.1/Hotfixes.html#hotfix-package-i"&gt;19.1 Hotfix Package K&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.4/Hotfixes.html#hotfix-package-m"&gt;18.4 Hotfix Package O&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/Hotfixes.html#hotfix-package-p"&gt;18.3 Hotfix Package R&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with this article.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;restarting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the above steps fail or take an extended amount of time, follow the procedures below to&amp;nbsp;forcibly kill and restart the engine:&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3&amp;nbsp;to 19.4&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: April 2020&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, Performance, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>KB-2039 500 Internal Server Errors displayed when accessing some processes with single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/13</link><pubDate>Tue, 10 Dec 2019 18:51:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 13 posted to Appian Knowledge Base by Rebecca Jonas on 12/10/2019 6:51:54 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a &lt;code&gt;500 - Internal Server Error&lt;/code&gt; is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;execution_by_category_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_models_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_processes_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will roll over anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. This&amp;nbsp;issue has been reported to the Appian Product Team, and the reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with this article.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;restarting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the above steps fail or take an extended amount of time, follow the procedures below to&amp;nbsp;forcibly kill and restart the engine:&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, Performance, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>KB-2039 500 Internal Server Errors displayed when accessing some processes with single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/14</link><pubDate>Tue, 10 Dec 2019 18:51:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>Rebecca Jonas</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 14 posted to Appian Knowledge Base by Rebecca Jonas on 12/10/2019 6:51:54 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a &lt;code&gt;500 - Internal Server Error&lt;/code&gt; is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;execution_by_category_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_models_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_processes_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will roll over anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. This&amp;nbsp;issue has been reported to the Appian Product Team, and the reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with this article.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;restarting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the above steps fail or take an extended amount of time, follow the procedures below to&amp;nbsp;forcibly kill and restart the engine:&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, Performance, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>KB-XXXX 500 Internal Server Errors displayed when accessing some processes with single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/12</link><pubDate>Fri, 06 Dec 2019 17:41:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 12 posted to Appian Knowledge Base by James Lee on 12/6/2019 5:41:24 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a &lt;code&gt;500 - Internal Server Error&lt;/code&gt; is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;execution_by_category_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_models_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_processes_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will roll over anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. This&amp;nbsp;issue has been reported to the Appian Product Team, and the reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with this article.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;restarting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the above steps fail or take an extended amount of time, follow the procedures below to&amp;nbsp;forcibly kill and restart the engine:&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, Performance, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>KB-XXXX 500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/11</link><pubDate>Wed, 04 Dec 2019 23:04:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 11 posted to Appian Knowledge Base by James Lee on 12/4/2019 11:04:08 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;execution_by_category_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_models_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;top_processes_by_time_*&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will rollover anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. This&amp;nbsp;issue has been reported to the Appian Product Team, and the reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with KB-XXXX.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;rebooting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures, but if this fails or takes an extended amount of time, there are further steps listed on how to forcibly kill the engine:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;If the afflicted engine needs to be forcibly&amp;nbsp;killed, follow the procedures below to kill and restart the engine:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, Performance, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>KB-XXXX 500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/10</link><pubDate>Wed, 04 Dec 2019 16:55:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 10 posted to Appian Knowledge Base by James Lee on 12/4/2019 4:55:26 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;execution_by_category_*&lt;/li&gt;
&lt;li&gt;top_models_by_time_*&lt;/li&gt;
&lt;li&gt;top_processes_by_time_*&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will rollover anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. This&amp;nbsp;issue has been reported to the Appian Product Team, and the reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with KB-XXXX.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;rebooting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures, but if this fails or takes an extended amount of time, there are further steps listed on how to forcibly kill the engine:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;If the afflicted engine needs to be forcibly&amp;nbsp;killed, follow the procedures below to kill and restart the engine:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, Performance, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/9</link><pubDate>Wed, 04 Dec 2019 14:46:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 9 posted to Appian Knowledge Base by James Lee on 12/4/2019 2:46:13 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;execution_by_category_*&lt;/li&gt;
&lt;li&gt;top_models_by_time_*&lt;/li&gt;
&lt;li&gt;top_processes_by_time_*&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will rollover anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. This&amp;nbsp;issue has been reported to the Appian Product Team, and the reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with KB-XXXX.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;rebooting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures, but if this fails or takes an extended amount of time, there are further steps listed on how to forcibly kill the engine:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;If the afflicted engine needs to be forcibly&amp;nbsp;killed, follow the procedures below to kill and restart the engine:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, Performance, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/8</link><pubDate>Wed, 04 Dec 2019 14:45:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 8 posted to Appian Knowledge Base by James Lee on 12/4/2019 2:45:24 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;execution_by_category_*&lt;/li&gt;
&lt;li&gt;top_models_by_time_*&lt;/li&gt;
&lt;li&gt;top_processes_by_time_*&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will rollover anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. This&amp;nbsp;issue has been reported to the Appian Product Team, and the reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with KB-XXXX.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;rebooting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures, but if this fails or takes an extended amount of time, there are further steps listed on how to forcibly kill the engine:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;If the afflicted engine needs to be forcibly&amp;nbsp;killed, follow the procedures below to kill and restart the engine:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/7</link><pubDate>Wed, 04 Dec 2019 14:44:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 7 posted to Appian Knowledge Base by James Lee on 12/4/2019 2:44:19 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;execution_by_category_*&lt;/li&gt;
&lt;li&gt;top_models_by_time_*&lt;/li&gt;
&lt;li&gt;top_processes_by_time_*&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will rollover anytime an execution engine is restarted. Therefore, it has been calculated that this behavior should only occur if an execution engine has been running continuously for no less than approximately 60 days.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in these logs become too massive to scale any further, which causes the engine to lock while trying to process the data. This&amp;nbsp;issue has been reported to the Appian Product Team, and the reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with KB-XXXX.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;rebooting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures, but if this fails or takes an extended amount of time, there are further steps listed on how to forcibly kill the engine:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;If the afflicted engine needs to be forcibly&amp;nbsp;killed, follow the procedures below:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/6</link><pubDate>Wed, 04 Dec 2019 14:42:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 6 posted to Appian Knowledge Base by James Lee on 12/4/2019 2:42:15 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;execution_by_category_*&lt;/li&gt;
&lt;li&gt;top_models_by_time_*&lt;/li&gt;
&lt;li&gt;top_processes_by_time_*&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will rollover anytime an execution engine is restarted, so this behavior should only manifest if an execution engine has been running for no less than approximately 60 days continuously.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in this&amp;nbsp;log become too massive to scale any further, which causes the engine to lock trying to process further data. This&amp;nbsp;issue has been reported to the Appian Product Team. The reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with KB-XXXX.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;rebooting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures, but if this fails or takes an extended amount of time, there are further steps listed on how to forcibly kill the engine:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;If the afflicted engine needs to be forcibly&amp;nbsp;killed, follow the procedures below:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/5</link><pubDate>Wed, 04 Dec 2019 14:40:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 5 posted to Appian Knowledge Base by James Lee on 12/4/2019 2:40:26 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage on the server hosting the Appian engines, a single execution engine is found to be running at 100% CPU. Steps to verify this are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;execution_by_category_*&lt;/li&gt;
&lt;li&gt;top_models_by_time_*&lt;/li&gt;
&lt;li&gt;top_processes_by_time_*&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will rollover anytime an execution engine is restarted, so this behavior will only manifest if an execution engine has been running for at least 60 days continuously.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in this&amp;nbsp;log become too massive to scale any further, which causes the engine to lock trying to process further data. This&amp;nbsp;issue has been reported to the Appian Product Team. The reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with KB-XXXX.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;rebooting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs and restarting the afflicted engine will resolve this issue. A single execution engine can be restarted with the following procedures, but if this fails or takes an extended amount of time, there are further steps listed on how to forcibly kill the engine:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;If the afflicted engine needs to be forcibly&amp;nbsp;killed, follow the procedures below:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/4</link><pubDate>Wed, 04 Dec 2019 14:18:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 4 posted to Appian Knowledge Base by James Lee on 12/4/2019 2:18:44 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage, a single execution engine is found to be running at 100% CPU. Steps to verify are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;execution_by_category_*&lt;/li&gt;
&lt;li&gt;top_models_by_time_*&lt;/li&gt;
&lt;li&gt;top_processes_by_time_*&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will rollover anytime an execution engine is restarted, so this behavior will only manifest if an execution engine has been running for at least 60 days continuously.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in this&amp;nbsp;log become too massive to scale any further, which causes the engine to lock trying to process further data. This&amp;nbsp;issue has been reported to the Appian Product Team. The reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;h3&gt;&lt;span&gt;Cloud&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Open a case with Appian Support and note to the case description that you are experiencing&amp;nbsp;behavior in line with KB-XXXX.&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;On-Premise&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;This issue can be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;rebooting the environment&lt;/a&gt;. To avoid downtime in the environment, moving the above mentioned log files to a directory other than &amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs and restarting the afflicted engine will resolve this issue. A single engine can be restarted with the following procedures:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Note&lt;/strong&gt;: If your environment is configured for high availability, then a replica execution engine will automatically be promoted to primary when the afflicted engine is stopped or forcibly killed.&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Note&lt;/strong&gt;: the afflicted engine&amp;nbsp;may need to be killed forcibly, and this can be done using the steps below:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;span&gt;, execute&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;&lt;span&gt;&amp;nbsp;to restart the engine.&lt;/span&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt; to restart the engine.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This&lt;/span&gt;&lt;span&gt;&amp;nbsp;article applies to Appian 18.3 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed:&amp;nbsp;December 2019&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: known issues, engines, infrastructure, open issues&lt;/div&gt;
</description></item><item><title>500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/3</link><pubDate>Wed, 04 Dec 2019 14:08:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 3 posted to Appian Knowledge Base by James Lee on 12/4/2019 2:08:09 PM&lt;br /&gt;
&lt;h2 class="content-scrollable-wrapper"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage, a single execution engine is found to be running at 100% CPU. Steps to verify are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;execution_by_category_*&lt;/li&gt;
&lt;li&gt;top_models_by_time_*&lt;/li&gt;
&lt;li&gt;top_processes_by_time_*&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will rollover anytime an execution engine is restarted, so this behavior will only manifest if an execution engine has been running for at least 60 days continuously.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in this&amp;nbsp;log become too massive to scale any further, which causes the engine to lock trying to process further data. This&amp;nbsp;issue has been reported to the Appian Product Team. The reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;To avoid downtime in the environment, moving the above mentioned log files to a directory other than &amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs and restarting the afflicted engine will resolve this issue. A single engine can be restarted with the following procedures:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;From &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute &lt;code&gt;./stop.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX&lt;/code&gt;. Wait for the engine to stop.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;From&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;, execute&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;./start.sh (.bat) -p &amp;lt;PASSWORD&amp;gt; -s executionXX.&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt; The afflicted engine&amp;nbsp;may need to be killed forcibly, and this can be done using the steps below:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the newly selected PID column.&lt;/li&gt;
&lt;li&gt;You can force kill the engine by right clicking the engine process in task manager, and selecting the option to &amp;quot;End task.&amp;quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This issue can also be resolved by &lt;a href="https://docs.appian.com/suite/help/latest/Starting_and_Stopping_Appian.html"&gt;rebooting the environment&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This section includes any relevant version information for Appian or other third/party configurations. Some examples of valid affected versions are as follows:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 7.11 and later.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 16.2 and earlier.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 7.11 and 16.1.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 16.1, 16.2, and 16.3.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to all versions of Appian from Appian 7.10 to Appian 16.2.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to all versions of Appian using JBoss EAP 6.4.9 as an application server and Internet Explorer 9 as a web browser.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;This article applies to all versions of Appian Cloud.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: Month YYYY&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/2</link><pubDate>Wed, 04 Dec 2019 13:48:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 2 posted to Appian Knowledge Base by James Lee on 12/4/2019 1:48:40 PM&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;This issue has been resolved in an Appian hotfix/new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage, a single execution engine is found to be running at 100% CPU. Steps to verify are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This issue occurs when one of the below engine performance logs reaches 10 megabytes in size:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;execution_by_category_*&lt;/li&gt;
&lt;li&gt;top_models_by_time_*&lt;/li&gt;
&lt;li&gt;top_processes_by_time_*&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These logs can be found in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; directory. These logs will rollover anytime an execution engine is restarted, so this behavior will only manifest if an execution engine has been running for at least 60 days continuously.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason these logs can cause an execution engine to max out at 100% CPU utilization is a result of how select values in these logs are calculated. Transient tables within the execution engine that populate values in this&amp;nbsp;log become too massive to scale any further, which causes the engine to lock trying to process further data. The reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-146311&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;To avoid downtime in the environment, moving the above mentioned log files to a directory other than &amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs and restarting the afflicted engine will resolve this issue. The afflicted engine&amp;nbsp;may need to be killed forcibly, and this can be done using the steps below:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;&lt;span&gt;Similar to the steps listed in the &amp;quot;Cause&amp;quot; section of this article:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the&amp;nbsp;&lt;code&gt;top&lt;/code&gt;&amp;nbsp;command on the server, and then press&amp;nbsp;&lt;code&gt;c&lt;/code&gt;,&amp;nbsp;&lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for the execution engine process running at 100% CPU. The PID of this process will be listed in the left most column of the top output.&lt;/li&gt;
&lt;li&gt;You can use the following command to forcibly kill the engine:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;PID&amp;quot; and &amp;quot;Command line&amp;quot; columns:&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575467281559v6.png" /&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This section is optional and should only be used as an alternative action if there is a massive technical debt associated with performing the action in the above section for customers (such as upgrading). It can also be used if there is a solution to the issue in the article but is more inconvenient to implement or it causes other undesirable behavior and wouldn&amp;rsquo;t warrant being an action.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This section includes any relevant version information for Appian or other third/party configurations. Some examples of valid affected versions are as follows:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 7.11 and later.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 16.2 and earlier.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 7.11 and 16.1.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 16.1, 16.2, and 16.3.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to all versions of Appian from Appian 7.10 to Appian 16.2.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to all versions of Appian using JBoss EAP 6.4.9 as an application server and Internet Explorer 9 as a web browser.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;This article applies to all versions of Appian Cloud.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: Month YYYY&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>500 Internal Server Errors displayed when accessing some processes. Single execution engine running at 100% CPU</title><link>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu/revision/1</link><pubDate>Wed, 04 Dec 2019 13:23:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b4da1298-6f90-4f27-b57b-d0b3915d4996</guid><dc:creator>James Lee</dc:creator><comments>https://community.appian.com/support/w/kb/1619/kb-2039-500-internal-server-errors-displayed-when-accessing-some-processes-with-single-execution-engine-running-at-100-cpu#comments</comments><description>Revision 1 posted to Appian Knowledge Base by James Lee on 12/4/2019 1:23:30 PM&lt;br /&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;This issue has been resolved in an Appian hotfix/new Appian version. Please apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;When trying to initiate some processes in an environment, a 500 - Internal Server Error is displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When checking CPU usage, a single execution engine is found to be running at 100% CPU. Steps to verify are listed below:&lt;/span&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span&gt;Linux&lt;/span&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Run the &lt;code&gt;top&lt;/code&gt; command on the server, and then press &lt;code&gt;c&lt;/code&gt;, &lt;code&gt;shift+p&lt;/code&gt;. This will sort processes by CPU usage.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Under the CPU column, look for an&amp;nbsp;execution engine process running at 100% CPU.
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example, &lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt; would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;Windows&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Open up Task Manager and navigate to the &amp;quot;Processes&amp;quot; tab.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Right click on the &amp;quot;Name&amp;quot; column header, and select the option to add the &amp;quot;Command line&amp;quot; column:&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1575465496078v2.png" /&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;Under the CPU column, look for an&amp;nbsp;execution engine process&amp;nbsp;running at 100% CPU (you will likely need to expand the &amp;quot;Command line&amp;quot; column in order to see the full string).&lt;/span&gt;&lt;/span&gt;
&lt;ol&gt;
&lt;li&gt;You can identify an engine process if it contains the string&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_bin/k/linux64/k&amp;nbsp;&amp;lt;APPIAN_HOME&amp;gt;/server/_lib/adb&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;You can identify the specific engine as an execution engine by looking at the end part of the string. For example,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&lt;span&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/span&gt;/server/process/exec/02/gw1&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;would indicate that the engine is execution02.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Cause&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This section is required for this template. When writing a cause for a particular article, ensure the following is taken into consideration:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;The cause is concise and does not disclose more information than absolutely necessary.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;The cause does not share any Appian source code. Source code for plugins/shared components are fine.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;If this is an issue outside of the Appian product and the third-party vendor included documentation referencing the bug, provide their documentation for reference.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;For any enhancements/defects, use one of the following as applicable:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This issue has been reported to the Appian Product Team. The reference number for this issue is&amp;nbsp;&lt;strong&gt;AN-XXXXX&lt;/strong&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This product use case has been logged to the Appian Product Team for consideration to add this functionality in the product. Kindly note it is not Appian Support&amp;rsquo;s policy to disclose how or when a product use case will be implemented.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This issue has been addressed via&amp;nbsp;&lt;strong&gt;AN-XXXXX&lt;/strong&gt;&amp;nbsp;in Appian X.X Hotfix Package X.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This issue has been addressed via&amp;nbsp;&lt;strong&gt;AN-XXXXX&lt;/strong&gt;&amp;nbsp;in the following hotfixes/versions:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;List each specific hotfix package/version in ascending order by version.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This use case has been incorporated in Appian X.X Hotfix Package X.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This use case has been incorporated in the following versions/hotfixes:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;List each specific hotfix package/version in ascending order by version.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;When listing hotfixes, add a hyperlink to the Hotfix documentation for that version.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When logging a product defect, ensure you use the&amp;nbsp;&lt;strong&gt;known issues&lt;/strong&gt;&amp;nbsp;tag as well as the&amp;nbsp;&lt;strong&gt;open issues&lt;/strong&gt;&amp;nbsp;or&amp;nbsp;&lt;strong&gt;fixed issues&lt;/strong&gt;&amp;nbsp;tag, depending if the issue is fixed or not.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If no cause is known and this is not something Engineering can reproduce/needs to know about, then say &amp;ldquo;The root cause of this issue is currently unknown.&amp;rdquo; If you use that as your cause, then a valid action&amp;nbsp;&lt;/span&gt;&lt;strong&gt;must&lt;/strong&gt;&lt;span&gt;&amp;nbsp;be present.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Action&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This section is required for this template and contains the steps to resolve the issue. If an issue in an article is solved by a hotfix and/or major version of Appian, use the following language to indicate that:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Upgrade to the latest version of Appian.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Apply the latest hotfix to your Appian installation or upgrade to the latest version of Appian.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;If there is a product issue with Engineering that is open and a workaround for that issue exists, include it in the Action section until the fix is available. After the fix is made available, use that as a workaround instead.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Otherwise, the content in this section should wholly solve a customer&amp;rsquo;s issue without producing any undesirable side effects. If there is at least one valid action that doesn&amp;rsquo;t cause undesirable side effects, all other actions with negative side effects should go in the Workaround section.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If there is no action or workaround that resolves the issue, use the following language:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;There is no action or workaround currently available for this issue. If you are facing this issue, please open a support case with Appian.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;&lt;span&gt;Workaround&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This section is optional and should only be used as an alternative action if there is a massive technical debt associated with performing the action in the above section for customers (such as upgrading). It can also be used if there is a solution to the issue in the article but is more inconvenient to implement or it causes other undesirable behavior and wouldn&amp;rsquo;t warrant being an action.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This section includes any relevant version information for Appian or other third/party configurations. Some examples of valid affected versions are as follows:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;This article applies to all versions of Appian.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 7.11 and later.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 16.2 and earlier.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 7.11 and 16.1.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to Appian 16.1, 16.2, and 16.3.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to all versions of Appian from Appian 7.10 to Appian 16.2.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;This article applies to all versions of Appian using JBoss EAP 6.4.9 as an application server and Internet Explorer 9 as a web browser.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;This article applies to all versions of Appian Cloud.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: Month YYYY&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>