Clearing WebSphere MQ shared memory resources

When a WebSphere MQ queue manager stops, it releases the IPC resources that it was using back to the system. There are two situations in which this might not happen automatically:

In these cases, the IPC resources are not release back to the system until you manually remove them, or restart (strmqm) or delete (dltmqm) the queue manager.

WebSphere MQ provides a utility to release System V IPC resources allocated by the queue manager but not freed, for one of the above reasons, back to the system.

To check and free any unused System V IPC resources do the following

  1. Log on as user mqm
  2. End the queue manager
  3. Type the following:
    On Solaris, HP-UX, and Linux:
    /opt/mqm/bin/amqiclen -x -m QMGR
    On AIX:
    /usr/mqm/bin/amqiclen -x -m QMGR

This command does not report any status. However, if some WebSphere MQ-allocated resources could not be freed because they were still in use, the return code is nonzero.