Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 11:38 AM
Jurgen Haan
Guest
 
Posts: n/a
Default db2 transactions per second

Hey there.
I want to keep track of the transactions per second on a db2 udb luw v
8.1.7. How do I realise this? This would be the case on our production
server and I really don't like the Statement monitor, because of the
performance hit. So, can it be done? And can this be done using the DB2
CLI? So I can use the output in shell scripts.

-R-
  #2  
Old November 12th, 2005, 11:38 AM
Anton Versteeg
Guest
 
Posts: n/a
Default Re: db2 transactions per second

Jurgen Haan wrote:[color=blue]
> Hey there.
> I want to keep track of the transactions per second on a db2 udb luw v
> 8.1.7. How do I realise this? This would be the case on our production
> server and I really don't like the Statement monitor, because of the
> performance hit. So, can it be done? And can this be done using the DB2
> CLI? So I can use the output in shell scripts.
>
> -R-[/color]
Perhaps
get snapshot for database on xxxxx

It will show rows inserted/deleted etc. commits
and a lot more. You would have to process the output though.
--
Anton Versteeg
IBM Netherlands
  #3  
Old November 12th, 2005, 11:38 AM
Jurgen Haan
Guest
 
Posts: n/a
Default Re: db2 transactions per second

Anton Versteeg wrote:
[color=blue]
> Perhaps
> get snapshot for database on xxxxx
>
> It will show rows inserted/deleted etc. commits
> and a lot more. You would have to process the output though.[/color]

I just took a look at the snapshot.
the number of commits, is it a total since activation or is there some
timespan? The processing isn't a problem.
store timestamp1+commit count1
wait
store timestamp2+commit count2

commit count2-commit count1 / timestamp2-timestamp1 = commits/<time unit>

thanks for the feedback, I will imeplement it.

-R-
  #4  
Old November 12th, 2005, 11:38 AM
Serge Rielau
Guest
 
Posts: n/a
Default Re: db2 transactions per second

Jurgen Haan wrote:[color=blue]
> Anton Versteeg wrote:
>[color=green]
>> Perhaps
>> get snapshot for database on xxxxx
>>
>> It will show rows inserted/deleted etc. commits
>> and a lot more. You would have to process the output though.[/color]
>
>
> I just took a look at the snapshot.
> the number of commits, is it a total since activation or is there some
> timespan? The processing isn't a problem.
> store timestamp1+commit count1
> wait
> store timestamp2+commit count2
>
> commit count2-commit count1 / timestamp2-timestamp1 = commits/<time unit>
>
> thanks for the feedback, I will imeplement it.
>
> -R-[/color]
AFAIK the snapshot counters are always relative to the start of the
monitor switch/db2start.
Another option might be "db2pd -transactions" db2pd is DB2's version of
Informix onstats.

Cheers
Serge

--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
  #5  
Old November 12th, 2005, 11:39 AM
Gert van der Kooij
Guest
 
Posts: n/a
Default Re: db2 transactions per second

In article <3mgn0fF171h7oU1@individual.net>, Serge Rielau
(srielau@ca.ibm.com) says...[color=blue]
> Another option might be "db2pd -transactions" db2pd is DB2's version of
> Informix onstats.
>[/color]

I tried it with DB2 PE FP9 but ran into an error. A error message was
displayed:

db2pd.exe - Unable to locate component
This application has failed to start because DB2DIAG.dll was not
found. Re-installing the application may fix this problem.

I installed FP9a to be sure it wasn't a local issue but the problem
still remains. I hope it will be fixed with FP10.

Kind regards, Gert
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.