CPU load


Job details

Name: CPU load
Platform: Oracle
Category: Performance
Description: Checks CPU load using Oracle performance view v$osstat.
Long description: Checks and collects CPU load statistics. The task also aggregates statistics for three different periods of the day: night hours (NW 00:00-08:00), working hours (WH 08:00-16:00) and evening hours (EH 16:00-00:00).
Version: 3.8
Default schedule: 0,5,10,15,20,25,30,35,40,45,50,55 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]/.[hasengine=‘YES’ & eleven_and_above=‘1′]

Parameters

Name Default value Description
Warning level in percent 90 The value of CPU load that will trigger warning.
Delete statistics older than (hours) 336 The value in hours of how old statistics we will keep in database. Older records is deleted as part of this check.
Alarm level in percent 99 The value of CPU load that will trigger alarm.
Turn off alert NO Change this to YES in order to not get alarms and warning on high CPU load.
Time threshold 30 A period of time (in minutes) which must be passed (combined with average values of CPU usage) before an alarm or a warning is returned by the procedure.

Job Summary

The dbWatch monitoring job “oracle_cpu_load_check,” referred to as CPU load”, is critical for database performance management, particularly on Oracle platforms. This function periodically assesses the CPU usage by collecting statistical data from Oracle’s performance view v$osstat.

select * from v$osstat where stat_name in ('NUM_CPUS', 'USER_TIME', 'NICE_TIME', 'SYS_TIME', 'IOWAIT_TIME', 'IDLE_TIME', 'BUSY_TIME', 'LOAD');

Implementation Details

The job continuously collects CPU load data, segregating it based on time periods:

These statistics help in analyzing CPU load with respect to different work shifts and operational hours, providing a comprehensive view of the system performance.

Alert Management

Dependencies and Maintenance

Configuration and Customization

This meticulous design of monitoring and alerting ensures that the database environment under dbWatch surveillance maintains optimal performance and reliability, safeguarding against performance degradation that could affect business operations.