2 Replies Latest reply on Oct 14, 2014 7:41 AM by vimodchandra

    How to control the file size of MQ log file in JBoss with IBM MQ integration?

    vimodchandra

      Hi,

      I have JBOSS 5.1 EAP version which is integrated with IBM MQ 'com.ibm.mq.wmq.jmsra-7.0.1.1.6.rar' resource adapter. I can see one log file 'mqjms.log' is getting created in my JBOSS home directory when I start my server and receiving messages from IBM MQ. Where is the location of this file and the name of this file configured in my JBOSS configuration ? I need to disable or control the size of this log file bcause sometimes it grows up to a big size file! Someone please help..

        • 1. Re: How to control the file size of MQ log file in JBoss with IBM MQ integration?
          dgrove_redhat.com

          IBM MQ logging uses the IBM common services for logging.  You can set java JVM properties:


          "com.ibm.msg.client.commonservices.trace.status" value="OFF"

          "com.ibm.msg.client.commonservices.trace.level" value="0"

          "com.ibm.msg.client.commonservices.trace.append" value="true"

          "com.ibm.msg.client.commonservices.trace.startup" value="true"

          "com.ibm.msg.client.commonservices.trace.maxBytes" value="-1"

          "com.ibm.msg.client.commonservices.trace.limit" value="2097152"

          "com.ibm.msg.client.commonservices.trace.count" value="1"

          "com.ibm.msg.client.commonservices.trace.standalone" value="true"

          "com.ibm.msg.client.commonservices.trace.errorStream" value="${jboss.server.log.dir}/wmq-trace-error.log"

          "com.ibm.msg.client.commonservices.trace.outputName" value="${jboss.server.log.dir}/wmq-trace.log"

          "com.ibm.msg.client.commonservices.log.outputName" value="${jboss.server.log.dir}/wmq.log"

          "com.ibm.msg.client.commonservices.log.status" value="ON"

          "com.ibm.msg.client.commonservices.log.maxBytes" value="-1"

          "com.ibm.msg.client.commonservices.log.limit" value="2097152"

          "com.ibm.msg.client.commonservices.log.count" value="1"

          "com.ibm.msg.client.commonservices.log.append" value="true"

          "com.ibm.msg.client.commonservices.ffst.suppress" value="-1"

           

          i.e, in you run.conf file

           

          -Dcom.ibm.msg.client.commonservices.log.count=5 -Dcom.ibm.msg.client.commonservices.log.maxBytes=1000000

           

           

          Hope that helps,

           

          Doug

          • 2. Re: How to control the file size of MQ log file in JBoss with IBM MQ integration?
            vimodchandra

            It worked ! Thanks Doug ....