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 Index » General IBM MQ Support » How to found out if some messages has expired

Post new topic  Reply to topic
 How to found out if some messages has expired « View previous topic :: View next topic » 
Author Message
ibmmqrock
PostPosted: Tue Aug 13, 2019 3:13 pm    Post subject: How to found out if some messages has expired Reply with quote

Novice

Joined: 30 May 2019
Posts: 14

Our Performance testing team are running load test and they have mentioned that they are not receiving responses after running performance test after some time.

I am wondering if response message is getting expired, we have set CAPEXPRY on the Queue to 1 minute.

Is there a way in MQ to know how many messages (if any) got expired in this queue at a specific interval. We don't want to run tracing as it generates too many log files.

Please suggest if there is any way to find that out.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Aug 13, 2019 3:36 pm    Post subject: Re: How to found out if some messages has expired Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

ibmmqrock wrote:
Our Performance testing team are running load test and they have mentioned that they are not receiving responses after running performance test after some time.

I am wondering if response message is getting expired, we have set CAPEXPRY on the Queue to 1 minute.

Is there a way in MQ to know how many messages (if any) got expired in this queue at a specific interval. We don't want to run tracing as it generates too many log files.

Please suggest if there is any way to find that out.

Expiry value of the MQMD is set for each message by applications at MQPUT, and represents time-to-live - after which the message will not be delivered to any consuming application. MQ's internal garbage collection process will delete expired messages from queues.

CAEXPRY sets the maximum expiry value allowed for a queue or topic.

What Expiry value does the application specify?

The application can specify ReportOptions at MQPUT time that will create a ReportMessage when/if messages expire. These ReportMessages will be delivered to the ReplyToQueue; and the app will need to process these messages, and take appropriate action. Visit this site: https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_8.0.0/com.ibm.mq.ref.dev.doc/q097680_.htm . Look at MQRO_EXPIRATION.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
markt
PostPosted: Tue Aug 13, 2019 11:14 pm    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 502

Code:
amqsrua -m <qmgr> -c STATQ -t GET -o <qname>

will show expiry count for a particular queue as they happen.

As will qmgr statistics records if they are enabled. Use amqsmon to generate those reports.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Aug 14, 2019 4:33 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

Read this https://www.ibm.com/developerworks/community/blogs/messaging/entry/Statistics_published_to_the_system_topic_in_MQ_v9?lang=en

Search for "expired".

What release/version/... of MQ?
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
bobbee
PostPosted: Wed Sep 14, 2022 4:20 am    Post subject: Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 541
Location: Tampa

amqsrua -m <qmgr> -c STATQ -t GET -o <qname>

Is this the only way to get to this number?
When is this count reset?
Back to top
View user's profile Send private message Send e-mail AIM Address
Andyh
PostPosted: Thu Sep 15, 2022 12:40 am    Post subject: Reply with quote

Master

Joined: 29 Jul 2010
Posts: 237

The counters used by amqsrua are independant of those used by the MQ stats mechanism.
amqsrua is a sample program (as are all amqs prefixed programs) and as such the source code is shipped with the product and can be used as a starting point for your own monitoring programs.
amqsrua subscribes to the appropriate system topics to obtain the information to be reported. The queue manager publishes this information based upon internal monatonically increasing counters (as such, never reset). The same counters can be found in raw form in appropriate FDC's or in the data published by the amqldmpa service program.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to found out if some messages has expired
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.