5 Replies Latest reply on Apr 23, 2016 4:25 AM by whitingjr

    Artemis jms queue statistics not incrementing.

    whitingjr

      Hi,

      I am using Wildfly 10 Final to run a JEE application that uses MDBs.

       

      To monitor the system I am trying to inspect the jms queue statistics. But I am not seeing the statistics getting incremented. My system has been running for 10 minutes already. So the message-count values should be in the thousands already. This is my Artemis subsystem configuration:

       

      <subsystem xmlns="urn:jboss:domain:messaging-activemq:1.0">

                      <server name="artemis" thread-pool-max-size="14" scheduled-thread-pool-max-size="2">

                          <security enabled="false"/>

                          <journal compact-min-files="40" compact-percentage="40" min-files="50" file-size="524288"/>

                          <statistics enabled="true"/>

                          <journal-directory path="${messaging-journal-path}"/>

       

      I think this is all I need for statistics to be enabled in the subsystem. Correct me if I am wrong though.

       

      To demonstrate what I mean here is the output from the CLI.

       

      [domain@acmemachine:9990 /] ls  /profile=full/subsystem=messaging-activemq/server=artemis:read-attribute(name=statistics-enabled)

      acceptor                                                journal-buffer-timeout=undefined                       

      address-setting                                         journal-compact-min-files=40                           

      bridge                                                  journal-compact-percentage=40                          

      broadcast-group                                         journal-file-size=524288                               

      cluster-connection                                      journal-max-io=undefined                               

      connection-factory                                      journal-min-files=50                                   

      connector                                               journal-pool-files=-1                                  

      connector-service                                       journal-sync-non-transactional=true                    

      core-address                                            journal-sync-transactional=true                        

      discovery-group                                         journal-type=ASYNCIO                                   

      divert                                                  log-journal-write-rate=false                           

      grouping-handler                                        management-address=jms.queue.activemq.management       

      ha-policy                                               management-notification-address=activemq.notifications 

      http-acceptor                                           memory-measure-interval=-1                             

      http-connector                                          memory-warning-threshold=25                            

      in-vm-acceptor                                          message-counter-max-day-history=10                     

      in-vm-connector                                         message-counter-sample-period=10000                    

      jms-queue                                               message-expiry-scan-period=30000                       

      jms-topic                                               message-expiry-thread-priority=3                       

      legacy-connection-factory                               outgoing-interceptors=undefined                        

      path                                                    override-in-vm-security=true                           

      pooled-connection-factory                               page-max-concurrent-io=5                               

      queue                                                   perf-blast-pages=-1                                    

      remote-acceptor                                         persist-delivery-count-before-delivery=false           

      remote-connector                                        persist-id-cache=true                                  

      runtime-queue                                           persistence-enabled=true                               

      security-setting                                        run-sync-speed-test=false                              

      async-connection-execution-enabled=true                 scheduled-thread-pool-max-size=2                       

      cluster-password=CHANGE ME!!                            security-domain=other                                  

      cluster-user=ACTIVEMQ.CLUSTER.ADMIN.USER                security-enabled=false                                 

      connection-ttl-override=-1                              security-invalidation-interval=10000                   

      create-bindings-dir=true                                server-dump-interval=-1                                

      create-journal-dir=true                                 statistics-enabled=true                                

      id-cache-size=20000                                     thread-pool-max-size=14                                

      incoming-interceptors=undefined                         transaction-timeout=300000                             

      jmx-domain=org.apache.activemq.artemis                  transaction-timeout-scan-period=1000                   

      jmx-management-enabled=false                            wild-card-routing-enabled=true                         

      journal-buffer-size=undefined                          

       

      [domain@acmemachine:9990 /] ls  /profile=full/subsystem=messaging-activemq/server=artemis/jms-queue=AcmeOrderQueue

      consumer-count=undefined                    expiry-address=undefined                    queue-address=undefined                    

      dead-letter-address=undefined               legacy-entries=undefined                    scheduled-count=0                          

      delivering-count=0                          message-count=0                             selector=undefined                         

      durable=true                                messages-added=0                            temporary=undefined                        

      entries=["java:jboss/jms/AcmeOrderQueue"]  paused=undefined                           

       

      [domain@acmemachine:9990 /] ls  /profile=full/subsystem=messaging-activemq/server=artemis/jms-queue=FeebackQueue

      consumer-count=undefined                 expiry-address=undefined                 queue-address=undefined                 

      dead-letter-address=undefined            legacy-entries=undefined                 scheduled-count=0                       

      delivering-count=0                       message-count=0                          selector=undefined                      

      durable=true                             messages-added=0                         temporary=undefined                     

      entries=["java:jboss/jms/FeebackQueue"]  paused=undefined                        

       

      [domain@acmemachine:9990 /] ls  /profile=full/subsystem=messaging-activemq/server=artemis/jms-queue=PurchaserQueue

      consumer-count=undefined               expiry-address=undefined               queue-address=undefined               

      dead-letter-address=undefined          legacy-entries=undefined               scheduled-count=0                     

      delivering-count=0                     message-count=0                        selector=undefined                    

      durable=true                           messages-added=0                       temporary=undefined                   

      entries=["java:jboss/jms/PurchaserQueue"]  paused=undefined                      

       

      [domain@acmemachine:9990 /] ls  /profile=full/subsystem=messaging-activemq/server=artemis/jms-queue=AcmePurchaseQueue

      consumer-count=undefined                       expiry-address=undefined                       queue-address=undefined                       

      dead-letter-address=undefined                  legacy-entries=undefined                       scheduled-count=0                             

      delivering-count=0                             message-count=0                                selector=undefined                            

      durable=true                                   messages-added=0                               temporary=undefined                           

      entries=["java:jboss/jms/AcmePurchaseQueue"]  paused=undefined                              

       

      [domain@acmemachine:9990 /] ls  /profile=full/subsystem=messaging-activemq/server=artemis/jms-queue=CompletedQueue

      consumer-count=undefined                      expiry-address=undefined                      queue-address=undefined                      

      dead-letter-address=undefined                 legacy-entries=undefined                      scheduled-count=0                            

      delivering-count=0                            message-count=0                               selector=undefined                           

      durable=true                                  messages-added=0                              temporary=undefined                          

      entries=["java:jboss/jms/CompletedQueue"]  paused=undefined                             

       

      [domain@acmemachine:9990 /]

       

      WF: product-version=10.0.0.Final

      $ uname -a

      Linux benchserver2 3.10.0-229.15.1.el7_1.1227871.x86_64 #1 SMP Thu Aug 27 17:02:53 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux

      $ java -version

      openjdk version "1.8.0_60"

      OpenJDK Runtime Environment (build 1.8.0_60-b27)

      OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)

       

      Any suggestions ?

       

      Jeremy