DB2 Performance Health Check in just few...
Transcript of DB2 Performance Health Check in just few...
DB2 Performance Health Check ...
in just few minutesDUGI 8-9 April 2014
Introduction
DB2 is the preferred repository for mission critical data at all z/OS sites
Performance of z/OS and non z/OS based applications accessing DB2 data is critical for every company business
Managing even simple DB2 environments with continuously shrinking staff is more and more a challenge
DB2 system programmers and DBAs have normally not enough time to dedicate to performance analysis and tuning of DB2 subsystems and applications
2
EPV for DB2
EPV for DB2 is an “out of the box” Performance and Capacity Management solution for z/OS environments of any size, type and complexity
EPV for DB2 uses standard input data normally available in any z/OS environments (mostly SMF records)
Through automatic discovery techniques and built-in rules, based on more than 30 years know-how, EPV transforms the bits and bytes into useful information, in a process completely transparent to the users
3
Goals
4
The main goal of EPV for DB2 is to provide a
comprehensive view of DB2 environments of any level of complexity and to allow a quick and effective top down analysis of DB2
subsystems and workloads.
This goal is accomplished through a completely automated
process, without any need for human intervention.
Goals
5
This capability solves what has become a critical issue at most sites: the number of DB2 system analysts and DBA which is normally barely enough to manage an increasing
number of DB2 subsystems. In this situation DB2 performance analysis and tuning is an almost impossible
task to perform.
Thanks to the product design, it is possible to perform a complete check of even the most complex
environments in just a few minutes, without the need for coding and running SQL or
programs.
AdvantagesMost important advantages of EPV for DB2
All the information is ready automatically every day, with no manual intervention required;
Information can be used directly, and additionally you can also export any view to Excel with a single click for further analysis;
You can easily compare one day to another or one DB2 subsystem to another;
Exceptions, critical events and trespassing of thresholds, are highlighted and reported
Daily, weekly and monthly trends are produced
EPV for DB2 is constantly enhanced to reflect DB2’s evolution, removing the maintenance costs of in-house solutions
6
Advantages
A final important advantage that our EPV for DB2 customers have found is that, most of the time, all the other performance analysts (CICS, IMS, z/OS, WebSphere, Capacity Planning) don’t have to ask DB2 experts to dedicate time to produce the reports and information they need. They can go straight to with EPV for DB2.
This is really a double advantage
A lot of DB2 information is freed up and always available to
people who need it
Precious DB2 experts’ time is saved
7
Advantages
Architecture
EPV is
completely
automatic
and based
on auto
discovery
techniques
EPV runs
on any
platform
EPV can
run stand
alone
(Plus) or
take input
from
SAS/MXG
or
SAS/ITRM
EPV
supports
MySQL, MS
SQL Server
and SAS DB
EPV for
DB2 and
EPV for
DB2 Plus
produce
exactly the
same
results
All the
reports are
in HTML
pages
8
EPV for DB2 Plus Architecture
9
Catalog Parms SMF
EPV for DB2
EPV zPARSER
Parser SQLDB
EPV SQLDB
10
Unique characteristics
Reports design
EPV reports are in static HTML pages
EPV reports are fixed in content;
they can’t be changed by any
event happening to the DB
EPV reports can be easily archived and
then reused at a later date providing
full navigation capabilities
No clients are needed, only a
standard browser
EPV reports are enhanced with
proprietary functions greatly
improving product usability
Every EPV report can be exported to MS-Excel with just
a click of the mouse
Usability functions
Previous/Next daySplit & Compare
1. Column Manager
2. Scroll
3. Export to Excel
4. Favourites
5. Help System
6. Refresh
Top of page Calendar
11
Help system exampleGLOBAL DYN CACHE ACTIVITY
This view shows the Global Dynamic Statement Cache activity hourly profile inside a DB2 subsystem
The following metrics are presented:
FIELD DESCRIPTION SOURCE
SHORT PREPARETotal number of short PREPARE. QISDSG - QISEDSI
FULL PREPARE Total number of full PREPARE (see Note 1). QISEDSI
TOTAL PREPARE Total number of PREPARE. QISEDSG
CSWL MATCHEDTotal number of hits when using the CONCENTRATE STATEMENTS WITH LITERALS attributes in the prepare statement.
QXSTCWLM
CSWL UNMATCHEDTotal number of misses when using the CONCENTRATE STATEMENTS WITH LITERALS attributes in the prepare statement.
QXSTCWLP - QXSTCWLM
CSWL REPLACED
Total number of times at least one literal has been replaced in a dynamic statement because CONCENTRATE STATEMENTS WITH LITERALS was used.
QXSTCWLR
CSWL DUPLICATED
Total number of times duplicate STMT instance has been created when using the CONCENTRATE STATEMENTS WITH LITERALS attributes. The duplicate STMT instance was needed because a cache match failed because the literal reusability criteria was not met.
QXSTCWLD
12
Unique characteristics
Automatic alerting
EPV automatically provides a log of the
changes made to DB2 parameter
EPV provides a set of user definable
thresholds to create exception alerts for
performance problems and excessive resource
usage workloads
EPV uses statistical analysis and self
adaptive thresholds to automatically
intercept abnormal behavior and produce
exception alerts
EPV exception alerts can be selectively and
automatically distributed to
technical groups and managers
13
MESSAGE OBJECT FREQ OP THRESHOLD ALERT
% DBD POOL MEMORY FULL SYSTEM=SYSA,DB2ID=DB2X 14 GT 90,00% DBDFULL
BUFFER POOL HIT RATIO SYSTEM=SYSA,DB2ID=DB2X,BUFFER POOL=BP0 10 LT 80 BPHIRA
BUFFER POOL HIT RATIO SYSTEM=SYSA,DB2ID=DB2X,BUFFER POOL=BP1 9 LT 80 BPHIRA
BUFFER POOL HIT RATIO SYSTEM=SYSA,DB2ID=DB2X,BUFFER POOL=BP32K 9 LT 80 BPHIRA
BUFFER POOL HIT RATIO SYSTEM=SYSA,DB2ID=DB2X,BUFFER POOL=BP8K 9 LT 80 BPHIRA
BUFFER POOL RESIDENCY TIME SYSTEM=SYSA,DB2ID=DB2X,BUFFER POOL=BP0 8 LT 5,0min BPRESTM
BUFFER POOL RESIDENCY TIME SYSTEM=SYSA,DB2ID=DB2X,BUFFER POOL=BP8K 8 LT 5,0min BPRESTM
EDM POOL CT HIT RATIO SYSTEM=SYSA,DB2ID=DB2X 1 LT 70 CTHIRA
DBD POOL FAILURES SYSTEM=SYSA,DB2ID=DB2X 1 GT 0 DBDFAIL
EDM POOL PT HIT RATIO SYSTEM=SYSA,DB2ID=DB2X 1 LT 70 PTHIRA
NUMBER OF TIMEOUTS SYSTEM=SYSA,DB2ID=DB2X 1 GT 0 TIMEOUT
EXCEPTIONS - TUE, 23 OCT 2012
Exceptions
14
DB2ID SYSTEM EVENTS MAX 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
DB2X SYSA LOG_BUFFER_WAITS 404 404 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
DB2X SYSA DBD_POOL_FAIL 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0
DB2X BY HOUR - TUE, 23 OCT 2012
Critical Events
15
DBD POOL DYN POOL EDM POOL EDM POOL LOG BUFFER LOG BUFFER SKEL POOL WAITS DBAT WAITS NODBAT
FAIL FAIL ABOVE FAIL FAIL PAGED IN WAITS FAIL THREAD THREAD
23/10/2012 TUE 6 0 0 0 0 405 0 0 0
22/10/2012 MON 3 0 0 0 0 3 0 0 0
19/10/2012 FRI 5 0 0 0 0 43 0 0 0
18/10/2012 THU 8 0 0 0 0 1 0 0 0
17/10/2012 WED 4 0 0 0 0 1 0 0 0
16/10/2012 TUE 4 0 0 0 0 460 0 0 0
15/10/2012 MON 3 0 0 0 0 0 0 0 0
12/10/2012 FRI 4 0 0 0 0 0 0 0 0
11/10/2012 THU 4 0 0 0 0 0 0 0 0
10/10/2012 WED 9 0 0 0 0 1 0 0 0
09/10/2012 TUE 3 0 0 0 0 1 0 0 0
08/10/2012 MON 0 0 0 0 0 0 0 0 0
05/10/2012 FRI 0 0 0 0 0 1 0 0 0
04/10/2012 THU 0 0 0 0 0 0 0 0 0
CRITICAL EVENTS - DB2X - SYSA
DATE DAY
Configuration Changes
16
DATE INTERVAL SYSTEM DB2ID AREA OBJECT PARAMETER STATUS NEW VALUE OLD VALUE
09/10/2012 8,55 SYSA DB2X DB2 CHANGES DB2=DB2X DBD POOL PAGES 2925 88615
09/10/2012 8,55 SYSA DB2X DB2 CHANGES DB2=DB2X DB2 RELEASE 10,1 9,1
09/10/2012 8,55 SYSA DB2X DB2 CHANGES DB2=DB2X DYN STMT POOL PAGES 53471 171057
09/10/2012 8,55 SYSA DB2X DB2 CHANGES DB2=DB2X EDM POOL ABOVE PAGES 0 524287
09/10/2012 8,55 SYSA DB2X DB2 CHANGES DB2=DB2X EDM POOL PAGES 0 3750
09/10/2012 8,55 SYSA DB2X DB2 CHANGES DB2=DB2X SKEL POOL PAGES 2257 15034
29/09/2012 10,48 SYSA DB2Y DB2 CHANGES DB2=DB2Y DBD POOL PAGES 2925 5000
29/09/2012 10,48 SYSA DB2Y DB2 CHANGES DB2=DB2Y DB2 RELEASE 10,1 9,1
29/09/2012 10,48 SYSA DB2Y DB2 CHANGES DB2=DB2Y DYN STMT POOL PAGES 28765 5000
29/09/2012 10,48 SYSA DB2Y DB2 CHANGES DB2=DB2Y EDM POOL ABOVE PAGES 0 524287
29/09/2012 10,48 SYSA DB2Y DB2 CHANGES DB2=DB2Y EDM POOL PAGES 0 1250
29/09/2012 10,48 SYSA DB2Y DB2 CHANGES DB2=DB2Y SKEL POOL PAGES 2257 15034
29/09/2012 9,35 SYSA DB2Z DB2 CHANGES DB2=DB2Z DB2 RELEASE 10,1 9,1
29/09/2012 9,35 SYSA DB2Z DB2 CHANGES DB2=DB2Z EDM POOL ABOVE PAGES 0 524287
29/09/2012 9,35 SYSA DB2Z DB2 CHANGES DB2=DB2Z EDM POOL PAGES 0 3750
DB2 CHANGES - TUE, 23 OCT 2012
Lockouts
17
Deadlock details
18
Timeout details
19
Timeout details
20
Buffer Pool Activity
21
Workloads
22
TOP by Connection type
23
TOP by Connection type totals
24
Over limit Packages
25
Accounting reports
EPV provides the possibility to produce “on demand” Short and Long Accounting reports, in HTML pages, at summary or detail level for plans and packages running during a specific period of time
This makes it possible to investigate in depth and easily the behaviour of these objects running in a DB2 subsystem in order to analyze performance problems and anomalies
26
Unique characteristics
Licensing
• The EPV license is based on a onetime fee
• Licensing is based on the number of collected systems, and is not based on the power of the machine or the power used
• The first year’s maintenance is included, but in subsequent years customers have only to pay the maintenance fee
• The maintenance fee includes all releases and new versions of the product
27
Unique characteristics
28
• There is no additional license fee if the customer wishes to switch from EPV for DB2 to EPV for DB2 Plus and viceversa
• There is no additional license fee if the customer changes the platform where EPV runs
• There is no additional license fee if the customer changes the type of database
• There is no additional license fee if the customer changes the publishing platform
Protection of
investment
Contacts
S uppor t :
I n fo :
Par tne r s :
Mar ket i ng and S a le s :
29