Author |
Message
|
maxy_14in |
Posted: Thu Mar 18, 2010 12:34 pm Post subject: Purge message from a queue |
|
|
Apprentice
Joined: 07 Nov 2008 Posts: 43
|
We have a issue, when we are testing they load the queue with 1000 msgs at a time. How to clear the queue automatically for every hour ?
we faced the issue last week, so we increased the Qdepth and manually cleared the msgs every hour.
Would like to have sum other way to do it ... help is appretiated.
Our system is working on SOLARIS. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Mar 18, 2010 1:19 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Set up a cron job _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Mar 18, 2010 8:52 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Vitor wrote: |
Set up a cron job |
Or a scheduled job (windows).
And run a program that gets the messages until the queue is empty.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
harish_td |
Posted: Thu Mar 18, 2010 10:23 pm Post subject: |
|
|
Master
Joined: 13 Feb 2006 Posts: 236
|
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Mar 19, 2010 3:48 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Set Expiry on the messages. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
maxy_14in |
Posted: Fri Mar 19, 2010 5:33 pm Post subject: |
|
|
Apprentice
Joined: 07 Nov 2008 Posts: 43
|
the other end is not consuming the messages its just a load test. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Sat Mar 20, 2010 3:56 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
That's fine. All answers are still valid. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|