Views:

When there is a high CPU usage on a DSVA, there are two logs required to be examined:

Strace log

Find the strace log of the process that triggers the issue.

  1. Determine which process is causing the high CPU usage from the default "top" command. The first column of the output will show the PID of the high-CPU process.
  2. Once you found the PID of the process, run the command below:

    strace -f -p <pid_of_high_cpu_process> -o <path/log_file_name>

    For example, if the high-CPU process' PID is 12345, then the command should be:

    strace -f -p 12345 -o /dsam_trace.log

Gcore dump file

Generate the core dump of the process that triggers the issue.

  1. Determine the PID of the high-CPU process.
  2. Run the following command:

    gcore -o <path/dump_file_name> <pid_of_high_cpu_process>

    For example, if the PID is 12345, the command should be:

    gcore -o /dsam.dmp 12345