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 > Reading logs.....

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-29-10, 12:13
bulump bulump is offline
Registered User
 
Join Date: Oct 2009
Location: Calgary, AB Canada
Posts: 37
Reading logs.....

I keep getting asked to 'go and find something' within the logs whenever our applications hangs/spikes/etc on the client side.

I know to check the db2diag.log and capture current snapshots, but upper mgmt still wants to know what happened on the transaction level. I tell them that you can't read the transaction logs, but they still persist on trying to figure out what happens.

I understand that I can set up event monitors, but they don't want to do that due to performance concerns. What else can I look at/do to provide the level of information they are looking for?

BTW:

LUW 9.5.3
DIAGLEVEL = 3
NOTIFYLEVEL = 3

The diag log isn't showing the -911 errors that are showing up in the application logs along with other 'db2' errors.

What else can I provide?
Reply With Quote
  #2 (permalink)  
Old 07-29-10, 13:10
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,451
Your question is too general. Tools that you use depend on the problem that you are trying to investigate.

SQL0911N could indicate either deadlocks or lock timeouts. For the former you use the deadlock event monitor, which has very little overhead and is created and enabled by default - all you need to do is to read the files. For lock timeouts there is additional monitoring that was introduced in DB2 9.5 - you can read about it here: Lock timeout reporting

You should explain to your bosses that there's no such thing as free lunch. If they want to monitor the system all the time, they will pay the price of performance impact all the time.
Reply With Quote
  #3 (permalink)  
Old 07-29-10, 13:16
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
You do not want the db2diag.log file to fill up with every application error (such as -911). It would be huge in no time and searching through that would be a nightmare.

If you are getting timeouts, you can user a new feature in V9.5:

IBM DB2 9.5 Information Center for Linux, UNIX, and Windows

Any other error you really need the event monitor.

It has been my experience that error -911 (either deadlock or timeout) are because of either poor programming or networking issues.

Andy
Reply With Quote
  #4 (permalink)  
Old 07-29-10, 13:34
bulump bulump is offline
Registered User
 
Join Date: Oct 2009
Location: Calgary, AB Canada
Posts: 37
Quote:
Originally Posted by ARWinner View Post
You do not want the db2diag.log file to fill up with every application error (such as -911). It would be huge in no time and searching through that would be a nightmare.

If you are getting timeouts, you can user a new feature in V9.5:

IBM DB2 9.5 Information Center for Linux, UNIX, and Windows

Any other error you really need the event monitor.

It has been my experience that error -911 (either deadlock or timeout) are because of either poor programming or networking issues.

Andy
Thanks guys....I'm looking at this right now.

Questions I have are

* What is the regex of the output filename resulting from this registry value being set?
* Does the switch ON result in immediate usage of the capability, or do I need to recycle the instance?

The information provides doesn't address any of this.

Thanks.
Reply With Quote
  #5 (permalink)  
Old 07-29-10, 14:21
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Here is some more information.

Lock events for DB2 for Linux, UNIX, and Windows, Part 2: New options for analyzing lock timeouts in DB2 9.5

I cannot remember if you have to recycle the instance. My guess is yes.

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