473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

How to collect DB2 performance counter values by using query?

I am new to DB2. Now i am developing a java application yo collect performance counter values. So if any one tell me whats the query used to retrieve those counter values, please help me. I did it for Mysql by using " SHOW GLOBAL STATUS". like this i want a query to collect it.

Thanks in advance...
Jan 15 '14 #1
5 1642
Anas Mosaad
185 128KB
What version of DB2 do u use?
Jan 16 '14 #2
DB2 Database server versions from 8.1 upwards @Anas mosaad
Jan 16 '14 #3
Anas Mosaad
185 128KB
To my knowledge, only 9.7 and above is in support now -unless u are entitled for extended support. For DB2 9, please check the monitor table functions, snapshot views or may be db2pd command.

There are lots of stats to collect, it's not a single command to get everything. Know what you are looking for and you will find the appropriate view or table function.
Jan 16 '14 #4
@Anas mosaad, can you tell me any sample command to view this?
Jan 17 '14 #5
Anas Mosaad
185 128KB
By command I guess u mean db2pd. Let me give you an example of collecting the buffer pools data. db2pd -d your_db_name -bufferpools. Note that the database has to be activated.
The same data but probably not the same format can be retrieved using other ways. For example, the CLP command "GET SNAPSHOT FOR ALL BUFFERPOOLS" will get the buffer pools data for you. Also SNAP_GET_BP will get the same data. The system view "SYSIBMADM.BP_HITRATIO" will also get you considerable amount of the same data. The MONREPORT module also can be helpful if you collect this info in SQL/PL or PL/SQL code.

You have lots of options and you need to decide based on your needs, applications and environment. My recommendation to you is not to reinvent the wheel and use one of the pre-existing tools like IBM Optim Performance Manager.
Also note that certain metrics are not collected unless you turn the proper monitor switch on.
Jan 19 '14 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: william | last post by:
Hi, I'm playing windows service using vb.net. I added a performance counter to my windows service, but I couldn't set MachineName property of the performance counter to blank. After I set it to...
0
by: jimiz | last post by:
I have a question on how the performance counter instance returns values. I have an app that uses the performance counter for Category name = "Web Service" Counter name = "Current Connections"...
0
by: Salvador | last post by:
Hi, I have created a service, which installer installs 5 performance counters as well. Then the service instances these counters and interact with them. If I check the event viewer I receive...
0
by: supreeth.bhat | last post by:
I created a new Performance Counter Category and added three new counters. Used InstallUtil.exe to create them on remote production server. I can see the custom counter category and counters. ...
1
by: jvn | last post by:
I am experiencing a particular problem with performance counters. I have created a set of classes, that uses System.Diagnostics.PerformanceCounter to increment custom performance counters (using...
1
by: JSha | last post by:
Hello, The application I am using works on most machines except one where in it throws the following exception... Error: Process Performance Counter is Disabled, so requested operation cannot...
0
by: JSha | last post by:
Hello, The application I am using works on most machines except one where in it throws the following exception... Error: Process Performance Counter is Disabled, so requested operation cannot...
6
manoj9849967222
by: manoj9849967222 | last post by:
Hi All I have a great problem. I have three tables one is "SALES" other one is "Purchase" & "Productid" Now i want to get the closing stock out of it. Say productid is 1.2 ---------...
6
by: sony.m.2007 | last post by:
Hi, I'm using VSTS2008. I tried to create a performance counter as below. A simple example of monitoring processor usage (similar to what's seen in task manager): Code Snippet
1
by: santoshsri | last post by:
Hello, I have web application running since years without any issues. Recently we started facing weird errors we have no clue about .. Can some tell what could be wrong ? It's on IIS6 on .net...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.