473,401 Members | 2,146 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,401 software developers and data experts.

Average Num of Active Connections On DB2 Instance/ Small NUM_POOLAGENTS

Hello,

I am looking at tuning NUM_POOLAGENTS for many v7.x and v8.x UDB instances.
Aside from logging into each instance and running 'db2 list applications',
or writing a script to do so, is there any way to determine the average
number of connections to an instance?

Also, without getting into detailed hardware information, we have many DB2
instances on a server whose bottleneck is usually RAM/paging space as
opposed to CPU. I thought that in such a situation, it may make sense to
set NUM_POOLAGENTS to a very small value.

Has anybody found that performance suffered when NUM_POOLAGENTS was too
small? Perhaps the overhead required to create and release
pool agents may be small enough that keeping NUM_POOLAGENTS small is
tolerable. (The instances usually have 10 to 30 or so connections,
not thousands).


Thanks,
DF
Nov 12 '05 #1
1 2981
If you use the get snapshot command, you can get at the instance level:
number of local agents executing in
number of remote agents executing in
high water mark of agents executing
Take your snapshot at regular intervals and pipe the output to file for
V7 and/or use table functions for V8.

If you find in your output that number of agents stolen increases from
snapshot to snapshot, you'd have an indication the number is too small

I'd worry about the number of pool agents when:
A) Running an SMP enables box with many processors (8+)
or
B) running an OLTP environment with a high rate of trans./sec

Creating agents cycle steals away from DB2 but you'd have to benchmark
carefully to find a significant impact with an average of 30 connections
(by the way are those agents connected in or executing in). If
connected in, they may be idle and be available, unless they are
coordinators.
HTH, Pierre.

David Franit wrote:
Hello,

I am looking at tuning NUM_POOLAGENTS for many v7.x and v8.x UDB instances.
Aside from logging into each instance and running 'db2 list applications',
or writing a script to do so, is there any way to determine the average
number of connections to an instance?

Also, without getting into detailed hardware information, we have many DB2
instances on a server whose bottleneck is usually RAM/paging space as
opposed to CPU. I thought that in such a situation, it may make sense to
set NUM_POOLAGENTS to a very small value.

Has anybody found that performance suffered when NUM_POOLAGENTS was too
small? Perhaps the overhead required to create and release
pool agents may be small enough that keeping NUM_POOLAGENTS small is
tolerable. (The instances usually have 10 to 30 or so connections,
not thousands).


Thanks,
DF


--
Pierre Saint-Jacques - Reply to: sescons at attglobal dot com
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.
Nov 12 '05 #2

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

Similar topics

3
by: Mudge | last post by:
Hi, My hosting provider only allows me to use 50 connections to my MySQL database that my Web site will use. I don't know what this 50 connections means exactly. Does this mean that only 50...
1
by: C Sharp beginner | last post by:
I'm sorry about this verbose posting. This is a follow-up to my yesterday's posting. Thanks William for your reply. I understand it is a good practice to open connections as late as possible and...
2
by: caroh | last post by:
Can anyone see whats wrong with this code: The connections are remaining live in the database: and causing "Timeout expired. The timeout period elapsed prior to obtaining a connection from the...
3
by: MaRCeLO PeReiRA | last post by:
Hi guys, How can I know about the number of active connections?? (not the maximum allowed, but the number of open connections). Regards, Marcelo Pereira Brasil
3
by: matt.b.williams | last post by:
I am wondering if there is a way to programmatically detect active connections on a RAS server. My situation is this. An app will be running on the RAS server. This app will have a timer that...
3
by: C++Geek | last post by:
I need to get this program to average the salaries. What am I doing wrong? //Program to read in employee data and calculate the average salaries of the emplyees.
11
by: atlaste | last post by:
Hi, In an attempt to create a full-blown webcrawler I've found myself writing a wrapper around the Socket class in an attempt to make it completely async, supporting timeouts and some scheduling...
6
by: bill | last post by:
I have been "Googling" for about an hour and am turning up squat! I just started receiving this error when trying to log into a MS Access database from a vb .net web application. Recycling IIS...
3
by: gazy2k4 | last post by:
I'm writing a program that connects to MS SQL Server, on start up it clears some tables in one database, and repopulates them from another database. I would like this to only happen if there are no...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.