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 WLM threshold definition

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-11-09, 12:56
db2dummy1 db2dummy1 is offline
Registered User
 
Join Date: Feb 2009
Posts: 114
Question DB2 WLM threshold definition

I have the following threshold defined in DB2 AIX 9.5.fp2a

CREATE THRESHOLD "TEST1"
FOR DATABASE ACTIVITIES
ENFORCEMENT DATABASE
WHEN CONNECTIONIDLETIME > 5 MINUTES
STOP EXECUTION;

What exactly will "STOP EXECUTION" do if the connection has already been idle for 5 minutes and still is idle? What will "stop executing"? Will the agent be disconnected from db?

Thx
db2dummy1
Reply With Quote
  #2 (permalink)  
Old 02-11-09, 16:15
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I did a quick test. After 5 min, db2 will force the connection off the database.
If you do "list applications", you will see that it's no longer there. Any idle connection that existed prior to creating the threshold will remain connected.
Reply With Quote
  #3 (permalink)  
Old 02-11-09, 16:16
db2dummy1 db2dummy1 is offline
Registered User
 
Join Date: Feb 2009
Posts: 114
Red face

Not a single response to a basic WLM question!!? Looks like WLM is as popular as Query Patroller [now defunct] once was
Reply With Quote
  #4 (permalink)  
Old 02-11-09, 16:18
db2dummy1 db2dummy1 is offline
Registered User
 
Join Date: Feb 2009
Posts: 114
Ahhhh, finally! One response from north of the border. Thanks. It does not work for me that way, but I will give it another shot.
Reply With Quote
  #5 (permalink)  
Old 02-11-09, 16:22
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I tested with fp2. Just make sure you don't execute any db2 commands (including list applications) using your "idle" connection.
Reply With Quote
  #6 (permalink)  
Old 02-11-09, 16:29
db2dummy1 db2dummy1 is offline
Registered User
 
Join Date: Feb 2009
Posts: 114
Thumbs up

Hooray! It worked for me too! And now I know what the problem was -- if you define threshold when there are already connections on db, it does not work for those - only the ones established subsequent to threshold creation, or so it appears. Thanks again.
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