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 > db2 idle process script

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-11, 13:32
niteshtheone niteshtheone is offline
Registered User
 
Join Date: Jul 2011
Posts: 19
db2 idle process script

I have to create a script which will detect how many db2 process is idle.
But I am not able to define its threshold.
Means when script need to throw alert that IDLE connection is very much high. Its need to be a percentage of application connected to the system ? or anything else.
( let me clear I want to have alert only I dont want to kill it through script )
Reply With Quote
  #2 (permalink)  
Old 11-24-11, 14:03
niteshtheone niteshtheone is offline
Registered User
 
Join Date: Jul 2011
Posts: 19
I want to add few more thing.
I want the number of connection which came from application side and it is still in the system as idle connection as it is not disconnected. I am not interested to disturb NUM_INITAGENTS which use to display as idle.
db2 get snapshot for applications on <dbname> | grep -i idle .. I dont think NUM_INITAGENTS use to come under this ?? Am i right ?
Reply With Quote
  #3 (permalink)  
Old 11-25-11, 09:34
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Yes, NUM_INITAGENTS is used to define an agent pool. This is the minimum number of agents in the system, whether they are idle or not.

Andy
Reply With Quote
  #4 (permalink)  
Old 11-25-11, 11:19
niteshtheone niteshtheone is offline
Registered User
 
Join Date: Jul 2011
Posts: 19
thansk Andy..

Thanks Andy for reply but I am asking for something else. I am aware about NUM_INITAGENTS. If you have something related to idle agents ( which caused due to application team) please let me know.
Reply With Quote
  #5 (permalink)  
Old 11-25-11, 11:25
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What specifically are you after? You asked a question about NUM_INITAGENTS then dismiss the answer. You are mentioning "idle" processes but do not give a definition as to what you define as idle. Any agent not currently performing work in the database is idle. To count those is meaningless because you are getting a snapshot and the number at that time does not take into account how long they have been doing nothing. You need to define what "idle" means, then simply count those over the threshold.

Andy
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