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 remove the Unused Messsages from the RECVQ Queue

Post new topic  Reply to topic Goto page 1, 2  Next
 How to remove the Unused Messsages from the RECVQ Queue « View previous topic :: View next topic » 
Author Message
bhaskarreddy
PostPosted: Fri May 24, 2013 6:50 am    Post subject: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Apprentice

Joined: 24 May 2013
Posts: 27

Hi,

My RECVQ Size is 10000, If messages size reaches 8000, I have to remove ununsed messages, Is there any possible way to get the script to remove those unused messages from RECVQ,


Thank you
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri May 24, 2013 6:57 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

How do you define and identify an "unused" message?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bhaskarreddy
PostPosted: Fri May 24, 2013 7:06 am    Post subject: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Apprentice

Joined: 24 May 2013
Posts: 27

Sometime we had connectivity issues with mainframes, that time all Messages in RECVQ, It is reaching 10000 Messages in everday morning, I am thinking if we reaches 8000 messages to remove old Messages using the script.
Back to top
View user's profile Send private message
bhaskarreddy
PostPosted: Fri May 24, 2013 7:08 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Apprentice

Joined: 24 May 2013
Posts: 27

if the user exists from machine, no need to send back those message to user, Based on timestamp can we remove those messages ?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 24, 2013 7:09 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

bhaskarreddy wrote:
Sometime we had connectivity issues with mainframes, that time all Messages in RECVQ, It is reaching 10000 Messages in everday morning, I am thinking if we reaches 8000 messages to remove old Messages using the script.


What is an "old" message? Is it messages that the application says contain data that is, for example, "green"? Is it messages that the application says are not persistent?

The easiest way to cause lots of serious production issues is for an mq administrator to start discarding messages with no understanding of what those messages mean.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri May 24, 2013 7:10 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bhaskarreddy wrote:
if the user exists from machine, no need to send back those message to user, Based on timestamp can we remove those messages ?


If you don't want those messages if they sit on the queue for more than a given period of time "t" then why not have the sending application set them to expire after "t+30" seconds? This is the normal pattern for a reply message and these sound like they're replies to a user.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bhaskarreddy
PostPosted: Fri May 24, 2013 7:20 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Apprentice

Joined: 24 May 2013
Posts: 27

Sometimes we are unexpectly mainframes went down without notice, the users is trying to pull the data, that time the messages stored in the RECVQ, Because of mainframe down, early morning I have cleaned up those messages and restart the MQ. Is there anyway to avoid this type of problems.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri May 24, 2013 7:30 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bhaskarreddy wrote:
Is there anyway to avoid this type of problems.


Yes. Have the sending application set message expiry on any message which has a limited shelf life.

I think I mentioned this already.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri May 24, 2013 7:31 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Poobah

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

bhaskarreddy wrote:
Because of mainframe down, early morning I have cleaned up those messages and restart the MQ. Is there anyway to avoid this type of problems.

Why did you restart the queue manager? What technical reason? For example, did a queue reach maximum depth? If so, increase maxdepth.

Were the messages you cleaned up (deleted?) worth $1, $10, $1,000,000?
_________________
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
bhaskarreddy
PostPosted: Fri May 24, 2013 9:21 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Apprentice

Joined: 24 May 2013
Posts: 27

our architecture frontend server one queuemanager ( sendq and recq )backend server one queuemanger (sendq and recq), frontend applicaiton put the message sendq and after recive the message backend it will process the application ( to connect mainframes, or db2 or other servers more than 10 connections ), backend some time it is down we are not getting proper notifications, that time the messages will be in RECVQ, After connections is up, we are restarting applicaitons and queuemanagers ( some times queue depth may full), this scenarios i am thinking if thrashold reaches 80%, thinking to remove those messages. Our application doesn't know mainframes is down or not. if you setup the message expiry, does it store the message in RECVQ?, If we increase queue size but there is no use this type of scenario.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri May 24, 2013 9:43 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Poobah

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

bhaskarreddy wrote:
If we increase queue size but there is no use this type of scenario.

Are you saying that you shut down the qmgr, and then restarted it because a queue filled up? Why? What did cycling the qmgr accomplish? Please be specific.

Alter the queue to increase maxdepth. Your applications must contemplate common outages like these.
_________________
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
bhaskarreddy
PostPosted: Fri May 24, 2013 9:46 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Apprentice

Joined: 24 May 2013
Posts: 27

We can Increase the maxium queue depth, After that We are getting "Apparent Deadlock " message, that time we are restarting Frontend and backend applications and queuemanagers.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri May 24, 2013 10:00 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Poobah

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

Again, I asked you specific questions, and you did not answer them.

bruce2359 wrote:
Are you saying that you shut down the qmgr, and then restarted it because a queue filled up? Why? What did cycling the qmgr accomplish? Please be specific.

When you restarted the qmgr, were the messages magically gone from the queue?

What is an "Apparent Deadlock" message? What application is issuing it?
_________________
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
Vitor
PostPosted: Fri May 24, 2013 10:08 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bhaskarreddy wrote:
if you setup the message expiry, does it store the message in RECVQ?,


Why not look up message expiry in the product documentation and see?

bhaskarreddy wrote:
If we increase queue size but there is no use this type of scenario.


The only thing increased max depth gives you here is more time before it fills up.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri May 24, 2013 10:25 am    Post subject: Re: How to remove the Unused Messsages from the RECVQ Queue Reply with quote

Poobah

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

Vitor wrote:
The only thing increased max depth gives you here is more time before it fills up.

Or, it gives the other end of the channel an opportunity come back to life in the short-term.

Good application design needs to contemplate outages like this.
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » How to remove the Unused Messsages from the RECVQ Queue
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.