|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Advanced Oracle Utilities: The Definitive Reference by Rampant TechPress is written by top Oracle database experts (Bert Scalzo, Donald Burleson, and Steve Callan). The following is an excerpt from the book.
Server Monitoring Utilities There are many utilities available for monitoring the
Oracle server, both supplied by Oracle and supplied by the operating system.
The Oracle DBA should make herself very familiar with each of these
utilities and understand how to use various utilities for managing and
optimizing the Oracle database. Using vmstat Before Oracle incorporated server-side statistics into
STATSPACK, In every case, the goal is to ensure that the database
server has enough disk, CPU and Server load typically changes radically over time.
It is not at all unusual for an Oracle server to be CPU-boundin the morning, network-bound in the afternoon, and I/O-bound
overnight. The job of the DBA is to identify server stress over time
and learn to interpret any trends in hardware consumption.
For example, Oracle10g Enterprise Managertracks server run queue waits over time and combines the CPU and
paging display into a single OEM screen so that DBAs can tell when the system
is experiencing server-side waits on hardware resources. Figure 4.1 shows the CPU run queue trends over time.
Figure 4.1:
Server CPU run queue and
This time-based display is important because it
illustrates how Oracle performance issues can be transient with short spikes
of excessive hardware consumption.
Due to the super-fast nature of CPU dispatching, a database might be
CPU constrained for a few minutes at a time several times per day.
The time series OEM display gives a quick visual clue about those
times when the system is experiencing a CPU or
Server Traditionally, the Oracle DBA measured Figure 4.2:
Long-term Measurements of Oracle Server RAM Page-in Operations
When the real To be effective as an Oracle metric,
the page-in operations (from vmstat, glance) must be correlated with the OS
scan rate. When an Oracle server
begins to run low on In most UNIX and Linux implementations, the page-stealing
daemonoperates in two modes.
When the real Because of this, it is not always clear if the page-in
operations are normal housekeeping or a serious memory shortage unless the
activity of the page-stealing daemonis
correlated with the page-in output.
Paging occurs in kernel mode. Generally speaking, if the system
exhibits more then 10% of kernel mode CPU usage, for a prolonged period of
time, there is a problem with paging. To aid in measuring real page-ins,
the UNIX and Linux
vmstatutility yields the scan rate
(sr)
column which designates the memory page scan rate. If the scan rate rises
steadily, the page-stealing daemon’s first
threshold will be identified, indicating that that particular program’s
entire The following is an example from a
vmstatoutput.
The spike in the scan rate immediately precedes an increase in page-in
operations. oracle > vmstat 2
procs
memory
page
r
b w
avm
free re
at pi
po fr
de sr
3
0 0
144020
12778 17
9 0
14 29
0 3
3
0 0
144020
12737 15
0 1
34 4
0 8
3
0 0
144020
12360 9
0 1
46 2
0 13
1
0 0
142084
12360 5
0 3
17 0
0 21
1
0 0
142084
12360 3
0 18
0 0
0 8
1
0 0
140900
12360 1
0 34
0 0
0 0
1
0 0
140900
12360 0
0 39
0 0
0 0
1
0 0
140900
12204 0
0 3
0 0
0 0
1
0 0
137654
12204 0
0 0
0 0
0 0
Fortunately, the Automatic Workload Repository (AWR can be used to track these important external server metrics).
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © 1996 - 2011 by
Burleson Enterprises. All rights reserved.
Oracle® is the registered trademark
of Oracle Corporation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||