<?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-2231 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2231 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script</link><pubDate>Wed, 01 Feb 2023 22:49:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Current Revision posted to Appian Knowledge Base by Maggie Deppe-Walker on 2/1/2023 10:49:05 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s out-of-the-box (OOTB)&amp;nbsp;&lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each of the Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for each of the Appian Java process&amp;#39; PID, the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of the&amp;nbsp; OOTB stop scripts to stop Appian Java components.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h4&gt;Bring down Tomcat&lt;/h4&gt;
&lt;p&gt;If Tomcat cannot be stopped with the OOTB stop-appserver script, follow the below steps to bring down tomcat:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Bring down Kafka and Zookeeper&lt;/h4&gt;
&lt;p&gt;If Kafka and Zookeeper cannot be stopped with the OOTB stop script,&lt;span&gt;&amp;nbsp;&lt;/span&gt;follow the below steps to&lt;span&gt;&amp;nbsp;&lt;/span&gt;bring down Kafka and Zookeeper:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;on all nodes hosting&amp;nbsp;Kafka and Zookeeper to identify the PIDs respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka on all nodes hosting Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper on all nodes hosting Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down on all nodes.&lt;/li&gt;
&lt;li&gt;Start up Internal Messaging Services using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script.&lt;/li&gt;
&lt;li&gt;Stop&amp;nbsp;all the components gracefully depending on the installation type listed below
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Standalone&lt;/strong&gt;: run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;HA&lt;/strong&gt;:&amp;nbsp;run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: January 2023&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/31</link><pubDate>Thu, 05 Jan 2023 03:48:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 31 posted to Appian Knowledge Base by Maggie Deppe-Walker on 1/5/2023 3:48:59 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s out-of-the-box (OOTB)&amp;nbsp;&lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each of the Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for each of the Appian Java process&amp;#39; PID, the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of the&amp;nbsp; OOTB stop scripts to stop Appian Java components.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h4&gt;Bring down Tomcat&lt;/h4&gt;
&lt;p&gt;If Tomcat cannot be stopped with the OOTB stop-appserver script, follow the below steps to bring down tomcat:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Bring down Kafka and Zookeeper&lt;/h4&gt;
&lt;p&gt;If Kafka and Zookeeper cannot be stopped with the OOTB stop script,&lt;span&gt;&amp;nbsp;&lt;/span&gt;follow the below steps to&lt;span&gt;&amp;nbsp;&lt;/span&gt;bring down Kafka and Zookeeper:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;on all nodes hosting&amp;nbsp;Kafka and Zookeeper to identify the PIDs respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka on all nodes hosting Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper on all nodes hosting Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down on all nodes.&lt;/li&gt;
&lt;li&gt;Start up Internal Messaging Services using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script.&lt;/li&gt;
&lt;li&gt;Stop&amp;nbsp;all the components gracefully depending on the installation type listed below
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Standalone&lt;/strong&gt;: run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;HA&lt;/strong&gt;:&amp;nbsp;run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/30</link><pubDate>Thu, 05 Jan 2023 03:47:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 30 posted to Appian Knowledge Base by Maggie Deppe-Walker on 1/5/2023 3:47:58 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s out-of-the-box (OOTB)&amp;nbsp;&lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each of the Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for each of the Appian Java process&amp;#39; PID, the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of the&amp;nbsp; OOTB stop scripts to stop Appian Java components.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h4&gt;Bring down Tomcat&lt;/h4&gt;
&lt;p&gt;If Tomcat cannot be stopped with the OOTB stop-appserver script, follow the below steps to bring down tomcat&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Bring down Kafka and Zookeeper&lt;/h4&gt;
&lt;p&gt;If Kafka and Zookeeper cannot be stopped with the OOTB stop script,&lt;span&gt;&amp;nbsp;&lt;/span&gt;follow the below steps to&lt;span&gt;&amp;nbsp;&lt;/span&gt;bring down tomcat&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;on all nodes hosting&amp;nbsp;Kafka and Zookeeper to identify the PIDs respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka on all nodes hosting Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper on all nodes hosting Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down on all nodes.&lt;/li&gt;
&lt;li&gt;Start up Internal Messaging Services using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script.&lt;/li&gt;
&lt;li&gt;Stop&amp;nbsp;all the components gracefully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Standalone&lt;/strong&gt;: run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;HA&lt;/strong&gt;:&amp;nbsp;run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/29</link><pubDate>Thu, 05 Jan 2023 03:45:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 29 posted to Appian Knowledge Base by Maggie Deppe-Walker on 1/5/2023 3:45:45 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each of the Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for each of the Appian Java process&amp;#39; PID, the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of the&amp;nbsp; OOTB stop scripts to stop Appian Java components.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h4&gt;Bring down Tomcat if Tomcat cannot be stopped with the OOTB stop-appserver script&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h4&gt;Bring down Kafka and Zookeeper if Kafka and Zookeeper cannot be stopped with the OOTB stop script&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;on all nodes hosting&amp;nbsp;Kafka and Zookeeper to identify the PIDs respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka on all nodes hosting Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper on all nodes hosting Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down on all nodes.&lt;/li&gt;
&lt;li&gt;Start up Internal Messaging Services using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script.&lt;/li&gt;
&lt;li&gt;Stop&amp;nbsp;all the components gracefully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Standalone&lt;/strong&gt;: run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;HA&lt;/strong&gt;:&amp;nbsp;run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/28</link><pubDate>Wed, 04 Jan 2023 01:23:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 28 posted to Appian Knowledge Base by Maggie Deppe-Walker on 1/4/2023 1:23:41 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h3&gt;Bring down Tomcat if Tomcat cannot be stopped with OOTB stop-appserver script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Bring down Kafka and Zookeeper if Kafka and Zookeeper cannot be stopped with OOTB stop script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;on all nodes hosting&amp;nbsp;Kafka and Zookeeper to identify the PIDs respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka on all nodes hosting Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper on all nodes hosting Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down on all nodes.&lt;/li&gt;
&lt;li&gt;Start up Internal Messaging Services using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script.&lt;/li&gt;
&lt;li&gt;Stop&amp;nbsp;all the components gracefully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Standalone&lt;/strong&gt;: run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;HA&lt;/strong&gt;:&amp;nbsp;run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/27</link><pubDate>Tue, 03 Jan 2023 18:59:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 27 posted to Appian Knowledge Base by Yiyi Tao on 1/3/2023 6:59:57 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h3&gt;Bring down Tomcat if Tomcat cannot be stopped with OOTB stop-appserver script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Bring down Kafka and Zookeeper if Kafka and Zookeeper cannot be stopped with OOTB stop script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;on all nodes hosting&amp;nbsp;Kafka and Zookeeper to identify the PIDs respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka on all nodes hosting Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper on all nodes hosting Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down on all nodes.&lt;/li&gt;
&lt;li&gt;Start up Internal Messaging Services using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script. Then stop&amp;nbsp;all the components gracefully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Standalone&lt;/strong&gt;: run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;HA&lt;/strong&gt;:&amp;nbsp;run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/26</link><pubDate>Tue, 03 Jan 2023 18:58:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 26 posted to Appian Knowledge Base by Yiyi Tao on 1/3/2023 6:58:36 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h3&gt;Bring down Tomcat if Tomcat cannot be stopped with OOTB stop-appserver script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Bring down Kafka and Zookeeper if Kafka and Zookeeper cannot be stopped with OOTB stop script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;on all nodes hosting Zookeeper and Kafka to identify the PIDs for Kafka and Zookeeper respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka on all nodes hosting Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper on all nodes hosting Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down on all nodes.&lt;/li&gt;
&lt;li&gt;Start up Internal Messaging Services using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script. Then stop&amp;nbsp;all the components gracefully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Standalone&lt;/strong&gt;: run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;HA&lt;/strong&gt;:&amp;nbsp;run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/25</link><pubDate>Tue, 03 Jan 2023 18:57:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 25 posted to Appian Knowledge Base by Yiyi Tao on 1/3/2023 6:57:08 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h3&gt;Bring down Tomcat if Tomcat cannot be stopped with OOTB stop-appserver script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Bring down Kafka and Zookeeper if Kafka and Zookeeper cannot be stopped with OOTB stop script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down.&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script. Then stop&amp;nbsp;all the components gracefully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Standalone&lt;/strong&gt;: run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;HA&lt;/strong&gt;:&amp;nbsp;run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/24</link><pubDate>Tue, 03 Jan 2023 18:56:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 24 posted to Appian Knowledge Base by Yiyi Tao on 1/3/2023 6:56:01 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h3&gt;How to bring down Tomcat if Tomcat cannot be stopped with OOTB stop-appserver script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;How to&amp;nbsp;bring down Kafka and Zookeeper if Kafka and Zookeeper cannot be stopped with OOTB stop script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down.&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script. Then stop&amp;nbsp;all the components gracefully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Standalone&lt;/strong&gt;: run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;HA&lt;/strong&gt;:&amp;nbsp;run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/23</link><pubDate>Tue, 03 Jan 2023 18:55:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 23 posted to Appian Knowledge Base by Yiyi Tao on 1/3/2023 6:55:36 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h3&gt;How to bring down Tomcat if Tomcat cannot be stopped with OOTB stop-appserver script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;How to&amp;nbsp;bring down Kafka and Zookeeper if Kafka and Zookeeper cannot be stopped with OOTB stop script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down.&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script. Then use the stop&amp;nbsp;all the components gracefully:
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Standalone&lt;/strong&gt;: run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;HA&lt;/strong&gt;:&amp;nbsp;run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/22</link><pubDate>Tue, 03 Jan 2023 18:53:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 22 posted to Appian Knowledge Base by Yiyi Tao on 1/3/2023 6:53:44 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;jps&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command.&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for each Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the &lt;span style="font-family:monospace;"&gt;jps&lt;/span&gt;&amp;nbsp;command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h3&gt;How to bring down Tomcat if Tomcat cannot be stopped with OOTB stop-appserver script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;How to&amp;nbsp;bring down Kafka and Zookeeper if Kafka and Zookeeper cannot be stopped with OOTB stop script&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down.&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s manager&lt;/code&gt;&amp;nbsp;on all nodes hosting Kafka and Zookeeper. This should start up Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;jps&lt;/code&gt;&amp;nbsp;command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Confirm that Zookeeper cluster and Kafka cluster&amp;nbsp;are up and running using status script, use the stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&amp;nbsp;to stop all the components gracefully - In standalone setup, run&amp;nbsp;&lt;span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt; -s all&lt;/code&gt; on the node hosting Zookeeper and Kafka. In HA setup, run&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/stop.sh -p &amp;lt;service_manager_password&amp;gt;&lt;/code&gt; on all nodes hosting Zookeeper and Kafka.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/21</link><pubDate>Thu, 29 Dec 2022 03:04:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Maggie Deppe-Walker</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 21 posted to Appian Knowledge Base by Maggie Deppe-Walker on 12/29/2022 3:04:12 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Zookeeper, Kafka, and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;code&gt;stop.sh&lt;/code&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;code&gt;stop-appserver.sh&lt;/code&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The process IDs (PIDs) of &lt;span&gt;Zookeeper, Kafka, and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;JPS&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain the PIDs of Zookeeper, Kafka, and/or Tomcat&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;stop.sh &lt;/code&gt;and &lt;code&gt;stop-appserver.sh&lt;/code&gt; script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the&amp;nbsp;&lt;code&gt;JPS&lt;/code&gt; command.&amp;nbsp;&lt;code&gt;JPS&lt;/code&gt; searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects Java processes to have created a directory with metadata.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for the Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command output and the OOTB stop scripts should&amp;nbsp;work.&lt;/p&gt;
&lt;p&gt;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;em&gt;does not&lt;/em&gt; contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process, as the directory that the&amp;nbsp;&lt;code&gt;JPS&lt;/code&gt; command searches in is dependent on the current user. If the user is different, make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or&amp;nbsp;the entire&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;directory.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;h3&gt;Manually bring down Tomcat&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Gracefully bring down Kafka and Zookeeper&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s), and engines&amp;nbsp;have all been stopped.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper respectively.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka using the following command:&amp;nbsp;&lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Next, manually terminate&amp;nbsp;Zookeeper using the following command:&amp;nbsp;&lt;code&gt;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down.&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt;. This should start up Engines, Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result the&amp;nbsp;&lt;code&gt;JPS&lt;/code&gt; command should return PIDs for Service Manager, Kafka and Zookeeper.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Run the stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&amp;nbsp;to stop all the components gracefully.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/20</link><pubDate>Fri, 16 Dec 2022 18:16:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 20 posted to Appian Knowledge Base by Yiyi Tao on 12/16/2022 6:16:02 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Customer observes that Zookeeper, Kafka and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;strong&gt;stop.sh&lt;/strong&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;strong&gt;stop-appserver.sh&lt;/strong&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The PIDs of &lt;span&gt;Zookeeper, Kafka and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;JPS&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain&amp;nbsp;PIDs of Zookeeper, Kafka and/or Tomcat&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;stop.sh&lt;/strong&gt; and &lt;strong&gt;stop-appserver.sh&lt;/strong&gt; script searches for Zookeeper, Kafka and Tomcat in java processes, which are referring to JPS. JPS searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects java processes to have created a directory with some metadata. When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for the Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command output and the stop script would work.&amp;nbsp;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;does not contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Please confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process as the directory &lt;code&gt;JPS&lt;/code&gt; command searches in is dependent on the current user. If so, please make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, please confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or just&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;in general.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Please see below to bring down Tomcat when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Please see below to bring down Kafka and Zookeeper gracefully when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s) and engines&amp;nbsp;have all been stopped&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper respectively&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka first then Zookeeper by using &lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;and&lt;code&gt;&amp;nbsp;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt;. This should start up Engines, Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result &lt;code&gt;JPS&lt;/code&gt; command should return PIDs for Service Manager, Kafka and Zookeeper&lt;/li&gt;
&lt;li&gt;Run stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt; as normal. This time the script should be able to stop all components gracefully&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/19</link><pubDate>Fri, 16 Dec 2022 05:16:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 19 posted to Appian Knowledge Base by Yiyi Tao on 12/16/2022 5:16:46 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Customer observes that Zookeeper, Kafka and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;strong&gt;stop.sh&lt;/strong&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;strong&gt;stop-appserver.sh&lt;/strong&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The PIDs of &lt;span&gt;Zookeeper, Kafka and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;JPS&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain&amp;nbsp;PIDs of Zookeeper, Kafka and/or Tomcat&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;stop.sh&lt;/strong&gt; and &lt;strong&gt;stop-appserver.sh&lt;/strong&gt; script searches for Zookeeper, Kafka and Tomcat in java processes, which are referring to JPS. JPS searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects java processes to have created a directory with some metadata. When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for the Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command output and the stop script would work.&amp;nbsp;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;does not contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Please confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process as the directory &lt;code&gt;JPS&lt;/code&gt; command searches in is dependent on the current user. If so, please make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, please confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or just&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;in general.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Please see below to bring down Tomcat when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Please see below to bring down Kafka and Zookeeper gracefully when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s) and engines&amp;nbsp;have all been stopped&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper respectively&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka first then Zookeeper by using &lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;and&lt;code&gt;&amp;nbsp;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt;. This should start up Engines, Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result &lt;code&gt;JPS&lt;/code&gt; command should return PIDs for Service Manager, Kafka, and Zookeeper&lt;/li&gt;
&lt;li&gt;Run stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt; as normal. This time the script should be able to stop all components gracefully&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Appian Java components with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/18</link><pubDate>Fri, 16 Dec 2022 05:15:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 18 posted to Appian Knowledge Base by Yiyi Tao on 12/16/2022 5:15:47 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Customer observes that Zookeeper, Kafka and/or Tomcat intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;strong&gt;stop.sh&lt;/strong&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/&lt;/code&gt;&lt;/span&gt; or &lt;strong&gt;stop-appserver.sh&lt;/strong&gt; in&lt;span&gt;&lt;code&gt; &amp;lt;APPIAN_HOME&amp;gt;/tomcat/apache-tomcat/bin/&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The PIDs of &lt;span&gt;Zookeeper, Kafka and/or Tomcat&lt;/span&gt; are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;JPS&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain&amp;nbsp;PIDs of Zookeeper, Kafka and/or Tomcat&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;stop.sh&lt;/strong&gt; and &lt;strong&gt;stop-appserver.sh&lt;/strong&gt; script searches for Zookeeper, Kafka and Tomcat in java processes, which are referring to JPS. JPS searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects java processes to have created a directory with some metadata. When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for the Appian Java process&amp;#39; PID, the corresponding process will show up in the &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command output and the stop script would work.&amp;nbsp;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;does not contain a file for the Appian Java process&amp;#39; PID, then the corresponding process will not show up in the output of &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command, resulting in the failure of stopping&amp;nbsp;the Appian Java components with OOTB stop scripts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Please confirm if the stop script is running as a different user than the&amp;nbsp;Appian Java&amp;nbsp;process as the directory &lt;code&gt;JPS&lt;/code&gt; command searches in is dependent on the current user. If so, please make sure the stop script is ran by the same user as the Appian Java process in question.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, please confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or just&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;in general.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Please see the workaround step below to bring down Tomcat when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Run&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;ps -ef | grep tomcat&lt;/code&gt;&amp;nbsp;to identify the PID for Tomcat&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Manually terminate&amp;nbsp;Tomcat by using&amp;nbsp;&lt;/span&gt;&lt;code&gt;kill -9 &amp;lt;Tomcat_PID&amp;gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Please see&amp;nbsp;the workaround steps below to bring down Kafka and Zookeeper gracefully when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s) and engines&amp;nbsp;have all been stopped&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep kafka &lt;/code&gt;and&lt;code&gt; ps -ef | grep zookeeper&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper respectively&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka first then Zookeeper by using &lt;code&gt;kill -9 &amp;lt;Kafka_PID&amp;gt; &lt;/code&gt;and&lt;code&gt;&amp;nbsp;&lt;span&gt;kill -9 &amp;lt;Zookeeper_PID&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt;. This should start up Engines, Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result &lt;code&gt;JPS&lt;/code&gt; command should return PIDs for Service Manager, Kafka, and Zookeeper&lt;/li&gt;
&lt;li&gt;Run stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt; as normal. This time the script should be able to stop all components gracefully&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Kafka and Zookeeper with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/17</link><pubDate>Tue, 13 Dec 2022 14:12:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 17 posted to Appian Knowledge Base by Yiyi Tao on 12/13/2022 2:12:48 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Customer observes that Kafka and Zookeeper intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;strong&gt;stop.sh&lt;/strong&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The PIDs of Kafka and Zookeeper&amp;nbsp;are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:inherit;"&gt;JPS&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain&amp;nbsp;PIDs of Kafka and Zookeeper&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The stop script searches for Kafka and Zookeeper in java processes, which are referring to JPS. JPS searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects java processes to have created a directory with some metadata. When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for Kafka and/or Zookeeper&amp;#39;s PID, the corresponding process will show up in the &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command output and the stop script would work.&amp;nbsp;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;does not contain a file for Kafka and Zookeeper&amp;#39;s PID, then the corresponding processes will not show up in the output of &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command, resulting in the failure of stopping Kafka and Zookeeper with &lt;strong&gt;stop.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;script in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Please confirm if the stop script is running as a different user than the Kafka and Zookeeper processes as the directory &lt;code&gt;JPS&lt;/code&gt; command searches in is dependent on the current user. If so, please make sure the stop script is ran by the same user as Kafka and Zookeeper.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, please confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or just&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;in general.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Please see&amp;nbsp;the workaround steps below to bring down Kafka and Zookeeper gracefully when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s) and engines are all stopped in the recommended way&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep java&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka first then Zookeeper by using &lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt;. This should start up Engines, Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result &lt;code&gt;JPS&lt;/code&gt; command should return PIDs for Service Manager, Kafka, and Zookeeper&lt;/li&gt;
&lt;li&gt;Run stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt; as normal. This time the script should be able to stop all components gracefully&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Kafka and Zookeeper with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/16</link><pubDate>Tue, 13 Dec 2022 14:12:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 16 posted to Appian Knowledge Base by Yiyi Tao on 12/13/2022 2:12:16 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Customer observes that Kafka and Zookeeper intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;strong&gt;stop.sh&lt;/strong&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The PIDs of Kafka and Zookeeper&amp;nbsp;are&amp;nbsp;not shown in the output of &lt;span style="font-family:monospace;"&gt;JPS&lt;/span&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain&amp;nbsp;PIDs of Kafka and Zookeeper&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The stop script searches for Kafka and Zookeeper in java processes, which are referring to JPS. JPS searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects java processes to have created a directory with some metadata. When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for Kafka and/or Zookeeper&amp;#39;s PID, the corresponding process will show up in the &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command output and the stop script would work.&amp;nbsp;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;does not contain a file for Kafka and Zookeeper&amp;#39;s PID, then the corresponding processes will not show up in the output of &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command, resulting in the failure of stopping Kafka and Zookeeper with &lt;strong&gt;stop.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;script in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Please confirm if the stop script is running as a different user than the Kafka and Zookeeper processes as the directory &lt;code&gt;JPS&lt;/code&gt; command searches in is dependent on the current user. If so, please make sure the stop script is ran by the same user as Kafka and Zookeeper.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, please confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or just&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;in general.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Please see&amp;nbsp;the workaround steps below to bring down Kafka and Zookeeper gracefully when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s) and engines are all stopped in the recommended way&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep java&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka first then Zookeeper by using &lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt;. This should start up Engines, Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result &lt;code&gt;JPS&lt;/code&gt; command should return PIDs for Service Manager, Kafka, and Zookeeper&lt;/li&gt;
&lt;li&gt;Run stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt; as normal. This time the script should be able to stop all components gracefully&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Kafka and Zookeeper with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/15</link><pubDate>Tue, 13 Dec 2022 14:11:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 15 posted to Appian Knowledge Base by Yiyi Tao on 12/13/2022 2:11:34 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Customer observes that Kafka and Zookeeper intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;strong&gt;stop.sh&lt;/strong&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The PIDs of Kafka and Zookeeper&amp;nbsp;are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:monospace;"&gt;JPS&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain&amp;nbsp;PIDs of Kafka and Zookeeper&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The stop script searches for Kafka and Zookeeper in java processes, which are referring to JPS. JPS searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects java processes to have created a directory with some metadata. When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for Kafka and/or Zookeeper&amp;#39;s PID, the corresponding process will show up in the &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command output and the stop script would work.&amp;nbsp;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;does not contain a file for Kafka and Zookeeper&amp;#39;s PID, then the corresponding processes will not show up in the output of &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command, resulting in the failure of stopping Kafka and Zookeeper with &lt;strong&gt;stop.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;script in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Please confirm if the stop script is running as a different user than the Kafka and Zookeeper processes as the directory &lt;code&gt;JPS&lt;/code&gt; command searches in is dependent on the current user. If so, please make sure the stop script is ran by the same user as Kafka and Zookeeper.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, please confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or just&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;in general.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Please see&amp;nbsp;the workaround steps below to bring down Kafka and Zookeeper gracefully when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s) and engines are all stopped in the recommended way&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep java&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka first then Zookeeper by using &lt;code&gt;kill -9 &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt;. This should start up Engines, Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result &lt;code&gt;JPS&lt;/code&gt; command should return PIDs for Service Manager, Kafka, and Zookeeper&lt;/li&gt;
&lt;li&gt;Run stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt; as normal. This time the script should be able to stop all components gracefully&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Kafka and Zookeeper with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/14</link><pubDate>Wed, 07 Dec 2022 15:26:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 14 posted to Appian Knowledge Base by Yiyi Tao on 12/7/2022 3:26:19 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Customer observes that Kafka and Zookeeper intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;strong&gt;stop.sh&lt;/strong&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The PIDs of Kafka and Zookeeper&amp;nbsp;are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:monospace;"&gt;JPS&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain&amp;nbsp;PIDs of Kafka and Zookeeper&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The stop script searches for Kafka and Zookeeper in java processes, which are referring to JPS. JPS searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects java processes to have created a directory with some metadata. When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for Kafka and/or Zookeeper&amp;#39;s PID, the corresponding process will show up in the &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command output and the stop script would work.&amp;nbsp;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;does not contain a file for Kafka and Zookeeper&amp;#39;s PID, then the corresponding processes will not show up in the output of &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command, resulting in the failure of stopping Kafka and Zookeeper with &lt;strong&gt;stop.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;script in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Please confirm if the stop script is running as a different user than the Kafka and Zookeeper processes as the directory &lt;code&gt;JPS&lt;/code&gt; command searches in is dependent on the current user. If so, please make sure the stop script is ran by the same user as Kafka and Zookeeper.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, please confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or just&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;in general.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Please see&amp;nbsp;the workaround steps below to bring down Kafka and Zookeeper gracefully when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s) and engines are all stopped in the recommended way&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep java&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka first then Zookeeper by using &lt;code&gt;kill &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt;. This should start up Engines, Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result &lt;code&gt;JPS&lt;/code&gt; command should return PIDs for Service Manager, Kafka, and Zookeeper&lt;/li&gt;
&lt;li&gt;Run stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt; as normal. This time the script should be able to stop all components gracefully&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Kafka and Zookeeper with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/13</link><pubDate>Wed, 07 Dec 2022 15:22:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 13 posted to Appian Knowledge Base by Yiyi Tao on 12/7/2022 3:22:50 PM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Customer observe&amp;nbsp;that Kafka and Zookeeper intermittently are not able to be stopped by Appian&amp;#39;s OOTB &lt;strong&gt;stop.sh&lt;/strong&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The PIDs of Kafka and Zookeeper&amp;nbsp;are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:monospace;"&gt;JPS&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain&amp;nbsp;PIDs of Kafka and Zookeeper&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The stop script searches for Kafka and Zookeeper in java processes, which are referring to JPS. JPS searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects java processes to have created a directory with some metadata. When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for Kafka and/or Zookeeper&amp;#39;s PID, the corresponding process will show up in the &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command output and the stop script would work.&amp;nbsp;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;does not contain a file for Kafka and Zookeeper&amp;#39;s PID, then the corresponding processes will not show up in the output of &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command, resulting in the failure of stopping Kafka and Zookeeper with &lt;strong&gt;stop.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;script in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Please confirm if the stop script is running as a different user than the Kafka and Zookeeper processes as the directory &lt;code&gt;JPS&lt;/code&gt; command searches in is dependent on the current user. If so, please make sure the stop script is ran by the same user as Kafka and Zookeeper.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, please confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or just&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;in general.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Please see&amp;nbsp;the workaround steps below to bring down Kafka and Zookeeper gracefully when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s) and engines are all stopped in the recommended way&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep java&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka first then Zookeeper by using &lt;code&gt;kill &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt;. This should start up Engines, Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result &lt;code&gt;JPS&lt;/code&gt; command should return PIDs for Service Manager, Kafka, and Zookeeper&lt;/li&gt;
&lt;li&gt;Run stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt; as normal. This time the script should be able to stop all components gracefully&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: linux, infrastructure&lt;/div&gt;
</description></item><item><title>DRAFT SP-8038 Unable to shut down Kafka and Zookeeper with OOTB stop script</title><link>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script/revision/12</link><pubDate>Wed, 07 Dec 2022 05:57:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0ad95d9f-b184-4fbc-91d5-a0aaa226e162</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/2956/kb-2231-unable-to-shut-down-appian-java-components-with-ootb-stop-script#comments</comments><description>Revision 12 posted to Appian Knowledge Base by Yiyi Tao on 12/7/2022 5:57:03 AM&lt;br /&gt;
&lt;h2&gt;&lt;span&gt;Symptoms&lt;/span&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Intermittently, Kafka and Zookeeper are not able to be stopped by Appian&amp;#39;s OOTB &lt;strong&gt;stop.sh&lt;/strong&gt; script in&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;The PIDs of Kafka and Zookeeper&amp;nbsp;are&amp;nbsp;not shown in the output of &lt;code&gt;&lt;span style="font-family:monospace;"&gt;JPS&lt;/span&gt;&lt;/code&gt;&amp;nbsp;command, but able to be identified in the output of &lt;code&gt;ps -ef | grep java&lt;/code&gt; command.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&amp;nbsp;does not contain&amp;nbsp;PIDs of Kafka and Zookeeper&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The stop script searches for Kafka and Zookeeper in java processes, which are referring to JPS. JPS searches &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;, where it expects java processes to have created a directory with some metadata. When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; has a file for Kafka and/or Zookeeper&amp;#39;s PID, the corresponding process will show up in the &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command output and the stop script would work.&amp;nbsp;When the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;does not contain a file for Kafka and Zookeeper&amp;#39;s PID, then the corresponding processes will not show up in the output of &lt;code&gt;JPS&lt;/code&gt;&amp;nbsp;command, resulting in the failure of stopping Kafka and Zookeeper with &lt;strong&gt;stop.sh&lt;/strong&gt;&lt;span&gt;&amp;nbsp;script in&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Please confirm if the stop script is running as a different user than the Kafka and Zookeeper processes as the directory &lt;code&gt;JPS&lt;/code&gt; command searches in is dependent on the current user. If so, please make sure the stop script is ran by the same user as Kafka and Zookeeper.&lt;/li&gt;
&lt;li&gt;If the stop script is ran by the exact same user as the running Java processes and the issue only happens after Appian runs for more than a certain period of time, please confirm with your server team to see if there is any cronjob/mechanism that is cleaning up the&amp;nbsp;&lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;folder or just&amp;nbsp;&lt;code&gt;/tmp&lt;/code&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;in general.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Please see&amp;nbsp;the workaround steps below to bring down Kafka and Zookeeper gracefully when the issue occurs:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make sure app server(s), search server(s), data server(s) and engines are all stopped in the recommended way&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;ps -ef | grep java&lt;/code&gt;&amp;nbsp;to identify the PIDs for Kafka and Zookeeper&lt;/li&gt;
&lt;li&gt;Manually terminate Kafka first then Zookeeper by using &lt;code&gt;kill &amp;lt;PID&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Confirm all Appian components are down&lt;/li&gt;
&lt;li&gt;Start up engines using &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin/start.sh -p &amp;lt;password&amp;gt; -s all&lt;/code&gt;. This should start up Engines, Service Manager, Kafka, and Zookeeper. This should also generate the expected data in &lt;code&gt;/tmp/hsperfdata_&amp;lt;current_user&amp;gt;&lt;/code&gt; and as a result &lt;code&gt;JPS&lt;/code&gt; command should return PIDs for Service Manager, Kafka, and Zookeeper&lt;/li&gt;
&lt;li&gt;Run stop script in&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/services/bin&lt;/code&gt; as normal. This time the script should be able to stop all components gracefully&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all self-managed versions of Appian on Linux.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Last Reviewed: December 2022&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

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