当前位置: 首页 > news >正文

IBM WebSphere Message Queue MQ修改最大通道数

[修改最大通道数

一、概述

缺省MQ允许运行的最大通道个数为100。

当最大通道连接数达到上限,就会报出“AMQ9513 Maximum number of channels reached”错误。

对于移动的业务场景,通常的情况,通道数100是不够使用的,建议根据业务压力测试调大。

二、实施步骤

  1. 配置/var/mqm/qmgrs/QMGR/qm.ini,新增以下内容后保存

CHANNELS:

   MaxChannels=600

MaxActiveChannels=600 

            

未改动的qm.ini文件:

#*******************************************************************#

#* Module Name: qm.ini                                             *#

#* Type       : WebSphere MQ queue manager configuration file      *#

#  Function   : Define the configuration of a single queue manager *#

#*                                                                 *#

#*******************************************************************#

#* Notes      :                                                    *#

#* 1) This file defines the configuration of the queue manager     *#

#*                                                                 *#

#*******************************************************************#

ExitPath:

   ExitsDefaultPath=/var/mqm/exits

   ExitsDefaultPath64=/var/mqm/exits64

#*                                                                 *#

#*                                                                 *#

Log:

   LogPrimaryFiles=30

   LogSecondaryFiles=20

   LogFilePages=4096

   LogType=CIRCULAR

   LogBufferPages=0

   LogPath=/var/mqm/log/QM_MEPG/

   LogWriteIntegrity=TripleWrite

Service:

   Name=AuthorizationService

   EntryPoints=14

ServiceComponent:

   Service=AuthorizationService

   Name=MQSeries.UNIX.auth.service

   Module=amqzfu

   ComponentDataSize=0

TCP:

   SndBuffSize=0

   RcvBuffSize=0

   RcvSndBuffSize=0

   RcvRcvBuffSize=0

   ClntSndBuffSize=0

   ClntRcvBuffSize=0

   SvrSndBuffSize=0

   SvrRcvBuffSize=0

~

改动后的qm.ini文件:

#*******************************************************************#

#* Module Name: qm.ini                                             *#

#* Type       : WebSphere MQ queue manager configuration file      *#

#  Function   : Define the configuration of a single queue manager *#

#*                                                                 *#

#*******************************************************************#

#* Notes      :                                                    *#

#* 1) This file defines the configuration of the queue manager     *#

#*                                                                 *#

#*******************************************************************#

ExitPath:

   ExitsDefaultPath=/var/mqm/exits

   ExitsDefaultPath64=/var/mqm/exits64

#*                                                                 *#

#*                                                                 *#

Log:

   LogPrimaryFiles=30

   LogSecondaryFiles=20

   LogFilePages=4096

   LogType=CIRCULAR

   LogBufferPages=0

   LogPath=/var/mqm/log/QM_MEPG/

   LogWriteIntegrity=TripleWrite

Service:

   Name=AuthorizationService

   EntryPoints=14

ServiceComponent:

   Service=AuthorizationService

   Name=MQSeries.UNIX.auth.service

   Module=amqzfu

   ComponentDataSize=0

TCP:

   SndBuffSize=0

   RcvBuffSize=0

   RcvSndBuffSize=0

   RcvRcvBuffSize=0

   ClntSndBuffSize=0

   ClntRcvBuffSize=0

   SvrSndBuffSize=0

   SvrRcvBuffSize=0

CHANNELS:

   MaxChannels=600

   MaxActiveChannels=600  

2.停止应用。

3.停止MQ队列管理器。

        endmqm  –i  QMGR

4.启动MQ队列管理器(使修改生效)。

            strmqm  QMGR

5.启动应用。

相关文章:

  • 【第十六篇】Camunda系列-动态表单
  • 【电子学会】2022年12月图形化四级 -- 简易抗疫物资管理系统
  • 5555555
  • 二十三、备忘录模式 ( Memento Pattern )
  • Spring AOP【统一异常处理与统一数据格式封装】
  • 数据库自愈
  • 计算机 - - - 局域网共享文件夹,局域网传输文件(待完善)
  • 微分方程的特征值解法:斯图姆-刘维尔方程
  • Allegro如何快速打开和关闭层面操作指导
  • 【科研试剂】16-Heptadecynoic acid,93813-16-2,16-庚二酸
  • 尚硅谷谷粒音乐项目学习笔记及答疑解惑(1-20集)
  • 基于springboot,vue影院订票系统
  • 【1814. 统计一个数组中好对子的数目】
  • 第18章_JDBC
  • 未雨绸缪·鸟巢设计与软件架构的共性思考
  • MySQL基础命令表及补充说明
  • 吴恩达机器学习课程笔记:模型描述、假设函数、代价函数
  • C 程序设计教程(17)—— 循环结构程序设计练习题
  • IO流的学习
  • 除夕New Year Eve,祝大家团圆幸福!