Hi,
1) If I need to monitor a resource eg, bufferpools at the database
level across all users, how can I do this ?
If snapshot monitoring needs to be done wouldn't enabling the switch
at the DBM level cause performance problems ?
2)How does one find the SQL statement that a particular user session
is executing?
TIA,
Hype. 2 3060
Inline...
hype wrote: Hi, 1) If I need to monitor a resource eg, bufferpools at the database level across all users, how can I do this ?
Bufferpools are reported per database 'get snapshot for bufferpool on
'db'" Attach to the instance, and use global snapshots if you're EEE. If snapshot monitoring needs to be done wouldn't enabling the switch at the DBM level cause performance problems ?
For the bufferpool switch you're looking at a very small cost in terms
of runtime. The issue is more with additional shared memory consumption
for the counters (counting is done per edu...prefetche r/agent etc).
2)How does one find the SQL statement that a particular user session is executing?
If you want all statements, then a statement evmon with filtering on
that application. If you want the current statement, then snapshot for
applications (you can specify a single app if you want). For dynamic sql
you'll get the statement text. If you're static, you have to pull the
text from the catalogs using the package/sectoin/creator info.
1. There is no way to turn the monitor switches on for a single
database. You will need to turn the Bufferpools switch on for the
monitoring to begin. If you are using DB2 v8 you can try and use the
Health Indicators which are more 'lightweight' but do not provide as
much information. If you are only interested in cumulative metrics
for bufferpools instead of instantaneous results(i.e. the values of
various counters after the last application disconnects) - you can use
an event monitor instead of a snapshot monitor.
2. The best way to trace all sql statements for a user session is to
use an event monitor on the server. Look at the CREATE EVENT MONITOR
sql statement for further details. hy********@yaho o.com (hype) wrote in message news:<71******* *************** ***@posting.goo gle.com>... Hi, 1) If I need to monitor a resource eg, bufferpools at the database level across all users, how can I do this ? If snapshot monitoring needs to be done wouldn't enabling the switch at the DBM level cause performance problems ?
2)How does one find the SQL statement that a particular user session is executing?
TIA, Hype. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jean-Marc Blaise |
last post by:
Dear all,
It seems there is a problem with some snapshot table functions, if you try
to divide by some element that is unset or equal to 0. This generates a trap
file with the db2fmp.exe process, that keeps going on, until your disk is
full. I'm on W2K, DB2 UDB 8.1 FP4.
Test case:
db2start
|
by: Ina Schmitz |
last post by:
Hello,
I would like to get the logical and physical reads for every sql statement
executed.
Thatfore, I used the command "db2 get snapshot for dynamic sql on
<mydatabase>". There, I could see the logical and physical reads from
bufferpool for every statement monitored. Am I right?
But now, I would like to read these results out of a table so that I could
process them automatically. In which table(s) are the results of snapshot
for...
|
by: Tejas |
last post by:
Hi,
I have gone through the snapshot API. I need to use it for finding
location of database files, tablespace containers etc on a remote
machine. These parameters are present in the response. However, for
getting only some paramters, I get a huge response, with many
parameters that I do not need (mostly many are performance parameters).
How long can the snapshot response be, and can it considerably affect
performance?
|
by: sethwai |
last post by:
Hi,
I find the "snapshot for dynamic sql" a great tool for identifying
the most frequently executed dynamic sql statements, most cpu used,
etc. It is a great help for system tuning. My understanding is it
does not display static sql statements. Is a statement event monitor
the only way to capture the same information for static sql in
packages?
Lew
|
by: shenanwei |
last post by:
I have db2 v8.2.5 on AIX V5.3 with all the switches on
Buffer pool (DFT_MON_BUFPOOL) = ON
Lock (DFT_MON_LOCK) = ON
Sort (DFT_MON_SORT) = ON
Statement (DFT_MON_STMT) = ON
Table (DFT_MON_TABLE) = ON
Timestamp (DFT_MON_TIMESTAMP) = ON
Unit of work ...
| |
by: steingold |
last post by:
Hi all
I'm using DB2 UDB v8.2 on linux.
After minimizing the code in order to isolate the problem, I have a
simple jdbc client that executes the following SQL statement in loop :
SELECT * FROM TABLE (SNAPSHOT_LOCK (CAST (NULL AS CHAR), -1)) AS
LOCK_INFO
After each query the client sleeps for 100 ms, and then continues the
loop, so the database machine is not under load (cpu consumption is
|
by: mike |
last post by:
Problem: the snapshot output for dynamic SQL shows some SELECT
statements executed many times but all three CPU counters
(total/system/user) in the dynamic-sql-snapshot are zero,
but most other SQL statements are correctly timed.
Environment: DB2 v7.2 fp13 on AIX all 32-bit.
At this site, a script executes once an hour
which enables STATEMENT monitor switches, resets
|
by: PaulR |
last post by:
Hi all,
(DB2 LUW 8.2)
I'm just trying to write a little widget to capture lock wait details
(when they occur).
i.e when a lock-wait occurs, simply record the 2 statements involved
in the lock wait.
However, I am stumped by the fact that the snapshot monitor does not
|
by: Yaron Goldstein |
last post by:
Hi all.
I'm writing a performance analysis utility that uses the snapshot
monitor C API to get statistics in the connection level. It seems that
the way I use the snapshot monitor is very inefficient : each snapshot
takes a few dozens of milliseconds and overall it consumes a lot of
CPU.
Is there a way to configure and optimize the snapshot utility ?
Is there an alternative to the snapshot monitor API ?
When working with Oracle, I'm...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |