Sie sind auf Seite 1von 2

2. What processes are using most of the CPU?

Examine the data you collected to find out what kind of process is using most of the CPU. The
analysis method depends on which type of data you collected - see below:

10gR2 Statspack
Look for this section:
Instance CPU
~~~~~~~~~~~~
% of total CPU for Instance:
% of busy CPU for Instance:
%DB time waiting for CPU - Resource Mgr:

74.27
74.55

The "% of busy CPU for Instance" will tell you approximately how much of the host CPU is used by
this instance. In this case, it was 74.55%; this instance is the main cause for the host's CPU
saturation.

10gR1 Statspack
1. Obtain the total CPU utilized for the host (in cs): Find the OS Statistics section,
BUSY_TICKS
2. Obtain the total CPU utilized by the instance's foreground sessions (in cs): Find the
Instance Activity Stats section, read the total value of the CPU used by this session
statistic
3. Calculate % of busy CPU for instance = 100% * "CPU used by this session" /
BUSY_TICKS
For example:
...
OS Statistics DB/Inst: DB10GR2/DB10gR2 Snaps: 20-21
-> ordered by statistic type (CPU use, Virtual Memory, Hardware Config),
Name
Statistic
Total
------------------------- ---------------------BUSY_TIME
14,257
...
Instance Activity Stats

DB/Inst: DB10GR2/DB10gR2

Snaps: 20-21

Statistic
Total
per Second
per Trans
--------------------------------- ------------------ -------------- ----------CPU used by this session
10,724
75.5
446.8
...
In the example above,
% CPU utilized by this instance = 100 * 10724 / 14257 = 75.2%

If most of the CPU is used by this instance, then you have verified that Oracle is responsible for
the CPU consumption.

Das könnte Ihnen auch gefallen