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 » Queue Messages Auto Truncated

Post new topic  Reply to topic
 Queue Messages Auto Truncated « View previous topic :: View next topic » 
Author Message
EricL
PostPosted: Fri Oct 10, 2014 10:48 am    Post subject: Queue Messages Auto Truncated Reply with quote

Centurion

Joined: 10 Oct 2014
Posts: 102

Hi Guys,

We have a queue, created on WebSphere MQ V6, and MQ installed on AIX.

This Q is used to log whatever messages processed by application in case there is need to retrieve the message in furure.

These days we noticed that the messages from the Q trancated daily without any reason, we don't have any script doing clean job, and we firstly found out that "/var/mqm/errors" was 100% in use, so we cleared logs under "/var/mqm/errors" and usage drop to 1%.

But the messages kept on losing, and the Q depth changed to 0 after 1 0r 2 days, can anyone from forum provide any advice on this ?

Thanks !
EricL
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Fri Oct 10, 2014 10:50 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

How do the messages get on the queue in the first place ? Is it possible that they are now being put with a finite expiry value ?
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
EricL
PostPosted: Fri Oct 10, 2014 11:03 am    Post subject: Reply with quote

Centurion

Joined: 10 Oct 2014
Posts: 102

Thanks Paul for your prompt response.

Don't think finite expiry values was added, we have similiar env setting on testing/qa/prod, and messages gone only happens on testing
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Fri Oct 10, 2014 11:12 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

  1. MQ V6 is EOS (long time ago), upgrade to MQ V7.5
  2. Did you separate your file systems in a meaningful way?
    1. /var/mqm -for everything but the Qmgr and logs
    2. /opt/mqm -for the install (might be /usr/mqm)
    3. For each Qmgr
      1. /var/mqm/qmgr/<QmgrName>
      2. /var/mqm/log/<QmgrName> -set your primary logs to fill this to 70%, secondary the rest of the way

You should only need to clear FDCs from /var/mqm/errors and that is after you have resolved whatever the problem was.

If you don't know how big the file systems should be, default to 4GB and adjust as needed.
Back to top
View user's profile Send private message AIM Address
tczielke
PostPosted: Fri Oct 10, 2014 5:13 pm    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 941
Location: Illinois, USA

Hi EricL,

Queue accounting and statistics could be helpful for tracking if an application is getting these messages from this Q. Also, if there are messages currently on this Q, have you used a tool like amqsbcg to confirm that the expiry is set to unlimited?
Back to top
View user's profile Send private message
sumit
PostPosted: Sat Oct 11, 2014 6:08 pm    Post subject: Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

Please also check if the messages are persistent. And if queue manager restart is removing the non-persistent messages.

What happen to the messages sitting in this queue? Any application which read them? Was that application started and read all the messages?
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
EricL
PostPosted: Tue Oct 14, 2014 8:11 am    Post subject: Reply with quote

Centurion

Joined: 10 Oct 2014
Posts: 102

Thanks for all the response.

I'd like to provide more info here:

1. The file systems separated in meaningful way:

/var/mqm for qmgrs and log while /usr/mqm is for MQ installation

2. As I mentioned before, the Q is just used as a log for us to retrieve(manually) what messages have been received and processed by application, no applications use this Q.

3. The Q is persistent

Thanks
Back to top
View user's profile Send private message
tczielke
PostPosted: Tue Oct 14, 2014 8:31 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 941
Location: Illinois, USA

Is it possible that there is some process/application that you are not aware of that is getting these messages from Q? If so, the queue accounting and statistics would help confirm/dispute that possibility.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 14, 2014 9:05 am    Post subject: Reply with quote

Grand High Poobah

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

EricL wrote:
3. The Q is persistent


And once again, I'll repeat this old saw:

Just because the default on the queue is "persistent", that's no guarantee the messages are. Setting DEFPSIST(YES) on a queue does nothing to set the persistence of a given message. The persistence of a message is determined by the putting application, which may or may not decide to use the default supplied on the queue definition.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
EricL
PostPosted: Tue Oct 14, 2014 11:19 am    Post subject: Reply with quote

Centurion

Joined: 10 Oct 2014
Posts: 102

Hi Guys,

Do understand what you guys mean to, the most interesting thing is we have Prod/QA/Testing environments installed and configured with same application and software, but messages auto gone only happen in testing env, super tricky things...

Thanks,
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 14, 2014 11:26 am    Post subject: Reply with quote

Grand High Poobah

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

EricL wrote:
we have Prod/QA/Testing environments installed and configured with same application and software, but messages auto gone only happen in testing env


Again with the old saws (equally obvious as the last one I posted):

- the same application in Prod/QA/Testing typically has 3 different configurations even if the code is identical; for instance different URLs for end points. Such configurations can be used to control (for example) message persistence and expiry values

- Prod/QA/Testing are seldom identical; for instance Testing often has fewer resources allocated to it and (for example) queue managers can be restarted on a whim rather than after a convoluted change control process

- Testing enviroments are often reset so that tests can start from a known base line. This can include (for example) clearing message queues and truncating database tables.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Oct 14, 2014 11:30 am    Post subject: Reply with quote

Grand High Poobah

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

As has been suggested further up this thread, if you want to know what's clearing these messages out enable the accounting and statistics. And if you're certain that the messages in the queue are persistent (as distinct from the queue having default persistence) and the expiry is unlimited then the next option is something is clearing them out, either by reading them or via an administrative command.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Tue Oct 14, 2014 2:34 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

You could try get disabling the Q and see if anything fails.
_________________
Glenn
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Queue Messages Auto Truncated
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.