DB2 Performance Template

Description

Monitors the Performance of the DB2 Database Instances.

Prerequisites

No prerequisite

Supported Metric

Monitor NameMetric NameMetric Display NameUnitDescription
DB2 Performance Monitordb2.active.sortsDB2 Active SortsNULLThe number of sorts in the database that currently have a sort heap allocated.
db2.app.sec.insertsDB2 SQL Section InsertsNULLNumber of inserts of SQL sections by an application from its shared SQL work space per second.
db2.app.sec.lookupsDB2 SQL Section Look-upsNULLNumber of look-ups of SQL sections by an application from its shared SQL work space per second.
db2.avg.cpu.timeDB2 Avg CPU TimemsAverage amount of CPU time,in microseconds,used by all external requests that completed successfully. It represents the total of both user and system CPU time.
db2.avg.direct.read.timeDB2 Avg Direct Read TimemsThe Avg Read time is direct_read_time / direct_reads. A high average time may indicate an I/O conflict.
db2.avg.direct.write.timeDB2 Avg Direct Write TimemsThe Avg Write time is direct_write_time / direct_writes. A high average time may indicate an I/O conflict.
db2.avg.lock.escalsDB2 Avg Lock EscalationsNULLThe average number of times that locks have been escalated from several row locks to a table lock per coordinator activities (successful and aborted).
db2.avg.lock.timeoutsDB2 Avg Lock TimeoutsNULLThe average number of times that a request to lock an object timed out per coordinator activities (successful and aborted).
db2.avg.lockwait.timeDB2 Avg LockWait TimemsThe Avg write time is LOCK_WAIT_TIME / LOCK_WAITS at Database level. High wait time can mean that the applications are degrading performance.
db2.catalog.cache.hit.ratioDB2 Catalog Cache Hit Ratio%Catalog cache hit ratio,which equals: 1-(cat_cache_inserts /cat_cache_lookups))*100. The hit ratio is a percentage indicating how well the catalog cache is helping to avoid actual accesses to the catalog on disk. A high ratio indicates it is successful in avoiding actual disk I/O accesses.
db2.catalog.cache.insertsDB2 Catalog Cache InsertsNULLNumber of times that a requested section was not available for use and had to be loaded into the package cache per second.
db2.catalog.cache.lookupsDB2 Catalog Cache LookupsNULLNumber of times that an application looked for a section or package in the package cache per second.
db2.catalog.cache.overflowsDB2 Catalog Cache OverflowsNULLNumber of times that the package cache overflowed the bounds of its allocated memory per second.
db2.commit.sql.stmtsDB2 Commit SQL StmtsNULLNumber of commit SQL statements.
db2.connected.appsDB2 Connected ApplicationsNULLNumber of applications that are currently connected to the database.
db2.database.statusDB2 Database StausNULLDatabase status. 0 - Active 1 - QUIESCE_PEND 2 - QUIESCED 3 - ROLLFWD 4 - ACTIVE_STANDBY 5 - STANDBY
db2.deadlocks.detectedDB2 DeadlocksNULLTotal number of deadlocks that have occurred.
db2.direct.read.requestsDB2 Direct Read ReqsNULLNumber of requests to perform a direct read of one of more sectors of data.
db2.direct.readsDB2 Direct ReadsNULLThe number of read operations that do not use the buffer pool.
db2.direct.write.requestsDB2 Direct Write ReqsNULLNumber of requests to perform a direct write of one or more sectors of data.
db2.direct.writesDB2 Direct WritesNULLNumber of write operations that do not use the buffer pool.
db2.dirty.page.steal.clnsDB2 Dirty Page Steal ClnsNULLThe number of times a page cleaner was invoked because a synchronous write was needed during the victim buffer replacement for the database.
db2.dynamic.sql.stmtsDB2 Dyanamic SQL StmtsNULLNumber of Dyanamic SQL statements.
db2.failed.sql.stmtsDB2 Failed SQL StmtsNULLNumber of failed SQL statements.
db2.io.log.readsDB2 Log Read RequestsNULLThe number of I/O requests issued by the logger for reading log data from the disk.
db2.io.log.writesDB2 Log Write RequestsNULLThe number of I/O requests issued by the logger for writing log data to the disk.
db2.lock.escalsDB2 Lock EscalationsNULLThe number of times that locks have been escalated from several row locks to a table lock.
db2.lock.timeoutsDB2 Lock TimeoutsNULLThe number of times that a request to lock an object timed out instead of being granted.
db2.log.page.readsDB2 LOG Page ReadsNULLNumber of log pages read from disk by the logger per second.
db2.log.page.writesDB2 LOG Page WritesNULLNumber of log pages write from disk by the logger per second.
db2.maximum.connectionsDB2 Maximum ConnectionsNULLThe highest number of simultaneous connections to the database since the database was activated.
db2.overall.agent.wait.time.percentDB2 Overall Agent Wait Time Percent%The percentage of time spent waiting within the DB2 database server that was spent by an application queued to wait for an agent under concentrator configurations.
db2.overall.avg.rows.read.per.returnedDB2 Overall Avg Rows Read Per ReturnedNULLThe average number of rows read from the table per rows returned to the application.
db2.overall.bufferpool.hit.ratioDB2 Overall Buffer Pool Hit Ratio%The percentage of time that the database manager did not need to load a page from disk to service a data request
db2.overall.io.wait.time.percentDB2 Overall IO Wait Time Percent%The percentage of the time spent waiting within the DB2 database server that was due to I/O operations
db2.overall.lock.wait.time.percentDB2 Overall IO Wait Time Percent%The percentage of time spent waiting within the DB2 database server that was spent waiting on locks.
db2.pkg.cache.hit.ratioDB2 Package Cache Hit Ratio%Package cache hit ratio,which equals: 1-(pkg_cache_inserts /pkg_cache_lookups))*100 The hit ratio is a percentage indicating how well the package cache is helping to avoid reloading packages and sections for static SQL from the system catalogs as well as helping to avoid recompiling dynamic SQL statements. A high ratio indicates it is successful in avoiding these activities.
db2.pkg.cache.insertsDB2 Package Cache InsertsNULLNumber of times that a requested section was not available for use and had to be loaded into the package cache per second.
db2.pkg.cache.lookupsDB2 Package Cache LookupsNULLNumber of times that an application looked for a section or package in the package cache per second.
db2.pkg.cache.overflowsDB2 Package Cache OverflowsNULLNumber of times that the package cache overflowed the bounds of its allocated memory per second.
db2.pool.victim.buffers.countDB2 Pool Victim BuffersNULLNumber of times an agent did not have a preselected victim buffer available.
db2.rollback.sql.stmtsDB2 Rollback SQL StmtsNULLNumber of Rollback SQL statements.
db2.rows.deletedDB2 Deleted RowsNULL
db2.rows.insertedDB2 Inserted RowsNULLNumber of Rows Inserted per second.
db2.rows.selectedDB2 Selected RowsNULLNumber of Rows Selected per second.
db2.rows.updatedDB2 Updated RowsNULLNumber of Rows Updated per second.
db2.running.appsDB2 Running ApplicationsNULLNumber of applications that are currently connected to the database,and for which the database manager is currently processing a request.
db2.secondary.connectionsDB2 Secondary ConnectionsNULLNumber of connections made by a sub agent to the database at the node.
db2.select.sql.stmtsDB2 Select SQL StmtsNULLNumber of Select SQL statements
db2.sort.overflowsDB2 Sort OverflowsNULLThe total number of sorts that ran out of sort heap and may have required disk space for temporary storage.
db2.total.app.commitsDB2 Total Application CommitsNULLTotal number of commit statements issued by the client application.
db2.total.concurrent.connectionsDB2 Total ConnectionsNULLNumber of connections to the database since the first connect,activate,or last reset (coordinator agents).
db2.total.log.availableDB2 Available LOG SizeKBAmount of active log space in the database that is not being used by uncommitted transactions in Kilobytes.
db2.total.log.usedDB2 LOG Space UsedKBAmount of active log space currently used in the database in Kilobytes.

DB2 BufferPool and TableSpace Statistics

Description

Monitors the Individual Buffer-Pool and Table-Space Statistics.

Prerequisites

No prerequisite

Supported Metric

Monitor NameMetric NameMetric Display NameUnitDescription
DB2 BufferPool and TableSpace Statisticsdb2.bufferpool.avg.physical.read.timeDB2 Buffer Pool Avg Physical Read TimemsAverage time,in milliseconds,spent reading pages from the table space containers (physical) for all types of table spaces.
db2.bufferpool.avg.write.timeDB2 Buffer Pool Avg Write TimemsAverage time,in milliseconds,spent physically writing pages from the buffer pool to disk.
db2.bufferpool.data.hit.ratioDB2 Buffer Pool Data Hit Ratio%The percentage of time that the database manager did not need to load a page from disk to service a data page request
db2.bufferpool.index.hit.ratioDB2 Buffer Pool Index Hit Ratio%The percentage of time that the database manager did not need to load a page from disk to service an index data page request
db2.bufferpool.prefetch.ratioDB2 Buffer Pool Prefetch Ratio%Percentage of pages read asynchronously (with prefetching). If many applications are reading data synchronously without prefetching,your system might not be tuned optimally.
db2.bufferpool.total.physical.readsDB2 Buffer Pool Total Physical ReadsNULLIndicates the number of data pages,index pages,and data pages for XML storage objects (XDAs) read from the table space containers (physical) for temporary as well as regular and large table spaces.
db2.bufferpool.total.writesDB2 Buffer Pool Total WritesNULLThe number of times a data,index,or data page for an XML storage object (XDA) was physically written to disk.
db2.tablespace.usable.spaceDB2 TableSpace Usable spaceKBThe total usable size of the table space,in kilobytes.
db2.tablespace.utilizationDB2 TableSpace Utilization%The utilization of the table space as a percentage.
db2.total.tablespace.sizeDB2 Total TableSpace SizeKBThe total size of the table space in kilobytes.
db2.tablespace.stateDB2 TableSpace StateNULLThe current state of a table space. NORMAL - 0 BACKUP_IN_PROGRESS - 1 BACKUP_PENDING - 2 DELETE_PENDING - 3 DISABLE_PENDING - 4 DROP_PENDING - 5 LOAD_IN_PROGRESS - 6 LOAD_PENDING - 7 MOVE_IN_PROGRESS - 8 OFFLINE - 9 PSTAT_CREATION - 10 PSTAT_DELETION - 11 QUIESCED_EXCLUSIVE - 12 QUIESCED_SHARE - 13 QUIESCED_UPDATE - 14 REBAL_IN_PROGRESS - 15 REDIST_IN_PROGRESS - 16 REORG_IN_PROGRESS - 17 RESTORE_IN_PROGRESS - 18 RESTORE_PENDING - 19 ROLLFORWARD_IN_PROGRESS - 20 ROLLFORWARD_PENDING - 21 STORDEF_ALLOWED - 22 STORDEF_CHANGED - 23 STORDEF_FINAL_VERSION - 24 STORDEF_PENDING - 25 SUSPEND_WRITE - 26