DB2 Health Indicator -- db. deadlock_rate

Source: Internet
Author: User

Db2 get recommendations for health indicator db. deadlock_rate
Db2 get description for health indicator db. deadlock_rate


$ Db2 get description for health indicator db. deadlock_rate

Description for db. deadlock_rate

Deadlock rate tracks the rate at which deadlocks are occurring in
The database and the degree to which applications are experiencing
Contention problems. Deadlocks may be caused by the following
Situations:
O Lock escalations are occurring for the database
O An application may be locking tables explicitly when system-
Generated row locks may be sufficient
O An application may be using an inappropriate isolation level
When binding
O Catalog tables are locked for repeatable read
O Applications are getting the same locks in different orders,
Resulting in deadlock.

The indicator is calculated using the formula: (db. deadlocks <t>-
Db. deadlocks <T-1>) where 't' is the current snapshot and't-1' is
The last snapshot "5" "minutes" ago. A high rate of deadlocks results in
A greater degree of contention which may generate an alert.

 

$ Db2 get recommendations for health indicator db. deadlock_rate
Recommendations:

Recommendation: Investigate current deadlocks.

One of more applications may be holding a large number of locks.
Consider tuning these applications to reduce the number of locks
Required.

Take one of the following actions:

Launch DB2 tool: Event Monitor

The event monitor can be used to capture and analyze database events
Such as deadlocks.

To open the Create Event Monitor window:
1. From the Control Center, expand the object tree until you find
The Event Monitors folder.
2. Right-click the Event Monitors folder and click Create in
Pop-up menu. The Create Event Monitor window opens.

Enter an event monitor name in the Name field. Click OK to create
The deadlock event monitor.


Recommendation: Investigate application concurrency.

The applications executing against the database may not be capable
Of running concurrently, or may not be designed properly to handle
Concurrent operation with other applications.

Take one of the following actions:

Launch DB2 tool: Activity Monitor

The Activity Monitor provides a set of predefined reports to assist
A DBA in monitoring application performance and concurrency, resource
Consumption, and SQL statement usage of a database or database
Partition. The Activity Monitor also provides recommendations to help
A DBA to diagnose the cause of database performance problems, and
Tune queries for optimal utilization of database resources.

To open the Activity Monitor:
1. From the Control Center, expand the object tree until you find
The database that you want.
2. Right-click the database, and click Activity Monitor in
Pop-up menu. The Activity Monitor opens.

To start the Activity Monitor from the command line issue the db2am
Command.

Use the Set Up Activity Monitor wizard to create a monitoring task
To generate reports on lock usage at the application level. The lock
Usage data includes des information about the number of locks held
Each application, the lock wait start time and the total number
Deadlocks per application. The application lock chains also displays
The lock wait dependencies for a given application.


Examine the applications to see if they are capable of running
Concurrently. If it is determined that the applications in which
The deadlocks are occurring are capable of running concurrently,
Consider modifying one or more of the applications to reduce
Contention problems. Contention problems may be caused by
Following situations:

O Lock escalations are occurring for the database.
O An application may be locking tables explicitly when
System-generated row locks may be sufficient.
O An application may be using an inappropriate isolation level
When binding.
O Catalog tables are locked for repeatable read.
O Applications are getting the same locks in different orders,
Resulting in deadlock.

Author: It blog"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.