dbTalk Databases Forums  

Locktimeout and Deadlock Errors in db2diag.log

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Locktimeout and Deadlock Errors in db2diag.log in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark A
 
Posts: n/a

Default Locktimeout and Deadlock Errors in db2diag.log - 01-06-2012 , 10:36 PM






I noticed that on some of my DB2 Linux 9.7.4 databases, locktimeout and deadlock errors are written to
the db2diag.log as warning messages, but on others they are not. The only thing I can correlate so far
is that some databases were migrated to 9.7 from 9.5 (and show the errors) and some were created
new in 9.7 (and do not show the errors in db2daig.log). Does anyone know anything about this.

Reply With Quote
  #2  
Old   
juraj.hrapko@gmail.com
 
Posts: n/a

Default Re: Locktimeout and Deadlock Errors in db2diag.log - 01-07-2012 , 06:47 AM






I would start checking the diaglevel:
http://publib.boulder.ibm.com/infoce.../r0000298.html

One difference in versions I am aware is that v9.5 by default: "all
databases have an event monitor defined named DB2DETAILDEADLOCK, which
records detailed information about deadlock events."
http://publib.boulder.ibm.com/infoce.../c0005721.html
New 9.7 databases does not have this monitor.


On Jan 6, 11:36*pm, Mark A <m... (AT) nowhere (DOT) com> wrote:
Quote:
I noticed that on some of my DB2 Linux 9.7.4 databases, locktimeout and deadlock errors are written to
the db2diag.log as warning messages, but on others they are not. The onlything I can correlate so far
is that some databases were migrated to 9.7 from 9.5 (and show the errors) and some were created
new in 9.7 (and do not show the errors in db2daig.log). Does anyone know anything about this.

Reply With Quote
  #3  
Old   
Mark A
 
Posts: n/a

Default Re: Locktimeout and Deadlock Errors in db2diag.log - 01-07-2012 , 10:55 AM



On Sat, 07 Jan 2012 04:47:55 -0800, juraj.hrapko (AT) gmail (DOT) com wrote:
Quote:
I would start checking the diaglevel:
http://publib.boulder.ibm.com/infoce...onfig.doc/doc/
r0000298.html

One difference in versions I am aware is that v9.5 by default: "all
databases have an event monitor defined named DB2DETAILDEADLOCK, which
records detailed information about deadlock events."
http://publib.boulder.ibm.com/infoce...n.mon.doc/doc/
c0005721.html
New 9.7 databases does not have this monitor.
Diaglevel is the same (3 - All Errors and Warnings). Deadlock and Locktimeouts are Warnings on the
database that shows them (created in 9.5 and migrated to 9.7).

I am aware of the new lock event monitor recommendations for 9.7 (the type of default event monitor
used for DETAILDEADLOCK is deprcated and a new Lock Monitor type exists) and I have implemented
the new lock monitoring on some databases.

But I don't see warning errors in the db2diag.log for these events like on some of my other databases
created in 9.5 and migrated to 9.7. However, I just found out that even on some databases on other
systems that were migrated from 9.5 to 9.7 there is no logging of these warnings in the db2diag.log
either. So my orginal theory seems to be wrong, but I have no idea why this is happening on some and
not others. Not sure if there is change from 9.7.4 to 9.7.5.

Reply With Quote
  #4  
Old   
mike
 
Posts: n/a

Default Re: Locktimeout and Deadlock Errors in db2diag.log - 01-16-2012 , 11:28 AM



On Jan 7, 4:55*pm, Mark A <m... (AT) nowhere (DOT) com> wrote:
Quote:
On Sat, 07 Jan 2012 04:47:55 -0800, juraj.hra... (AT) gmail (DOT) com wrote:
I would start checking the diaglevel:
http://publib.boulder.ibm.com/infoce...pic/com.ibm.db...
r0000298.html

One difference in versions I am aware is that v9.5 by default: "all
databases have an event monitor defined named DB2DETAILDEADLOCK, which
records detailed information about deadlock events."
http://publib.boulder.ibm.com/infoce...pic/com.ibm.db...
c0005721.html
New 9.7 databases does not have this monitor.

Diaglevel is the same (3 - All Errors and Warnings). Deadlock and Locktimeouts are Warnings on the
database that shows them (created in 9.5 and migrated to 9.7).

I am aware of the new lock event monitor recommendations for 9.7 (the type of default event monitor
used for DETAILDEADLOCK is deprcated and a new Lock Monitor type exists) and I have implemented
the new lock monitoring on some databases.

But I don't see warning errors in the db2diag.log for these events like on some of my other databases
created in 9.5 and migrated to 9.7. However, I just found out that even on some databases on other
systems that were migrated from 9.5 to 9.7 there is no logging of these warnings in the db2diag.log
either. So my orginal theory seems to be wrong, but I have no idea why this is happening on some and
not others. Not sure if there is change from 9.7.4 to 9.7.5.
One possible reason for the difference (i.e -911 behaviour) is
CUR_COMMIT. On DB2 v9.7 any migrated databases has this OFF while
freshly created v9.7 databases have this ON by default.
This CUR_COMMIT setting influences locking behaviour. To really
discover what's happening on V9.7 locking, use the new 'event monitor
for locking' feature, even if its current implementation is untidy.

Reply With Quote
  #5  
Old   
Mark A
 
Posts: n/a

Default Re: Locktimeout and Deadlock Errors in db2diag.log - 01-17-2012 , 07:03 AM



On Mon, 16 Jan 2012 09:28:55 -0800, mike wrote:
Quote:
One possible reason for the difference (i.e -911 behaviour) is
CUR_COMMIT. On DB2 v9.7 any migrated databases has this OFF while
freshly created v9.7 databases have this ON by default. This CUR_COMMIT
setting influences locking behaviour. To really discover what's
happening on V9.7 locking, use the new 'event monitor for locking'
feature, even if its current implementation is untidy.
I didn't say there is a difference in -911 behavior. I said there is a difference in whether the error
shows up in db2diag.log at level 3. This difference occurs on two different 9.7 databases.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.