Author |
Message
|
Picard |
Posted: Wed Apr 18, 2007 10:54 pm Post subject: Log everything! |
|
|
Novice
Joined: 07 Dec 2006 Posts: 13
|
Hello
Is it possible to configure MQ to log everything?
And by everything I mean every single read/write of transactions from/to the queues?
I realise this would cause the logfiles to grow very fast (linear logging), but I'd need to have something like this to troubleshoot a problem I'm having.
regards |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Wed Apr 18, 2007 11:13 pm Post subject: Re: Log everything! |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
Trace logs everything.
Switch it on. _________________ Marcin |
|
Back to top |
|
 |
Vitor |
Posted: Thu Apr 19, 2007 12:03 am Post subject: Re: Log everything! |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Picard wrote: |
I realise this would cause the logfiles to grow very fast (linear logging), but I'd need to have something like this to troubleshoot a problem I'm having.
|
Note that there's a difference between the (linear) logging used by the queue manager to maintain message persistence, and the error logs the trace will be written to. I mention this in case you're on Unix and have them mounted in different files systems. You're right about the files growing very fast and it would be slightly embarassing if the linear logs had bags of space but the error logs ran their section out of disc.....
In an unrelated question, what problem are you having that requires such desperate action? I ask solely from morbid curiosity. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Picard |
Posted: Thu Apr 19, 2007 11:30 pm Post subject: |
|
|
Novice
Joined: 07 Dec 2006 Posts: 13
|
Thanks for the tips about trace. I've looked at it and you apparently can do selective logging in the trace aswell (if you want to) so I'm sure this will help me solve the problem.
Vitor, the problem I'm having is that we have an application that sends messages through MQ, but when they arrive there are always duplicates of every message. The applicationpeople swears that it's not their application that sends everything twice, but instead blames MQ.
I don't know what causes this, but I don't believe it is MQ, so I'd like to be able to have some logs to show them.
regards |
|
Back to top |
|
 |
Vitor |
Posted: Fri Apr 20, 2007 12:09 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Picard wrote: |
The applicationpeople swears that it's not their application that sends everything twice, but instead blames MQ.
|
Isn't that always the response?
Unless you've got a very badly behaved copy of mirrorq installed somewhere (and that's not the sort of thing you'd be unaware of) or some really, really funky pub/sub I agree it's unlikely to be MQ.
I'd start by asking how they're managing transactions and buffer contents. Well, no, actually I'd start by hitting them round the head with the hardcopy trace log but that's just me.....
Good luck with your problem. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Apr 20, 2007 3:32 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Are you sure there are 2x messages on the queue?
It's equally likely there's a bad receiving program that reports the message twice as there is a bad sending program that sends it twice. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri Apr 20, 2007 3:40 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
jefflowrey wrote: |
Are you sure there are 2x messages on the queue?
It's equally likely there's a bad receiving program that reports the message twice as there is a bad sending program that sends it twice. |
My simple test scenario
-Stop receiver program.
-Ask sender side to send 1 message.
- check receiver program input queue (1 message sender is ok, 2 messages sender is not ok= break)
If you see 1 message in queue
-Start receiver program and see results. _________________ Marcin |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Apr 20, 2007 12:59 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Are you sure you are not in a pub/sub scenario and the queue is subscribed twice ??
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|