strength. strategy. stability.. progress performance monitoring and tuning dan foreman progress...

28
Strength. Strategy. Stability.

Upload: kelly-hardy

Post on 30-Dec-2015

231 views

Category:

Documents


7 download

TRANSCRIPT

Page 1: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Strength. Strategy. Stability.

Page 2: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Progress Performance Progress Performance Monitoring and TuningMonitoring and Tuning

Dan ForemanDan Foreman

Progress ExpertProgress Expert

BravePointBravePoint

BravePoint 2011 2

Page 3: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

BravePoint 2011

3

Introduction – Dan ForemanIntroduction – Dan ForemanProgress User since 1984Progress User since 1984

Author of:Author of:Progress Performance Tuning Guide

Progress DB Administration Guide

Progress Virtual System Tables

ProMonitor

Pro Dump&Load

And other miscellaneous stuff

Page 4: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Introduction - AudienceIntroduction - Audience

Progress Version?Progress Version?V8

V9

V10?

DB Operating System: *ix or WindowsDB Operating System: *ix or Windows

Largest Single DatabaseLargest Single DatabaseOne of BravePoint’s customer’s has a Six Terabyte database

BravePoint 2011

4

Page 5: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Monitoring CategoriesMonitoring Categories

Progress DatabasesProgress Databases

Progress ClientsProgress ClientsCharacter

Graphical

AppServers & WebSpeed

SQL ClientsSQL Clients

Operating SystemOperating System

Application – beyond the scope of Application – beyond the scope of this presentationthis presentation

BravePoint 2011

5

Page 6: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Monitoring - DatabaseMonitoring - Database

GrowthGrowth

I/OI/O

Record LockingRecord Locking

After ImagingAfter Imaging

Before ImagingBefore Imaging

Resource ContentionResource ContentionLatches

Semaphores

BravePoint 2011

6

Page 7: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Monitoring - DatabaseMonitoring - Database

Database HealthDatabase HealthLog File

Blocks & Chains

Pointers (Index Data)

Database StructureDatabase Structure

Database “Demographics”Database “Demographics”

ReplicationReplication

BackupsBackups

BravePoint 2011

7

Page 8: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Monitoring ToolsMonitoring Tools

promonpromon

Virtual System TablesVirtual System Tables

Other Progress utilitiesOther Progress utilities

3d Party3d PartyProMonitor (BravePoint)

OpenEdge Management (Progress)

OtherOther

BravePoint 2011

8

Page 9: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Monitoring Tools - promonMonitoring Tools - promon

Old faithfulOld faithful

Character interfaceCharacter interface

Doesn’t record any historyDoesn’t record any history

No AlertingNo Alerting

Somewhat poorly documentedSomewhat poorly documentedSee Dan Foreman’s Performance Tuning Guide

Takes a ‘snapshop’ of DB Shared Takes a ‘snapshop’ of DB Shared MemoryMemory

BravePoint 2011

9

Page 10: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Monitoring Tools – VSTsMonitoring Tools – VSTs

Access Shared Memory using System Access Shared Memory using System TablesTables

Doesn’t have everything Doesn’t have everything promonpromon does does

Poorly documentedPoorly documentedDan Foreman’s VST Guide

Must write the code yourselfMust write the code yourself

Some tables are hazardous to good Some tables are hazardous to good performance: _lockperformance: _lock

BravePoint 2011

10

Page 11: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring - GrowthDB Monitoring - Growth

DB ExtendsDB ExtendsGoal: zero – i.e. all growth occurs in fixed size extents

Not as important as it used to be IF there is a very high quality disk storage system

BravePoint 2011

11

Page 12: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring – I/ODB Monitoring – I/O

DB Requests - # of block accessesDB Requests - # of block accesses

DB Reads - # of reads from DB on DB Reads - # of reads from DB on disk required to satisfy DB Requestsdisk required to satisfy DB Requests

DB LevelDB Level

Individual Client LevelIndividual Client Level

Continued…Continued…

BravePoint 2011

12

Page 13: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring – I/ODB Monitoring – I/O

Hit Ratio – Ratio of DB Requests:DB Hit Ratio – Ratio of DB Requests:DB ReadsReads

Goal: find as many blocks in Buffer Cache (-B) as possible; i.e. High Hit Ratio

Fix: Dump&Load

Fix: Increase Buffer Cache

Fix: Avoid ‘stupid’ queries (no good index, ODBC reporting, etc.)

BravePoint 2011

13

Page 14: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring – Before ImageDB Monitoring – Before Image

Buffers FlushedBuffers FlushedGoal: Zero (or near zero)

Fix: BI Cluster Size

Fix: Async Page Writers (APWs)

Empty Buffer WaitsEmpty Buffer WaitsGoal: Zero

Fix: BI Buffers and/or BI Writer (BIW)

BravePoint 2011

14

Page 15: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring – Before ImageDB Monitoring – Before Image

Long Duration TransactionsLong Duration TransactionsGoal: 60 minutes maximum

Fix: good code

BI SizeBI SizeGoal: “reasonable” – typically 1-4gb max

Fix: good code

BravePoint 2011

15

Page 16: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring – After ImageDB Monitoring – After Image

Empty Buffer WaitsEmpty Buffer WaitsNot running After Imaging – don’t be a fool

Goal: Zero

Fix: AI Buffers and/or AI Writer (AIW)

BravePoint 2011

16

Page 17: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring – Record LockingDB Monitoring – Record Locking

Lock Table High Water Mark (HWM)Lock Table High Water Mark (HWM)Goal: don’t hit the HWM

Fix: larger Lock Table (-L) – be careful!!!

Fix: fix the code

Record WaitsRecord WaitsGoal: Zero

Fix: fix the code

BravePoint 2011

17

Page 18: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring - ContentionDB Monitoring - Contention

Latch Contention – Latch TimeoutsLatch Contention – Latch TimeoutsGoal: Low (zero is impossible)

Fix: adjust –spin parameter

Semaphore Contention – Semaphore Semaphore Contention – Semaphore WaitsWaits

Goal: Low (zero is impossible)

Fix: adjust –semsets parameter

BravePoint 2011

18

Page 19: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring - HealthDB Monitoring - Health

Log (.lg) FileLog (.lg) FileMonitoring for Warnings & Errors

Blocks & ChainsBlocks & Chainsproutil <db> -C dbanalys

Avoid running during production hours

Run against a copy of production DB

Several other health checking options exist

Continued…Continued…

BravePoint 2011

19

Page 20: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring - HealthDB Monitoring - Health

Pointers (Indexes Pointers (Indexes Data) Data)proutil idxcheck

proutil idxfix

BravePoint 2011

20

Page 21: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring - StructureDB Monitoring - Structure

Tables or Indexes in the Schema AreaTables or Indexes in the Schema Area

Indexes in Table AreasIndexes in Table Areas

Tables in Index AreasTables in Index Areas

Type 2 Areas!!!Type 2 Areas!!!Sorry but some QAD staff are just plain wrong about T2 Areas

BravePoint 2011

21

Page 22: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring - DemographicsDB Monitoring - DemographicsScatter FactorScatter Factor

proutil dbanalys/tabanalys

4+ for large, heavily used tables is EVIL

Bug in early V10 Scatter Factors

Continued…Continued…

BravePoint 2011

22

Page 23: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring - DemographicsDB Monitoring - Demographics

FragmentationFragmentationproutil dbanalys/tabanalys

Fragmented Records require a minimum of 2X more I/O to read and write

Continued…Continued…

BravePoint 2011

23

Page 24: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

DB Monitoring - DemographicsDB Monitoring - Demographics

Tables getting large enough to Tables getting large enough to warrant migration to a dedicated warrant migration to a dedicated Storage AreaStorage Area

proutil dbanalys/tabanalys

Index Utilization PercentIndex Utilization Percentproutil dbanalys/ixanalys

BravePoint 2011

24

Page 25: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Progress Client MonitoringProgress Client Monitoring

I/OI/O_tablestat & _indexstat VSTs

_usertablestat & _userindexstat VSTs

Code EfficiencyCode EfficiencyProgress Application Profiler – undocmented

What Program is being executedWhat Program is being executed_connect VST (since V10.1C)

BravePoint 2011

25

Page 26: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

SQL Client MonitoringSQL Client Monitoring

I/O – same as Progress ClientsI/O – same as Progress Clients

Query PlanQuery Plan

UPDATE STATISTICS – not really UPDATE STATISTICS – not really monitoring but tuningmonitoring but tuning

BravePoint 2011

26

Page 27: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

Monitoring - OtherMonitoring - Other

Memory consumptionMemory consumptionProgress Clients

Java

AppServers & WebSpeed

TomcatTomcatDoes it respond?

BravePoint 2011

27

Page 28: Strength. Strategy. Stability.. Progress Performance Monitoring and Tuning Dan Foreman Progress Expert BravePoint BravePoint 20112

ConclusionConclusion

Questions? Questions?

If you need further assistance:If you need further assistance:Dan Foreman Publications

ProMonitor

www.BravePoint.com

[email protected]@prodb.com

Thank You For Coming! Don’t forget Thank You For Coming! Don’t forget your Conference Evaluations!your Conference Evaluations!

BravePoint 2011

28