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 » IBM MQ Installation/Configuration Support » Log everything!

Post new topic  Reply to topic
 Log everything! « View previous topic :: View next topic » 
Author Message
Picard
PostPosted: Wed Apr 18, 2007 10:54 pm    Post subject: Log everything! Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Wed Apr 18, 2007 11:13 pm    Post subject: Re: Log everything! Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Trace logs everything.

Switch it on.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Thu Apr 19, 2007 12:03 am    Post subject: Re: Log everything! Reply with quote

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
View user's profile Send private message
Picard
PostPosted: Thu Apr 19, 2007 11:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Fri Apr 20, 2007 12:09 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Fri Apr 20, 2007 3:32 am    Post subject: Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Fri Apr 20, 2007 3:40 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Fri Apr 20, 2007 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Log everything!
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.