CPU by processes probe displays 0 values
search cancel

CPU by processes probe displays 0 values

book

Article ID: 259934

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM)

Issue/Introduction

CPU by processes probe always displays zero values

CPU on server 

[root@vxxxxx ~]# top | grep mysql

2588 mysqlvw   20   0   11.5g  10.9g   8116 S   7.0 46.5  43732:53 mysqld

2588 mysqlvw   20   0   11.5g  10.9g   8116 S   8.0 46.5  43732:54 mysqld

 

As seen in Operator Console 

 

 

 

Environment

Release : 20.4.x

processes probe :any supported version 

OS :RHEL 7.9 /any supported OS

Resolution

From processes probe logs it was observed that configuration was set for collecting only one sample

    Line  15005: Jan 24 15:51:47:675 processes: cpu_get_usage_from_sample_list for pid = 30345, only one sample
    Line  15006: Jan 24 15:51:47:675 processes: cpu_get_usage_from_sample_list for pid = 30299, only one sample
    Line  15007: Jan 24 15:51:47:675 processes: cpu_get_usage_from_sample_list for pid = 30297, only one sample
    Line  15008: Jan 24 15:51:47:675 processes: cpu_get_usage_from_sample_list for pid = 30295, only one sample
    Line  15009: Jan 24 15:51:47:675 processes: cpu_get_usage_from_sample_list for pid = 28675, only one sample
    Line  15010: Jan 24 15:51:47:675 processes: cpu_get_usage_from_sample_list for pid = 27253, only one sample
    Line  15011: Jan 24 15:51:47:675 processes: cpu_get_usage_from_sample_list for pid = 26544, only one sample

Can increase the CPU sample cells to higher value > 1 .Default is 5 

  1. CPU sample cells specifies the number of cells to hold CPU and memory values for threshold computations.

         This value is used for cpu usage calculation by using the difference between the values of two samples is the

         reason it was previously not working with value of 1.For enhanced accuracy the default value is 5

      2. What command does it do for CPU elevation in linux 

         The command that is used is /proc/<pid>/stat