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 > orphaned db2 processes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-07-05, 20:02
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
orphaned db2 processes

I have some db2 processes that I can't kill with ' force application (appId)'. Anyone have any suggestions on how to get rid of these processes?
Reply With Quote
  #2 (permalink)  
Old 03-08-05, 09:05
fohana fohana is offline
Registered User
 
Join Date: Jan 2005
Location: Rio de Janeiro - Brazil
Posts: 28
redwolf,

Just out of curiosity, how those process got orphaned?? Were the applications killed in a "dirty" manner and the agents didnīt die?


What version of DB2 are you running?

Iīve had a similar problem on DB2 V7.2 on Linux, and from what I saw, after trying to force them a few times, they eventually disconnected from the server.

I think that after turning off your applications in a dirty manner, it has no time to close all opened connection handles and the agents opened by that applications remains open until they finish processing and "realize" the connection is no more. Although this processing may take a while to close, even after you force them off.

Itīs now fixed on DB2 V8 FP2

Hereīs the APAR that solved this:
IY43459 ORPHANED DB2AGENT PROCESSES STILL PROCESSING AND HOLDING LOCKS AND RESOURCES LONG AFTER THE ASSOCIATED APP IS KILLED

Hope this helps.

Fernando Ohana.

Last edited by fohana; 03-08-05 at 09:06. Reason: correction
Reply With Quote
  #3 (permalink)  
Old 03-10-05, 14:21
udbdb2 udbdb2 is offline
Registered User
 
Join Date: Nov 2003
Posts: 121
how do you find such connection

I am looking for a way to periodically find such orphoned connections.

Is there anyway or query to do that ?

Thanks!
Reply With Quote
  #4 (permalink)  
Old 03-10-05, 14:29
fohana fohana is offline
Registered User
 
Join Date: Jan 2005
Location: Rio de Janeiro - Brazil
Posts: 28
AFAIK all you can do is check if the PID associated with that db2agent is still up and running.

If youīre using remote clients, take an application snapshot and look for the PID at the client machine and check, on that machine, if that process is still alive.

I found out I had "zombie" agents when the application accessing the Database was shutdown and the connections werenīt released, even after forcing them off.

Besides that, I donīt have a recipe or a how-to, considering I usually find īem manually.

HPH
Fernando Ohana
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