Skip to content

Instantly share code, notes, and snippets.

@loinguyenduc101
Last active February 19, 2017 09:11
Show Gist options
  • Save loinguyenduc101/f980f7a94bfd2b6188aaaf7d76e0855e to your computer and use it in GitHub Desktop.
Save loinguyenduc101/f980f7a94bfd2b6188aaaf7d76e0855e to your computer and use it in GitHub Desktop.
IBM MQ Tunning
#################################### V8.0 ###############################
##### sử dụng user thuộc mqm group để thao tác toàn bộ các lệnh #########
#1# validate config của MQ
#mqconfig -v 8.0
or
#MQ_CONFIG_OPTIONS="-v 8.0 -p group.mqm"
# . ./mqconfig
mqconfig: V3.7 analyzing CentOS Linux release 7.2.1511 (Core) settings
for WebSphere MQ V8.0
System V Semaphores
semmsl (sem:1) 250 semaphores IBM>=32 PASS
System Settings
file-max 1088 of 97322 files (1%) IBM>=524288 FAIL
Current User Limits (loind)
nofile (-Hn) 4096 files IBM>=10240 FAIL
nproc (-Su) 13 of 3829 processes (0%) IBM>=4096 WARN
NOTE:
@bug file-max :
#vi /etc/sysctl.conf
add end of file : fs.file-max = 524288
or #sysctl -w fs.file-max=524288
reload config
#sysctl -p
@bug nofile
#vi /etc/security/limits.conf
add end of file
mqm hard nofile 10240
mqm soft nofile 10240
#sysctl -p
login vào mqm user và check giá trị nofile đã config và load
#ulimit -n
@bug nproc
fix tương tự nofile :
mqm hard nproc 4096
mqm soft nproc 4096
#2#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment