Sap SQL Agents on Unix Systems end with Ended_Lost when ended by ucybsmcl or kill -TERM processnumber or kill -INT
search cancel

Sap SQL Agents on Unix Systems end with Ended_Lost when ended by ucybsmcl or kill -TERM processnumber or kill -INT

book

Article ID: 89543

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Sap or SQL Agents (or other Java Agents) on Unix Systems end with Ended_Lost when ended by kill -TERM processnumber or kill -INT .

It can also occurs when stopping them via the service manager command line:

ucybsmcl -c STOP_PROCESS -h localhost:8871 -n PHRASE -s AGENT_NAME

This only occurs on Unix/Linux if they have been started with the flag -Xrs

Environment

Agents Java running on Unix (SAP Agent, SQL Agent...)

Cause

The Sap Agent was started with the -Xrs parameter and this can lead to the Operating System ignoring the kill Signals.

NOTE! -Xrs in the startpath of the Agent should only be used with SAP Agents on Windows Systems!

Resolution

Modify the startup command of the agent in the service manager configuration file to remove the -Xrs flag and restart the agent.

Example of the correct definition on the uc4.smd for a SAP Agent:

DEFINE SAP_AGENT_NAME;java -jar /opt/automic/Agents/sap/bin/ucxjr3x.jar;/opt/automic/Agents/sap/bin