Author |
Message
|
qmgr |
Posted: Wed Jul 07, 2010 10:58 am Post subject: MQ recycle |
|
|
Novice
Joined: 24 Feb 2010 Posts: 13
|
Hi,
I am using MQ ver 6.0.2.7 on SunOS. i am curious to know when was last time MQ was recycled on this. I did a dis qmgr command and found some timestamp on CRDATE and CRTIME. Is this the info. for MQ recycle? if not what is this? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Jul 07, 2010 10:59 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
CReateDATE and CReateTIME _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
qmgr |
Posted: Wed Jul 07, 2010 11:05 am Post subject: |
|
|
Novice
Joined: 24 Feb 2010 Posts: 13
|
PeterPotkay wrote: |
CReateDATE and CReateTIME |
Thanks for your reply. how would i know when was the last time MQ was recycled on the box? |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 07, 2010 11:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
qmgr wrote: |
how would i know when was the last time MQ was recycled on the box? |
Queue manager logs _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Jul 07, 2010 12:57 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
Not the message logs, the other logs. _________________ 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 |
|
 |
Vitor |
Posted: Wed Jul 07, 2010 1:11 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
Not the message logs, the other logs. |
Yes, the ones you can read.
No useful information in the ones you can't. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ramires |
Posted: Wed Jul 07, 2010 1:12 pm Post subject: |
|
|
Knight
Joined: 24 Jun 2001 Posts: 523 Location: Portugal - Lisboa
|
one more suggestion:
When the queue manager starts, a message is written to SYSTEM.ADMIN.QMGR.EVENT queue, look to the timestamp on that message.
Regards |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Jul 07, 2010 1:35 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
Yes, the ones you can read.
No useful information in the ones you can't. |
But how many times have we sent them to the logs, only to have them look at the ones they can't read? _________________ 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 |
|
 |
gbaddeley |
Posted: Wed Jul 07, 2010 3:50 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Vitor wrote: |
qmgr wrote: |
how would i know when was the last time MQ was recycled on the box? |
Queue manager logs |
The qmgr error logs do not reliably contain entries that indicate when it was last recycled because the logs may have rolled over. _________________ Glenn |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Jul 07, 2010 3:57 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
Good point. For midrange WMQ (Windoze and UNIX), the product only allows for 3 iterations of qmgr logs. Thus, on the 4th cycle, the oldest log is overwritten. _________________ 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 |
|
 |
PeterPotkay |
Posted: Wed Jul 07, 2010 4:40 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
ramires wrote: |
one more suggestion:
When the queue manager starts, a message is written to SYSTEM.ADMIN.QMGR.EVENT queue, look to the timestamp on that message.
Regards |
Only if Start/Stop Events are turned on for the Queue Manager, and then only if nothing else has consumed the Start Event message. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Jul 07, 2010 4:44 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9470 Location: US: west coast, almost. Otherwise, enroute.
|
...and those other reasons (queue full, put-inhibited, ...) _________________ 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 |
|
 |
ramires |
Posted: Thu Jul 08, 2010 2:05 am Post subject: |
|
|
Knight
Joined: 24 Jun 2001 Posts: 523 Location: Portugal - Lisboa
|
The qmgr clears SYSTEM.ADMIN.QMGR.EVENT when it starts. But if the queue is inibithed or being consumed, there is no msg there to check timestamp.  |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Jul 08, 2010 4:51 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
ramires wrote: |
The qmgr clears SYSTEM.ADMIN.QMGR.EVENT when it starts. |
No, the QM doesn't clear this queue.
But if there are non persistent messages in the queue and the NP Class of the queue is set to normal, those message will go away upon a QM restart, same as any other queue. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
ramires |
Posted: Thu Jul 08, 2010 6:19 am Post subject: |
|
|
Knight
Joined: 24 Jun 2001 Posts: 523 Location: Portugal - Lisboa
|
ahh, ok , thanks! I forgot the persistence existence  |
|
Back to top |
|
 |
|