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 » When does a QM free up disk space for an empty queue

Post new topic  Reply to topic
 When does a QM free up disk space for an empty queue « View previous topic :: View next topic » 
Author Message
PeterPotkay
PostPosted: Wed Nov 26, 2008 10:58 am    Post subject: When does a QM free up disk space for an empty queue Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

This question comes up every so often. Came across the below and figured I'd post it here, for the people that bother to use the search button:

http://www-01.ibm.com/support/docview.wss?rs=171&context=SSFKSJ&context=SSEP7X&dc=DB560&dc=DB520&uid=swg21173356&loc=en_US&cs=utf-8&lang=en

Quote:

Question
When does MQ reclaim storage allocated to a queue?

Cause
Your WebSphere MQ queue is loaded with messages and then the messages are removed, however the storage allocated to the queue is not released. The queue keeps its current size in regards to disk space.

Answer
Only after a queue is empty, and has not been opened by an application for several checkpoints, will the Q_Manager release the disk space.

This is working as designed. It is expensive to reserve disk space for a queue. As a result, and for performance reasons, MQ queue managers are slow to release disk space.

_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed Nov 26, 2008 5:34 pm    Post subject: Reply with quote

Jedi Knight

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

Quote:
This question comes up every so often


Yeah, such as http://www.mqseries.net/phpBB2/viewtopic.php?t=23858

Generally, MQ returns file space to as its internal scheduling permits. A couple of circumstances that help with this are:

When the last user closes an empty queue (CURDEPTH=IPPROCS=OPPROCS=0), all except the q file header is released.

When a checkpoint or media image is taken or the queue manager is stopped and restarted, empty space at the end of the file is released, or the file is compacted.
_________________
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 » When does a QM free up disk space for an empty queue
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.