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 the
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 to
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 the
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 information about the number of locks held by
each application, the lock wait start time and the total number of
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 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.
DB2 Health Indicator -- db.deadlock_rate
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
如果同事暗中傷害你,應該怎麼辦?
這個饅頭有餡
2019-02-24 13:59:08
職場中,抱怨越多的員工,越被領導瞧不起!
這個饅頭有餡
2019-02-24 13:59:08
老程序員被裁,應屆生卻能月薪 1.3 萬?這你能忍?
前端高達
2019-02-24 13:48:04
遇到到處蹭吃卻從不請客吃飯的主怎麼辦?
樑軍年
2019-02-24 13:26:35
Linux基本操作命令
wbzjacky
2019-02-24 13:12:38
高標準機房綜合配線安裝
wbzjacky
2019-02-24 13:12:38
Ultimate Guide to Manage IT Systems for Hybrid Working
maximumnetworks01
2022-06-13 17:05:07
ubuntu常用服務搭建
right_33cb
2019-02-24 14:13:47
spacemacs org-mode begin_src 等模塊不能自動補全的問題
劉振寧的博客
2019-02-24 14:06:53
vim最最最基礎的命令
劉振寧的博客
2019-02-24 14:06:53
spacemacs C-c C-p 運行python 之後報錯的解決方法
劉振寧的博客
2019-02-24 14:06:53
mysql 1對多關係 用其他表字段對當前表進行排序
劉振寧的博客
2019-02-24 14:06:53
mysql 通過當前表條件搜索結果刪除 [HY000][1093]
劉振寧的博客
2019-02-24 14:06:53
爲合作公司提供接口的權限驗證問題 攔截器 cookie
劉振寧的博客
2019-02-24 14:06:53