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 » Is there a way to flush non-persistent messages to disk

Post new topic  Reply to topic
 Is there a way to flush non-persistent messages to disk « View previous topic :: View next topic » 
Author Message
Boyd
PostPosted: Tue Jun 03, 2014 9:07 am    Post subject: Is there a way to flush non-persistent messages to disk Reply with quote

Novice

Joined: 06 Apr 2014
Posts: 16

I did an amqsput to a queue recently and then inspected the queue. I noticed that no such message was on the physical queue. Since I can amqsget the message, the message has been placed on the buffer, but not the disk.

I have been asked to vie wthe physical queue to see the message within the file. However, I can not perform this. I can not do a QM restart, as this would empty the current non-persistent messages.

Is there a way to flush the non-persistent message to the disk, so that I can view it physically (hex editor) within the queue
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Jun 03, 2014 9:08 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Why on earth would you need to do this? I haven't needed to in the last 17 or so years I've been using MQ.
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Tue Jun 03, 2014 9:36 am    Post subject: Reply with quote

Grand Master

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

Is this for security purposes ? ie. you want to see the exact format of a message should it ever make it on disk.

Well, the easiest thing to do is probably put a large message or lots of little ones. Each MQ queue has a non-persistent buffer space and until that has been used up the message won't spill to disk. So, all you need to do is fill that up. The default size has changed in the various releases I believe, or you can set it using DefaultQBufferSize. However, it's probably around 64K.

Cheers,
Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
tczielke
PostPosted: Tue Jun 03, 2014 9:38 am    Post subject: Reply with quote

Guardian

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

If you want to byte inspect the messages as they flow in and out of the queue manager, a strmqtrc with the "-d all" might be more helpful. You can see the entire message in hex in the trace.
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 » Is there a way to flush non-persistent messages to disk
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.