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 > what should I monitor?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-12-11, 15:51
robert_tr robert_tr is offline
Registered User
 
Join Date: Sep 2010
Posts: 34
what should I monitor?

Hello,
I need advice,
I need to know if all is well there to prevent problems, which snapshots should I check? or what should I check?, need runstats?


What should I check to make sure everything is okay?

Thanks
Reply With Quote
  #2 (permalink)  
Old 12-12-11, 15:59
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by robert_tr View Post

What should I check to make sure everything is okay?
For that you'll need to check everything, I presume.
Reply With Quote
  #3 (permalink)  
Old 12-12-11, 16:04
robert_tr robert_tr is offline
Registered User
 
Join Date: Sep 2010
Posts: 34
Quote:
Originally Posted by n_i View Post
For that you'll need to check everything, I presume.
Thanks but, how to?
Reply With Quote
  #4 (permalink)  
Old 12-12-11, 19:38
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Here is what I do, the simplest and basic thing :

Keep a job open on each database server , watch for

1) Connections executing, lockwait

and

2) Long running queries

I check above every 20 mins, and based on some logic, dump snapshots for database, applications and locks , if certain situation arises. The job will send me an email when it takes snapshot, so that I can review them.

Long Running SQL may help identify bad access paths due to changes in some database objects.

So in brief, database, application,lock snapsots are very useful.

Regards
Reply With Quote
  #5 (permalink)  
Old 12-13-11, 00:38
wolaos123 wolaos123 is offline
Registered User
 
Join Date: Nov 2011
Location: Shen Zhen,China
Posts: 37
what I'm monitoring:

runstats
reorgchk
tablespaces
file systems
OS performance
db2diag.log
db2notify file
db2set/dbm/db cfg
history file
backups info
log files
reorg
database objects info
Reply With Quote
  #6 (permalink)  
Old 12-13-11, 21:02
robert_tr robert_tr is offline
Registered User
 
Join Date: Sep 2010
Posts: 34
Quote:
Originally Posted by wolaos123 View Post
what I'm monitoring:

runstats
reorgchk
tablespaces
file systems
OS performance
db2diag.log
db2notify file
db2set/dbm/db cfg
history file
backups info
log files
reorg
database objects info
Thanks, but what I need to check in tablespaces, history file, backups info and how???
Reply With Quote
  #7 (permalink)  
Old 12-13-11, 21:04
robert_tr robert_tr is offline
Registered User
 
Join Date: Sep 2010
Posts: 34
Quote:
Originally Posted by DBFinder View Post
Here is what I do, the simplest and basic thing :

Keep a job open on each database server , watch for

1) Connections executing, lockwait

and

2) Long running queries

I check above every 20 mins, and based on some logic, dump snapshots for database, applications and locks , if certain situation arises. The job will send me an email when it takes snapshot, so that I can review them.

Long Running SQL may help identify bad access paths due to changes in some database objects.

So in brief, database, application,lock snapsots are very useful.

Regards
OK, thank you. How to get a lock and dump snapshots? thanks
Reply With Quote
  #8 (permalink)  
Old 12-13-11, 21:10
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Quote:
Originally Posted by robert_tr View Post
OK, thank you. How to get a lock and dump snapshots? thanks
db2 get snapshot for locks on <mydb>
db2 get snapshot for applications on <mydb>
db2 get snapshot for database on <mydb>
:
:
db2 get snapshot for all on <mydb>

Check here GET SNAPSHOT command

HTH

PS : all this info is available via SQL commands querying snapshot views and/or snapshot functions. So you can use programming ( a strong plus of DB2) to simplify and customize for your need.

Last edited by DBFinder; 12-13-11 at 21:14.
Reply With Quote
  #9 (permalink)  
Old 12-13-11, 22:09
robert_tr robert_tr is offline
Registered User
 
Join Date: Sep 2010
Posts: 34
Quote:
Originally Posted by DBFinder View Post
db2 get snapshot for locks on <mydb>
db2 get snapshot for applications on <mydb>
db2 get snapshot for database on <mydb>
:
:
db2 get snapshot for all on <mydb>

Check here GET SNAPSHOT command

HTH

PS : all this info is available via SQL commands querying snapshot views and/or snapshot functions. So you can use programming ( a strong plus of DB2) to simplify and customize for your need.

Thank you very much!!!!!!!!!!!!!!!!
Reply With Quote
  #10 (permalink)  
Old 12-13-11, 23:30
wolaos123 wolaos123 is offline
Registered User
 
Join Date: Nov 2011
Location: Shen Zhen,China
Posts: 37
Quote:
Originally Posted by robert_tr View Post
Thanks, but what I need to check in tablespaces, history file, backups info and how???

what:
tablespaces type,auto resize,auto storage,pagesize,status,utilization,etc.
how many backups avilable,archiving the expiring backups,check if availbel for restoration,...
archive and truncate history,list history file content...

how:
shell programming
Reply With Quote
  #11 (permalink)  
Old 12-14-11, 01:35
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
I use DB2MON tool to do all this kind of snapshots, monitoring etc. It is a GUI freeware tool, very easy to use: IBM DB2 UDB Performance monitor
Reply With Quote
  #12 (permalink)  
Old 12-14-11, 02:00
niteshtheone niteshtheone is offline
Registered User
 
Join Date: Jul 2011
Posts: 19
To prevent problems :
1. Performance releted problem: need to check stats_time, reorgchk, applications are in lock wait or not, number of connections, bufferpool hit ratio. ( as of now I can figure out only this )
2. Log : need to check log utilization percentage, db2diag.log, to avoid disk full error check mount points of arachive logs.
3. Bottleneck : best option use db2top,its having bottleneck option (B).
4. Tablespace : tablespace state, free pages available, high water mark, space available in mount points.

So many things are there, as of now I am able to figure out only above things.

Last edited by niteshtheone; 12-14-11 at 02:05.
Reply With Quote
  #13 (permalink)  
Old 12-14-11, 17:46
robert_tr robert_tr is offline
Registered User
 
Join Date: Sep 2010
Posts: 34
Thanks at all!!!! I will try.
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