INFO: Interpreting File Names in the Storage Directory

Last reviewed: March 4, 1998
Article ID: Q174307
The information in this article applies to:
  • Microsoft Message Queue Server version 1.0

SUMMARY

This article describes the files in the Msmq\Storage and Msmq\Storage\Lqs directories.

This information is useful, for example, if you want to manually inspect the properties of a private queue or determine the disk space being used for the storage of messages.

MORE INFORMATION

Files in the Msmq\Storage Directory

File names with an .mq extension represent memory-mapped files in which messages are stored.

The .mq file name extension will be prefixed with a letter representing the type of messages it is tracking:

r - Express messages (Note that express messages are normally held in RAM,

    not disk. This file is used when there is no more available RAM.)

p - Persistent (recoverable) messages

j - Journal messages

l - Indexing bitmap for interpreting the journal or recoverable files.

NOTE: An .mq file does not identify or map to a unique queue. Messages from multiple queues may be held in one .mq file, or messages from a single queue may span multiple .mq files. A single message cannot span multiple files (hence the 4 MB limit in size).

The QMLog file is a history of all message queue processing. When the log is full, the oldest log data is overwritten as new entries are made.

To allow this continuous, cyclic writing to the QMlog, the state of receiving ordered messages and the state of all active transactions is periodically saved to the following files (respectively):

   MQInSeqs.lg1
   MQInSeqs.lg2
   MQTrans.lg1
   MQTrans.lg2

The .lg1 and .lg2 files are written to in an alternating pattern, to ensure that one of the pair will persist if the other is damaged during a write.

Files in the Msmq\Storage\Lqs Directory

Files in this directory are text files that describe properties of the local queues. They are accessed as an .ini file.

File names formatted nnnnnnnn.hhhhhhhh represent private queues. The nnnnnnnn portion is the queue number (included in the direct format name for the queue). The hhhhhhhh extension is a hash of the path name used for quick lookup.

File names formatted aaaaaaaabbbbccccddddeeeeeeeeeeee.hhhhhhhh represent local public queues. The 32 character portion of the file name to the left of the period is the GUID of the queue. The hhhhhhhh extension is again a hash of the path name.

REFERENCES

For more information, visit the Web site at:

   http://www.microsoft.com/msmq


Additional query words: filename filenames pathname
Keywords : kbenv MQGen
Version : WINNT:1.0
Platform : winnt
Issue type : kbinfo


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 4, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.