473,804 Members | 3,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Lock Escalation

57 New Member
Have a peculiar problem regarding lock escalation. Originally lock escalation was occurring because of an application changing most of the rows in a large table. After setting locksize to table to overcome this, still seeing periodic lock escalations (every hour or so) but only of abour 20 rows and for one application at a time. Given a 100MB lock list, why is escalation kicking in and only escalation about 2K of locks? MAXLOCKS would also suggest that lock escalation woudl only be triggered if an application was using more than 60MB of locks (at least 500K locks). I would have expected at least one signficant escalation to be present.

This is having serious repercussions on other applications (escalating single row locks to exclusive table locks).

Thx for any help in this matter.

N.B. There are other problems related to insufficient memory and agents but these appear to be symptoms of this same issue - table locks => less concurrency => more agents waiting => more memory used => out of memory and out of agent conditions.

Initial problem:
2007-08-01-08.02.59.704239 +600 E18567A471 LEVEL: Warning
PID : 1372284 TID : 1 PROC : db2agent (LDSPRD01)
INSTANCE: db2inst1 NODE : 000 DB : LDSPRD01
APPHDL : 0-1194 APPID: O7655004.D011.0 70731202903
FUNCTION: DB2 UDB, data management, sqldEscalateLoc ks, probe:3
MESSAGE : ADM5502W The escalation of "766457" locks on table "PHAWLS2
.CARRIER_RUN_JO B" to lock intent "X" was successful.

Current bevaviour:
2007-08-01-13.22.10.902906 +600 E191147A457 LEVEL: Warning
PID : 299040 TID : 1 PROC : db2agntp (LDSPRD01)
INSTANCE: db2inst1 NODE : 000 DB : LDSPRD01
APPHDL : 0-858 APPID: O7655004.O10D.0 70801031920
FUNCTION: DB2 UDB, data management, sqldEscalateLoc ks, probe:3
MESSAGE : ADM5502W The escalation of "1" locks on table "PHAWLS2 .BRANCH" to
lock intent "S" was successful.

2007-08-01-13.22.11.215434 +600 E191605A464 LEVEL: Warning
PID : 299040 TID : 1 PROC : db2agntp (LDSPRD01)
INSTANCE: db2inst1 NODE : 000 DB : LDSPRD01
APPHDL : 0-858 APPID: O7655004.O10D.0 70801031920
FUNCTION: DB2 UDB, data management, sqldEscalateLoc ks, probe:3
MESSAGE : ADM5502W The escalation of "2" locks on table "PHAWLS2
.PAYABLE_TRANS" to lock intent "S" was successful.

Configuration information:
[/home/db2inst1] : db2level
DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL08023"
with level identifier "03040106".
Informational tokens are "DB2 v8.1.1.96", "s050811", "U803920", and FixPak
"10".

[/home/db2inst1] : db2 get db cfg

Database Configuration for Database
...
Max storage for lock list (4KB) (LOCKLIST) = 24000
...
Percent. of lock lists per application (MAXLOCKS) = 60
Aug 1 '07 #1
0 3020

Sign in to post your reply or Sign up for a free account.

Similar topics

12
7349
by: xixi | last post by:
hi, we are using db2 udb v8.1 on 64 bit windows, this message is in the db2diag.log file ADM5502W The escalation of "38200" locks on table "xxx.xxx" to lock intent "X" was successful. currently i have locklist = 1075, maxlock=60, so based on the formula (((locks held * 36)/ (locklist *4096)) *100) , i have the answer is
9
7363
by: Jane | last post by:
Our db2diag.log is full of messages like this: 2004-05-31-17.15.10.383766 Instance:tminst1 Node:000 PID:394948(db2agent (TMDB1) 0) TID:1 Appid:GA140956.EF26.03A4B1202647 data management sqldEscalateLocks Probe:3 Database:TMDB1 ADM5502W The escalation of "4759" locks on table "I2TM .SHPM_T" to lock intent "S" was successful. The message is always about Shared locks. What can I do to eliminate these errors?
0
3391
by: Bruce Pullen | last post by:
DB2 v7.2 (FP7 - DB2 v7.1.0.68) on AIX 5.2.0.0. We're seeing unexpected single row (then commit) insert locking behaviour. We're seeing Applications that already hold row-level W locks in lock-wait, waiting to acquire row-level X locks. The lock-waits are behind applications that have row-level X locks on different rows (honestly). Both executing and lock-waiting applications have been granted IX table locks.
3
4025
by: db2group88 | last post by:
we are using db2 udb v8.1 on windows, the configure parameter for locks is locklist 1000, maxlocks 60, but somehow i still have the error message ADM5502W The escalation of "1" locks on table "SYSIBM ..SYSSCHEMAAUTH" to lock intent "X" was successful. so why even one lock on table still escalate to X lock? our application doesn't use this table, so why there is lock on it, is it
2
3691
by: Trent | last post by:
Hello, all. I have the following production DB2 environment. DB2 8.1.4 (fp4) WG edition with 2 production databases on Windows 2003 standard edition. My first question is regard with locking. I found some escalations for X lock on some tables. How do I work out an appropriate MAXLOCK & LOCKTIMEOUT settings to optimize the lock escalation issue.
9
15568
by: kavallin | last post by:
I receives the following in the db2diag.log file many times / day : 2007-03-05-14.55.24.836553+060 E12415C457 LEVEL: Warning PID : 2785 TID : 1 PROC : db2agent (dbname) INSTANCE: db2inst1 NODE : 000 DB : dbname APPHDL : 0-946 APPID: *LOCAL.db2inst1.070305135434 FUNCTION: DB2 UDB, data management, sqldEscalateLocks, probe:3 MESSAGE : ADM5502W The escalation of...
3
2206
by: stefan.albert | last post by:
Hi folks, we have a little discussion about lock escalation... What is better for performance: To have an escalation "early" (smaller locklist) or aviod the escalation with a big lock list? We don't care about concurrency - because the changes have to be done, other SQL waiting for this is OK. Anyhow - I think: A lock table in exclusive mode would be the the most
1
773
by: clilush | last post by:
I'm getting entries in the windows event log saying "DB2 is performing lock escalation" which of course is followed by another entrie saying "The escalation of 'xxxx' locks on table 'SYSIBM .SYSCOLDIST' to lock intent 'X' was successful." I'm assuming these are just warnings about the database making it's own adjustments, but I thought I'd be sure before sweeping them under the carpet. Any advice? (DB2 8 Workgroup Edition)
18
3183
by: dunleav1 | last post by:
I have db2 9 installation and I think our application isn't handling locking optimally. I have Maxlocks(96) and locklist (104832) setup to be auto tuned. The value of these parameters in the parenthesis are the auto tuned values after running my application for a while. I notice values in db2diag.log that these values are being increased to prevent lock escalation. How do I determine the sql that is causing these high escalations?
0
10569
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10325
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.