{"id":734,"date":"2016-06-07T21:52:42","date_gmt":"2016-06-07T16:22:42","guid":{"rendered":"http:\/\/www.middlewareprimer.com\/blog\/?p=734"},"modified":"2016-06-07T21:52:43","modified_gmt":"2016-06-07T16:22:43","slug":"websphere-mq-linux-system-settings","status":"publish","type":"post","link":"http:\/\/www.middlewareprimer.com\/blog\/2016\/06\/07\/websphere-mq-linux-system-settings\/","title":{"rendered":"WebSphere MQ Linux system settings"},"content":{"rendered":"<p>WebSphere MQ Linux system settings needs to be setup before starting the Installation process. These are basically additional settings that has to be done Linux machines for setting the hard and soft limit values. These values are very essential in terms of Message Queue processing.<\/p>\n<p>Following information is taken from the new link of Knowledge center for Message Queue. Link for reference here,<\/p>\n<p><a href=\"http:\/\/www.ibm.com\/support\/knowledgecenter\/en\/SSFKSJ_7.5.0\/com.ibm.mq.ins.doc\/q008550_.htm\" target=\"_blank\">http:\/\/www.ibm.com\/support\/knowledgecenter\/en\/SSFKSJ_7.5.0\/com.ibm.mq.ins.doc\/q008550_.htm<\/a><\/p>\n<p>1. Kernel configuration<\/p>\n<p>2. Maximum open files<\/p>\n<p>3. Maximum processes<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>1. Kernel configuration<\/strong><\/span><\/p>\n<p>The minimum configuration for WebSphere MQ for these resources is as follows:<\/p>\n<p>kernel.shmmni = 4096<br \/>\nkernel.shmall = 2097152<br \/>\nkernel.shmmax = 268435456<br \/>\nkernel.sem = 500 256000 250 1024<br \/>\nfs.file-max = 524288<br \/>\nkernel.pid-max = 120000<br \/>\nkernel.threads-max = 48000<\/p>\n<p>To view the kernel parameters for your system, enter the following commands:<br \/>\ncat \/proc\/sys\/kernel\/shmmni<br \/>\ncat \/proc\/sys\/kernel\/shmall<br \/>\ncat \/proc\/sys\/kernel\/shmmax<br \/>\ncat \/proc\/sys\/kernel\/sem<br \/>\ncat \/proc\/sys\/fs\/file-max<\/p>\n<p>To load these sysctl values immediately, enter the following command: sysctl -p<br \/>\nIf you do not issue the sysctl -p command, the new values are loaded when the system is rebooted.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>2. Maximum open files<\/strong><\/span><br \/>\nIf the system is heavily loaded, you might need to increase the maximum possible number of open files. If your distribution supports the proc file system you can query the current limit by issuing the following command:<\/p>\n<p>cat \/proc\/sys\/fs\/file-max<\/p>\n<p>To report on the current maximum, and in-use, number of file descriptors for your system, enter the following commands:<br \/>\n\/sbin\/sysctl fs.file-max<br \/>\n\/sbin\/sysctl fs.file-nr<\/p>\n<p>For a standard WebSphere MQ queue manager, set the nofile value for the mqm user to 10240 or more. To set the maximum number of open file descriptors for processes running under the mqm user, add the following information to the \/etc\/security\/limits.conf file:<br \/>\nmqm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 hard\u00a0\u00a0\u00a0 nofile\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10240<br \/>\nmqm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 soft\u00a0\u00a0\u00a0 nofile\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10240<\/p>\n<p>Use command, ulimit -n to check the values that are configured for open files.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>3. Maximum processes<\/strong><\/span><\/p>\n<p>A running WebSphere MQ queue manager consists of a number of thread programs. Each connected application increases the number of threads running in the queue manager processes. It is normal for an operating system to limit the maximum number of processes that a user runs. The limit prevents operating system failures due to an individual user or subsystem creating too many processes. You must ensure that the maximum number of processes that the mqm user is allowed to run is sufficient. The number of processes must include the number of channels and applications that connect to the queue manager.<br \/>\nThe following calculation is useful when determining the number of processes for the mqm user:<br \/>\nmaximum processes = 2048 + maximum WebSphere MQ connections\u00a0 + maximum WebSphere MQ channels<\/p>\n<p>You can configure the maximum number of processes for the mqm user as follows:<br \/>\nmqm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 hard\u00a0\u00a0\u00a0 nproc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4096<br \/>\nmqm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 soft\u00a0\u00a0\u00a0 nproc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 4096<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WebSphere MQ Linux system settings needs to be setup before starting the Installation process. These are basically additional settings that has to be done Linux machines for setting the hard and soft limit values. These values are very essential in terms of Message Queue processing. Following information is taken from the new link of Knowledge [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[202,203],"class_list":["post-734","post","type-post","status-publish","format-standard","hentry","category-ibm-integration-bus","tag-mq-v7-5","tag-open-files"],"_links":{"self":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=734"}],"version-history":[{"count":4,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/734\/revisions"}],"predecessor-version":[{"id":740,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/posts\/734\/revisions\/740"}],"wp:attachment":[{"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=734"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.middlewareprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}