473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

sqldEscalateLocks and performances

I have a DB2 8.1 box on Windows XP on which I noticed some performance
problems. In this cases I see messages like this in the XP event log:

2005-05-11-07.43.54.437000 Instance:DB2 Node:000
PID:1960(db2syscs.exe) TID:4000 Appid:C0A80A9F.G441.0103CA46CA41
data management sqldEscalateLocks Probe:2 Database:JMFPROD

Locks: 1255
Target: 627

There are two java applications running queries and updates against this DB,
using the type 4 JDBC driver.
My questions are:
1) Locks on tables are raised only by insert/update/delete statements or
even by select ones?
2) How can I decrease the number of locks generated by my applications?
Would it be usefull to set the transaction isolation to
TRANSACTION_READ_UNCOMMITTED (Uncommitted read)?
3) Since I use autocommit on my connection, when are locks released?

Any other suggestions to solve my problem?

Thanks a lot.

Bye

Franco

Nov 12 '05 #1
3 2452
1, Yes
2. It will, but think about your application if it is OK for this UR
3. After Commit or Rollback, release the lock

Nov 12 '05 #2
> 1, Yes

:-( Then, is the lock released closing the resultset and the statament used
to select records?
3. After Commit or Rollback, release the lock


Sorry, but I didn't understand: do yo mean that the lock is automatically
released by the autocommit engine or that I need to release it explicitly?
If I need to release, how can I do it?

Thanks a lot.

Bye

Franco
Nov 12 '05 #3
"Franco Lombardo" <f_********@hotmail.com> wrote in message
news:42********@x-privat.org...
1, Yes


:-( Then, is the lock released closing the resultset and the statament
used
to select records?
3. After Commit or Rollback, release the lock


Sorry, but I didn't understand: do yo mean that the lock is automatically
released by the autocommit engine or that I need to release it explicitly?
If I need to release, how can I do it?

Thanks a lot.

Bye

Franco

All locks are released when a commit takes place, regardless of how the
commit occurred. The only exception is if you open a cursor with hold, and
then the lock remains past the commit.
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: vincent delft | last post by:
I want to write a script that will monitore the performance of a web application delivering HTTP and HTTPS pages. I would like to know the best way to do it... By reading Python Doc. I've...
3
by: Dev | last post by:
Good Morning to all, I have a bunch of XML files that need to be readed inside the same DataSet (each XML represent a single table). In the event of a large (some megabytes) file, what is the...
1
by: Steve B. | last post by:
Hello I begin building a web site that must be globalized. I've read about some technics, but I wonder which is the rigth one regarding performances. The web site will display near 20 pages...
3
by: Udi | last post by:
Hi All, I'm developping an application that has a very strong logging requirement - we should be able to log up to 5000 messages per second, most of them are reletively small -(16 - 30 Words)...
0
by: Quasar | last post by:
Hi everybody, I've been using WebSphere and DB2 for quite a long time. I'm currently focusing my attention on performances and here it comes my question: In WebSphere 5.x I use Tivoli...
25
by: Bala2508 | last post by:
Hi, I have a C++ application that extensively uses std::string and std::ostringstream in somewhat similar manner as below std::string msgHeader; msgHeader = "<"; msgHeader += a; msgHeader...
1
by: Tom Rahav | last post by:
Hello, I try to develop application that runs in the background and suppose to display a small form with menu whenever the user clicks the middle mouse button (also when my application is not the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
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...

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.