Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Technically the Watchdog Script is used to start the Agent from its agent.sh|.cmd Start Script.

In the following situation situations the Watchdog Script will restart the Agent:

  • For the command line operation: agent.sh|.cmd restart
  • For reset and reset forced operations on Agents that are available from the JOC Cockpit's Manage Controllers/Agents page.

Users can check from the processes used for the Agent that both watchdog process and Agent process are running in parallel:

Code Block
languagebash
titleExample for display of Watchdog process and Agent process
-bash-4.2$ ps -ef | grep 9545
sos       3877     1  0 13:56 pts/1    00:00:00 /bin/sh /home/sos/training/agent/agent.home/bin/agent_watchdog.sh -9545
sos       3879  3877  1 13:56 pts/1    00:00:53 /opt/java/jdk-21/bin/java -DJS7.Agent=9545 -Xmx100m -Djava.security.egd=file:///dev/urandom -Xms100m -Dfile.encoding=UTF-8 -Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -Dlog4j2.asyncLoggerWaitStrategy=Block -classpath /home/sos/training/agent/agent.home/lib:/home/sos/training/agent/agent.home/var_9545/config/patches/*:/home/sos/training/agent/agent.home/var_9545/config/lib/*:/home/sos/training/agent/agent.home/lib/patches/*:/home/sos/training/agent/agent.home/lib/user_lib/*:/home/sos/training/agent/agent.home/lib/sos/*:/home/sos/training/agent/agent.home/lib/3rd-party/*:/home/sos/training/agent/agent.home/lib/jdbc/* js7.agent.main.AgentMain --http-port=9545 --config-directory=/home/sos/training/agent/agent.home/var_9545/config --data-directory=/home/sos/training/agent/agent.home/var_9545 --job-working-directory=/home/sos/training/agent/agent.home/var_9545/work

If the Watchdog process is not available then this will affect operation of the Agent:

  • The Agent cannot be restarted when operated for Unix or Windows.
  • The reset and reset forced operations on Agents available from the JOC Cockpit GUI cannot be performed.

Terminating Processes after Crash

...