Linux: Investigating Unexpected SAP Process Termination with bpftrace

When an SAP process disappears unexpectedly, distinguish a graceful exit, an application crash, an OOM kill and a signal sent by another process. Historical system logs are the first place to investigate.

What to check

Check the kernel journal, SAP developer traces, system service logs and available crash evidence. If the event can be reproduced and the Linux team approves live tracing, inspect the kernel signal tracepoint’s available fields before constructing a filtered bpftrace program.

journalctl -k --since '1 hour ago'
bpftrace -l 'tracepoint:signal:*'
bpftrace -lv 'tracepoint:signal:signal_generate'

Validation and precautions

Use a narrowly filtered trace for the target process and a limited observation window. A generated signal is not necessarily delivered or fatal. Correlate sender and target PIDs with process exits and SAP logs. Avoid high-volume system-wide tracing on a busy production host.

Reference

SAP Note: 3766349

Linux Kernel documentation: Documentation

You May Also Like

Leave a Reply?