SAP Note 1163337 - Generating core dumps on Linux

Component : Linux -

Solution : https://service.sap.com/sap/support/notes/1163337 (SAP Service marketplace login required)

Summary :
When a SYSTEM_CORE_DUMPED error occurs in an SAP system on Linux, a core file is essential for diagnostic purposes, as it captures the state of the system at failure. Core dump generation is disabled by default and must be manually activated. This is achieved using "ulimit" or "limit" commands in the respective shell (bash or C shell). Changes must be made prior to restarting the SAP instance and can be set globally or specifically for adm. Alternative settings include specifying the core file name with process ID to prevent overwriting and managing system-wide settings via /proc/sys/kernel/core_bias. Restart of sapstartsrv when adjusting settings in environments running with sapstartsrv for Kernel 720 or higher is automated through startsap, strengthening system administration.

Key words :
% sapcontrol -prot ni_http -nr <nr> -function startservice <sid>, % sapcontrol -prot ni_http -nr <nr> -function stopservice, grep <sid>adm% cat /proc/<pid>/limitscomments, directory /usr/sap/<sid>/<inst>/work, /usr/sap/<sid>/<inst>/work, cat /proc/sys/kernel/core_pattern, limit coredumpsize unlimited               deactivate core dumps, > /proc/sys/kernel/core_pattern check, > /proc/sys/kernel/core_pattern, /usr/sap/<sid>/home/

Related Notes :

171356SAP software on Linux: General information