If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to Close the idle, pooled Connections for DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-15-08, 03:31
goudelly1 goudelly1 is offline
Registered User
 
Join Date: Apr 2008
Posts: 21
How to Close the idle, pooled Connections for DB2

Dear All,

I have login with the db2inst1 user in aix server and run the command db2pd -agents

I have got the list of users connected to database. In that list there is a 'status' coloumn and it is showing the values 'active, idle, pooled'. So i want to close the 'idle, pooled' connetions to the database. Please tell me how to close the connections.

Thanks,

Mohan Reddy
Reply With Quote
  #2 (permalink)  
Old 07-15-08, 05:01
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
why do you want to close pooled connections??? these connections are the ones which wait for a request and become active once a request for db activity comes in. So whenever you connect to your db one of these connections become active.

As for idle connections, Maybe someone can throw some light on how to close those.

So agents that are not active remain in pool and everytime instead of starting a new agent the agent from the pool is used. This reduces time to create a connection to db

Last edited by nick.ncs; 07-15-08 at 06:51.
Reply With Quote
  #3 (permalink)  
Old 07-15-08, 05:08
goudelly1 goudelly1 is offline
Registered User
 
Join Date: Apr 2008
Posts: 21
Hi,

Thanks for your replay. my concern is that the agnets are incresing more it will come to near the maxagents parameter figure. That is what other wise there is no specific reason.

Thanks a lot.

Mohan Reddy
Reply With Quote
  #4 (permalink)  
Old 07-15-08, 05:32
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
UPDATE -
According to Information center

Quote:
Agents that are not performing work for any applications and that are waiting to be assigned are considered to be idle agents and reside in an agent pool. These agents are available for requests from coordinator agents operating for client programs or for subagents operating for existing coordinator agents. The number of available agents depends on the database manager configuration parameters maxagents and num_poolagents.
So what is the difference between an agent which is in Idle state and an Agent which is in Pooled state

Last edited by nick.ncs; 07-15-08 at 07:02.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On