ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ Java / JMSHow to get MQGET and MQPUT seconds

Post new topicReply to topic
How to get MQGET and MQPUT seconds View previous topic :: View next topic
Author Message
wattle9
PostPosted: Wed Jul 13, 2016 8:01 pm Post subject: How to get MQGET and MQPUT seconds Reply with quote

Newbie

Joined: 30 Sep 2013
Posts: 6

Hi,

I am in the need of having MQGETs and MQPUTs per second for a specific queue and will use a Java program for that.

Can somebody help me how to do it. Can this be done using PCF command?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 14, 2016 4:41 am Post subject: Re: How to get MQGET and MQPUT seconds Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 24614
Location: Ohio, USA

wattle9 wrote:
I am in the need of having MQGETs and MQPUTs per second for a specific queue and will use a Java program for that.


Why? Why not just enable the queue manager statistics?

wattle9 wrote:
Can somebody help me how to do it. Can this be done using PCF command?


I don't believe so, but am prepared to be corrected. If you wanted to capture this directly, you'd need to write a user exit (which must be C not Java) in the API.

There are any number of posts in here about the dangers of badly written exits (and indeed the problems with well written exits).
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 14, 2016 5:43 am Post subject: Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19398
Location: LI,NY

The reset statistics command will give you that information. If you issue it at regular intervals you can then divide by the interval length to get an average. This is what most monitoring software do.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
wattle9
PostPosted: Thu Jul 14, 2016 4:33 pm Post subject: Reply with quote

Newbie

Joined: 30 Sep 2013
Posts: 6

fjb_saper wrote:
The reset statistics command will give you that information. If you issue it at regular intervals you can then divide by the interval length to get an average. This is what most monitoring software do.


Thanks. This helps.
Back to top
View user's profile Send private message
tczielke
PostPosted: Thu Jul 14, 2016 6:09 pm Post subject: Reply with quote

Yatiri

Joined: 08 Jul 2010
Posts: 657
Location: Illinois, USA

One thing to be aware of with the RESET QUEUE STATISTICS is that if other applications (e.g. monitoring tools) are issuing this command against your queues, they will be resetting this information which will cause your application to be missing statistical information and vice versa.
_________________
MQ administrator since 2010.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jul 15, 2016 5:20 am Post subject: Reply with quote

Grand Poobah

Joined: 18 Nov 2003
Posts: 19398
Location: LI,NY

The other way would be to turn on the queue statistics and evaluate the messages created (PCF?). They will have the time interval, number of gets, puts, put1, and even the average time it took etc...

This may be less intrusive to your monitoring tools. (no reset of queue stats)
Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Java / JMSHow to get MQGET and MQPUT seconds
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.