Author |
Message
|
garonne |
Posted: Wed Aug 09, 2006 5:29 am Post subject: Example of Performance Monitoring |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
Can anybody give me an example of MQ Performance Monitoring by using PCF in Java?
Thanks alot. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Aug 09, 2006 6:05 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Can you be a little more specific as to what you are looking for? What type of performance monitoring? MQ Event messages? Statistics? _________________ -wayne |
|
Back to top |
|
 |
garonne |
Posted: Wed Aug 09, 2006 6:12 am Post subject: |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
wschutz wrote: |
Can you be a little more specific as to what you are looking for? What type of performance monitoring? MQ Event messages? Statistics? |
Thanks for your attention.
I would like to have a java program to monitor
Event: Queue Depth High
Event: Queue Depth Low
Event: Queue Full
Event: Queue Service Interval
I am a very new to PCF and please tell me if I can use PCF to monitor these events and how I can. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Aug 09, 2006 6:24 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
garonne |
Posted: Wed Aug 09, 2006 6:33 am Post subject: |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
I have walked through the document "Programmable System Management" and I have some ideas about PCF (for example I know how to mesure queue depth) and event messages.
But I still can't understand how can I use PCF to monitor event.
Please give me a small java program so I would understand better. |
|
Back to top |
|
 |
wschutz |
Posted: Wed Aug 09, 2006 6:35 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
I believe there are samples include in ms0b _________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Aug 09, 2006 6:37 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Support Pack M001 includes just such a sample. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
garonne |
Posted: Wed Aug 09, 2006 6:43 am Post subject: |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
jefflowrey wrote: |
Support Pack M001 includes just such a sample. |
I Can not google Support Pack M001 , could you please give a link |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Aug 09, 2006 6:46 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It's on the support pack site.
To be clear it is M-oh-zero-one. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
garonne |
Posted: Wed Aug 09, 2006 6:49 am Post subject: |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
jefflowrey wrote: |
It's on the support pack site.
To be clear it is M-oh-zero-one. |
I found it, thanks for your help. I will read the example and return later. |
|
Back to top |
|
 |
garonne |
Posted: Thu Aug 10, 2006 12:41 am Post subject: |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
I have found on Internet a program "mqInquiry". I run it against my sample queue and I have its informations:
Q monitoring event is enabled
Q high depth event Enabled
Q high depth limit 80
Q low depth event Disabled
Q low depth limit 20
Q default persistence = 0
Q maximum depth = 5000
Q current depth = 0
And then I send 100 messages on this sample queue. As the Q high depth event is enabled, I expect an event would be generated by sending a message on SYSTEM.ADMIN.PERFM.EVENT. But when I run the program EventMonitor (in SupportPacs MO01), nothing happen and I look at SYSTEM.ADMIN.PERFM.EVENT, there is no message.
Could you explain this? |
|
Back to top |
|
 |
markt |
Posted: Thu Aug 10, 2006 1:32 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 10, 2006 1:36 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You'll need to put approximately another 3,900 messages before that event will fire. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 10, 2006 1:44 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Or, to expand on the previous postings of my most respected associates, the depth events are a percentage of the queue, not a number. Hence setting the high depth limit to 80 means it will fire when the queue is 80% full i.e. 4000 messages. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
garonne |
Posted: Thu Aug 10, 2006 4:03 am Post subject: |
|
|
Acolyte
Joined: 26 Jan 2006 Posts: 59
|
Vitor wrote: |
Or, to expand on the previous postings of my most respected associates, the depth events are a percentage of the queue, not a number. Hence setting the high depth limit to 80 means it will fire when the queue is 80% full i.e. 4000 messages. |
Thanks alot, it works.  |
|
Back to top |
|
 |
|