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 > connection pool and db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-12-07, 07:39
dr_suresh20 dr_suresh20 is offline
Registered User
 
Join Date: Sep 2003
Posts: 218
connection pool and db2

Our env: DB2 8.2 on Aix5.3

We are running performance scalability stuff on DB2 platform and found that the connections are getting returned to the connection pool despite the process / activity is complete. When I query the db2 database, I see a number of connections with status "unit of work waiting". My question is: why are the connections not returned to the connection pool? Does UOW waiting has any relavance to holding up memory because we are seeing memory usage to be 100% full...!!

Any thoughts greatly appreciated.

Thanks.
Reply With Quote
  #2 (permalink)  
Old 03-12-07, 09:30
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Use DB2MEXMAXFREE and DB2MEMDISCLAIM to claim back memory from the OS.

Refer to the documentation for details.

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 03-13-07, 09:45
dr_suresh20 dr_suresh20 is offline
Registered User
 
Join Date: Sep 2003
Posts: 218
Thanks for the response..

What about the connections.. Does it mean to say - we need to reset them after each run?
Reply With Quote
  #4 (permalink)  
Old 03-13-07, 13:17
ramesh jampala ramesh jampala is offline
Registered User
 
Join Date: Mar 2007
Posts: 15
UOW waiting means the application is not doing any database realated work. The program control is in application code itself .. and the database is waiting for the request from the application. The connection that was established to database is still existing unless application resets database connection. You can see the last status change time from application snapshot to determine for how long the connection is there to database. Once application resets the connection, then only the thread(connection) returns to connection pool. You can reduce the memory usage by tuning different memory heap parameters. You can also reduce NUM_POOLAGENTS if it is very high.

Ramesh
IBM Certified UDB DBA
IBM Certified DB2 DBA
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