Using the sapstack Standalone Program

Prerequisites

The sapstack standalone program can be found in directory dw_utils.SAR.

Context

The sapstack standalone program is used to display the C call stack of one or more processes. The SIGUSR2 signal used in earlier releases can no longer be used to write the C call stack to the developer trace.

Procedure

  1. Use either SAP MMC, sapcontrol, or the sapstack standalone program directly to display the C call stack.
    • Open SAP MMC, select an instance, and from its context menu choose: Start of the navigation pathAll Tasks Next navigation step Call StackEnd of the navigation path.
    • If you use the sapstack standalone program directly in the command field, enter the following command to display the C call stack: sapstack -<PID>
  2. The following commands are optional when you execute the sapstack standalone program directly:
    • Enter sapstack <PID> to display the C call stack of this process.
    • UNIX: On UNIX platforms you can obtain the C call stack of a process tree. You have to specify the PID of the parent process (for example, sapstart for all processes of an SAP instance). Use the following command line: sapstack -tree <PID>.
    • Windows: On Windows platforms you can obtain the C call stack for all processes of a job object. For each SAP instance a job object called Global\SAP_ is created by the SAP start service. Use the following command line to display all the children of this job object. sapstack Global\SAP<SID>_<NR>.

Results

The corresponding C call stack is displayed and you can evaulate it.