SAP Agent crashes when running multiple jobs that perform R3_IMPORT_CALENDAR to update some Calendar Objects.
The last lines of the Agent log contain the following messages:
U00029000 Report '1529478401' for file '/sap_agent/temp/agent_name/PLOG_OEYSZBLQ.TXT' has been started.
U02004202 Create new API connection with client 'XXX' and user 'USERNAME'.
As a result, the job remains in Active status and when displaying the Job's Report, the last line shows the R3_IMPORT_CALENDAR function being called.
Additionally, a log file called hs_err_pidXXX.log contains the reason for the crash:
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 150994944 bytes for committing reserved memory.
# Out of Memory Error (os_linux.cpp:2627), pid=517, tid=0x00007fded5fff700
The agent sap JVM crashes due to the fact that it reaches the maximum amount of allowed memory (xmx setting):
U02000110 Maximum Heap Memory: '910' MB
Release : 12.x
Component : AUTOMATION ENGINE
Subcomponent: Agent SAP
Increase the Agent SAP xmx parameter to a higher value such as -Xmx2048M