473,545 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can someone enlighten me on 'handles'?

Hi there.

Recently, one of our application servers is moaning about its handles.
(no more handles available).

I'm guessing it has to do with some bug in our software where it does
not release handles properly and every x thousand queries, one available
handle gets lost (unreleased).

Are handles available PER application, or is there one general pool of
handles from which agents get their share?

In DB2 8.2 LUW 64bit, how many handles are available?
Can this limit be changed or is it hardcoded?

Can I get an overview of handles in use/available (I know about the
application snapshot, but I was hoping for something a little more...
brief.)

Can I assume for every cursor in use, 1 handle is allocated en vice
versa? Or is this wrong to think when you have a query that operates on
multiple datebbase objects. (for instance, 1 query that joins over 3
tables. Is that 1 handle and 3 cursors?)

Perhaps someone knows of some interesting reading on this subject.
Searching for handles in 1 pain in the ** because all I get is how DB2
is *handling* some stuff.

Thanks.

-R-
Jun 27 '08 #1
7 1942
"Jurgen Haan" <ju****@fake.tl dwrote in message
news:48******** *************** @news.xs4all.nl ...
Hi there.

Recently, one of our application servers is moaning about its handles.
(no more handles available).

I'm guessing it has to do with some bug in our software where it does
not release handles properly and every x thousand queries, one available
handle gets lost (unreleased).

Are handles available PER application, or is there one general pool of
handles from which agents get their share?

In DB2 8.2 LUW 64bit, how many handles are available?
Can this limit be changed or is it hardcoded?

Can I get an overview of handles in use/available (I know about the
application snapshot, but I was hoping for something a little more...
brief.)

Can I assume for every cursor in use, 1 handle is allocated en vice
versa? Or is this wrong to think when you have a query that operates on
multiple datebbase objects. (for instance, 1 query that joins over 3
tables. Is that 1 handle and 3 cursors?)

Perhaps someone knows of some interesting reading on this subject.
Searching for handles in 1 pain in the ** because all I get is how DB2
is *handling* some stuff.

Thanks.

-R-
Most likely, the applications are not closing transactions as soon as they
could (or should). Or they are not committing as often as they should. These
are common problems in many shops these days where programmers are very
poorly trained.
Jun 27 '08 #2
Mark A wrote:
>
Most likely, the applications are not closing transactions as soon as they
could (or should). Or they are not committing as often as they should. These
are common problems in many shops these days where programmers are very
poorly trained.

Lol!

I kind of figured it's most likely to be a fault in our software.
But nevertheless, I would like some clarification on the subjects stated
in my original post; First to be able to answer the programmers'
specific questions, and second for my own peace of mind, I like to know
what's going on under the bonnet.

And in defence of our programmers; they know their stuff, but mistakes
are easily made. (know that a hardcopy of your reply is going their way. :P)

Thanks for your reply.

-R-
Jun 27 '08 #3
On Jun 5, 1:17*pm, Jurgen Haan <jur...@fake.tl dwrote:
Hi there.

Recently, one of our application servers is moaning about its handles.
(no more handles available).

I'm guessing it has to do with some bug in our software where it does
not release handles properly and every x thousand queries, one available
handle gets lost (unreleased).

Are handles available PER application, or is there one general pool of
handles from which agents get their share?

In DB2 8.2 LUW 64bit, how many handles are available?
Can this limit be changed or is it hardcoded?

Can I get an overview of handles in use/available (I know about the
application snapshot, but I was hoping for something a little more...
brief.)

Can I assume for every cursor in use, 1 handle is allocated en vice
versa? Or is this wrong to think when you have a query that operates on
multiple datebbase objects. (for instance, 1 query that joins over 3
tables. Is that 1 handle and 3 cursors?)

Perhaps someone knows of some interesting reading on this subject.
Searching for handles in 1 pain in the ** because all I get is how DB2
is *handling* some stuff.

Thanks.

-R-
Please always supply DB2 version and OS/platform.

Assuming DB2 LUW v8, here is some info on different type of "handles":
http://publib.boulder.ibm.com/infoce...d/c0004933.htm

HTH

--
Jeroen
Jun 27 '08 #4
>"Jeroen van den Broek" <nl****@baasbov enbaas.demon.nl wrote in message
>news:6b******* *************** ************@c5 8g2000hsc.googl egroups.com...
Please always supply DB2 version and OS/platform.
Assuming DB2 LUW v8, here is some info on different type of "handles":
http://publib.boulder.ibm.com/infoce...d/c0004933.htm

HTH
Jeroen
Although the OP did not state it explicitly, my guess is that the problem is
cursor handles. Java programmers usually don't have to open a cursor, even
though the JDBC interface opens one (or many) cursors for them depending on
what they are doing.

The resulting error is usually a -805 "package not found" when DB2 runs out
of system packages to handle cursors (usually large cursors). The large
cursor packages can handle thousands of handles each, but for some sloppy
programs that is not enough. The default is to have 3 large cursor packages
available, and the error is returned when DB2 cannot find the 4th package
(the first large cursor package ends in x'00', so the 4th one end in x'03').
This can be increased to 30 packages by rebinding the package with an option
to have more, but in my experience if the programmers can't get by with 3,
they will soon exhaust all 30 if you give them that many. They are like drug
addicts, the more you give them, the more they want.

Now it is possible, since the OP did not mention -805 error code, then he is
experiences some other type of handle problem. In that case it would help to
have more detailed information about what error message is being received.
Jun 27 '08 #5
Mark A wrote:
>"Jeroen van den Broek" <nl****@baasbov enbaas.demon.nl wrote in
message
news:6b******* *************** ************@c5 8g2000hsc.googl egroups.com...
Please always supply DB2 version and OS/platform. Assuming DB2 LUW v8,
here is some info on different type of
"handles":
http://publib.boulder.ibm.com/infoce...d/c0004933.htm

HTH
Jeroen

Although the OP did not state it explicitly, my guess is that the
problem is cursor handles. Java programmers usually don't have to
open a cursor, even though the JDBC interface opens one (or many)
cursors for them depending on what they are doing.

The resulting error is usually a -805 "package not found" when DB2
runs out of system packages to handle cursors (usually large
cursors). The large cursor packages can handle thousands of handles
each, but for some sloppy programs that is not enough. The default is
to have 3 large cursor packages available, and the error is returned
when DB2 cannot find the 4th package (the first large cursor package
ends in x'00', so the 4th one end in x'03'). This can be increased to
30 packages by rebinding the package with an option to have more, but
in my experience if the programmers can't get by with 3, they will
soon exhaust all 30 if you give them that many. They are like drug
addicts, the more you give them, the more they want.
Now it is possible, since the OP did not mention -805 error code,
then he is experiences some other type of handle problem. In that
case it would help to have more detailed information about what error
message is being received.
Yep, that's why I only could offer the link to the docs.
It could even be OP has issues with file handles on OS level...

--
Jeroen
Jun 27 '08 #6
Jeroen van den Broek wrote:
On Jun 5, 1:17 pm, Jurgen Haan <jur...@fake.tl dwrote:
>Hi there.

Recently, one of our application servers is moaning about its handles.
(no more handles available).

I'm guessing it has to do with some bug in our software where it does
not release handles properly and every x thousand queries, one available
handle gets lost (unreleased).

Are handles available PER application, or is there one general pool of
handles from which agents get their share?

In DB2 8.2 LUW 64bit, how many handles are available?
Can this limit be changed or is it hardcoded?

Can I get an overview of handles in use/available (I know about the
application snapshot, but I was hoping for something a little more...
brief.)

Can I assume for every cursor in use, 1 handle is allocated en vice
versa? Or is this wrong to think when you have a query that operates on
multiple datebbase objects. (for instance, 1 query that joins over 3
tables. Is that 1 handle and 3 cursors?)

Perhaps someone knows of some interesting reading on this subject.
Searching for handles in 1 pain in the ** because all I get is how DB2
is *handling* some stuff.

Thanks.

-R-

Please always supply DB2 version and OS/platform.

Assuming DB2 LUW v8, here is some info on different type of "handles":
http://publib.boulder.ibm.com/infoce...d/c0004933.htm

HTH

--
Jeroen
:S

I quote:
"In DB2 8.2 LUW 64bit, how many handles are available?"
Jun 27 '08 #7
Jeroen van den Broek wrote:
>
Assuming DB2 LUW v8, here is some info on different type of "handles":
http://publib.boulder.ibm.com/infoce...d/c0004933.htm

HTH

--
Jeroen
Thank you. Is a very helpful link.
Jun 27 '08 #8

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

Similar topics

11
3618
by: Rohit | last post by:
Hi, Threads in the .NET Framework 1.1 (and possibly in 1.0 also) leak "Event" handles, by Event handles I mean Win32 Event handles which can be monitored using the ProcessExplorer from www.sysinternals.com, or even simply look at the Handle count in the good old windows TaskManager. To demonstrate the problem, all I did was created a basic...
1
6292
by: benc | last post by:
Hi Can anyone enlighten why dispose() a form does not seems to release window handles. My .NET app crushes after while, typically when window handles > 1400 or so. My main form creates/inits about 50 forms, tag to tree nodes, so it appears when user clicks the node. In each form there are the usual tabcontrols, groupboxes, editbox, etc. When...
3
2011
by: Alex | last post by:
I'm having a problem porting an ASP solution to ASPX. In the ASP solution I'm accessing a DCOM server, create sub DCOM objects and call functions from VB script on the ASP pages. The DCOM object handles are stored in session variables. This works fine without a problem. Ported it to ASPX, accessing the same DCOM server from code behind...
3
2348
by: Sean | last post by:
HI There, I am trying to submit a form when a selection is made from a dropdown list, I keep getting the error "Handles clause requires With Events Variable". Could someone help me with the syntax? Sean - Thanks in advance
3
1212
by: Shapper | last post by:
Hello, I have a third party control in my page. I need to set the properties of Labels and Images in this control when: 1. User enters the Page. 2. A button is clicked which changes culture (Change Properties) Usually I would do it this way: Sub Page_Load(...)
9
1163
by: M. Posseth | last post by:
i have 3 forms Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim frm As New Form2 frm.Show(Me) End Sub Private _test As String Friend Property test() As String
4
1480
by: Ron | last post by:
I am having a bit of problem with this code: Dim cmd As New OleDb.OleDbCommand("INSERT INTO help (Name, Email, telephone, description)VALUES('" & txtName.Text & "','" & txtEmail.Text & "','" & txtTelephone.Text & "','" & txtDescription.Text & "')", New OleDb.OleDbConnection(strconn)) at the end, strconn is underlined in blue and says not...
4
1226
by: lmefford | last post by:
Ok, so I've got a weird question. I'm working with an outside class that someone made that will save the application settings in the Application Data Folder. However, one problem I'm having, and I already found the (lengthy) fix for is that I'm not able to mix handles: Private Sub uicheck1_CheckedChanged _ (ByVal sender As System.Object,...
0
7478
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7410
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7923
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...
1
7437
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5984
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...
0
4960
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...
0
3466
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...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
722
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...

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.