stop.sh
<APPIAN_HOME>/services/bin/
stop-appserver.sh
<APPIAN_HOME>/tomcat/apache-tomcat/bin/
jps
ps -ef | grep java
/tmp/hsperfdata_<current_user>
The stop.sh and stop-appserver.sh script searches for Zookeeper, Kafka, and Tomcat in Java processes, which are referred to in the jps command. jps searches /tmp/hsperfdata_<current_user>, where it expects Java processes to have created a directory with metadata.
When the /tmp/hsperfdata_<current_user> has a file for each of the Appian Java process' PID, the corresponding process will show up in the jps command output and the OOTB stop scripts should work.
When the /tmp/hsperfdata_<current_user> does not contain a file for each of the Appian Java process' PID, the corresponding process will not show up in the output of jps command, resulting in the failure of the OOTB stop scripts to stop Appian Java components.
/tmp
If Tomcat cannot be stopped with the OOTB stop-appserver script, follow the below steps to bring down tomcat:
ps -ef | grep tomcat
kill -9 <Tomcat_PID>
If Kafka and Zookeeper cannot be stopped with the OOTB stop script, follow the below steps to bring down Kafka and Zookeeper:
ps -ef | grep kafka
ps -ef | grep zookeeper
kill -9 <Kafka_PID>
kill -9 <Zookeeper_PID>
<APPIAN_HOME>/services/bin/start.sh -p <password> -s manager
<APPIAN_HOME>/services/bin/stop.sh -p <password> -s all
<APPIAN_HOME>/services/bin/stop.sh -p <password>
This article applies to all self-managed versions of Appian on Linux.
Last Reviewed: January 2023