修复 mqconfig 参数以满足 OS 要求在 MQ 管理员 activity 的范围内

Is fixing the mqconfig parameters to suit the OS requirement is under the scope of an MQ Admin activity

正在修复 mqconfig 参数以满足 OS 要求(SunOS)在 MQ 管理员 activity 或 UNIX 的范围内。下面是我们的 mq 服务器的输出,它不符合 OS 要求。

MQ 版本为 7.1.0.6,OS 为 SunOS dbkpembf042 5.10 Generic_150400-46 sun4v sparc sun4v

$ /opt/mqm/bin/mqconfig -v 7.1
mqconfig: Analyzing Solaris 10 (sparc) settings for WebSphere MQ V7.1

mqconfig: You do not have a group.mqm project configured.  IBM recommends
          that you configure a group.mqm project with resource limits for
          WebSphere MQ, but you can run queue managers under other projects.
          If you plan to use a different project for WebSphere MQ, rerun
          mqconfig with the -p option to analyze that project.
mqconfig: No project given.  Analyzing all projects with queue manager
          activity (default).


Project default (): System V Semaphores
  max-sem-ids         13 of 128 sets             (10%)   IBM>=1024         FAIL

Project default (): System V Shared Memory
  max-shm-ids         143 of 128 sets            (111%)  IBM>=1024         FAIL
  max-shm-memory      68585259008 bytes                  IBM>=4294967296   PASS

Project default (): Other Settings
  max-file-descriptor 256 descriptors                    IBM>=10000        FAIL


Shell Default Options (mqm)
  ksh                 bgnice:off                         IBM:off           PASS

还有正确的参数是什么。

这取决于您的组织的设置方式。您需要 root 权限才能在 Solaris 中更改 /etc/project 文件。所以基本上这是 Unix 管理员的任务。由于它与 MQ 相关,您可以在有限的时间内获得 root 访问权限以更改 /etc/project 文件。


要设置正确的值,请将 /etc/project 文件更改为:

group.mqm:[gid*]:Websphere MQ:::process.max-file-descriptor=(basic,10000,deny);project.max-sem-ids(priv,1024);project-shm-ids=(priv,1024,deny)
如果您的 mqm 组如 /etc/group 文件中所定义,则

gid* 是组 ID。 您还可以根据需要设置更高的值。


在 IBM MQ v7.1 知识中心页面“Additional settings for installing on Solaris systems

中查找系统资源的详细描述

下面的示例将使用 Solaris projadd 命令将条目添加到 /etc/project 文件:

projadd -c "WebSphere MQ default settings" \
        -K "process.max-file-descriptor=(basic,10000,deny)" \
        -K "project.max-shm-ids=(priv,1024,deny)" \
        -K "project.max-sem-ids=(priv,1024,deny)" group.mqm