Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-972

Prefetch limit not enforced for STOMP connections

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • JBoss A-MQ 6.1
    • stomp
    • None

      The customer defined the following connectors:| <transportConnector name="stomp" uri="stomp+nio://0.0.0.0:61113?jms.prefetchPolicy.all=10&transport.closeAsync=false&transport.defaultHeartBeat=3600000,0&transport.keepAlive=true&transport.soLinger=1"/>|

      <transportConnector name="stomp+ssl" uri="stomp+ssl://0.0.0.0:61123?jms.prefetchPolicy.all=10&transport.closeAsync=false&transport.defaultHeartBeat=3600000,0&transport.enabledProtocols=TLSv1,TLSv1.1,TLSv1.2&transport.keepAlive=true&transport.needClientAuth=true&transport.soLinger=1"/>

      The expected prefetch limit would be 10 then. Instead the following data can be retrieved using Jolokia:| {|

      "Active" : 1,
      "Connection" : {
      "Active" : 1,
      "ActiveTransactionCount" : 0,
      "Blocked" : 0,
      "Connected" : 1,
      "DispatchQueueSize" : 31132,
      "OldestActiveTransactionDuration" : null,
      "RemoteAddress" : "tcp://137.138.171.10:51861",
      "Slow" : 0,
      "UserName" : null
      {color:black}},|
      | "ConnectionId" : "ID:mb097.cern.ch-53269-1426495876408-1:1532171",
      "ConsumedCount" : 522,
      "DequeueCounter" : 522,
      "DestinationName" : "test.01312307",
      "DestinationQueue" : 0,
      "DestinationTemporary" : 0,
      "DestinationTopic" : 1,
      "DiscardedCount" : 0,
      "DispatchedCounter" : 33289,
      "DispatchedQueueSize" : 32767,
      "Durable" : 0,
      "EnqueueCounter" : 917890,
      "Exclusive" : 0,
      "MaximumPendingMessageLimit" : 0,
      "MaximumPendingQueueSize" : -1,
      "MessageCountAwaitingAcknowledge" : 32767,
      "Network" : 0,
      "NoLocal" : 0,
      "PendingQueueSize" : 884601,
      "PrefetchSize" : 32767,
      "Priority" : 0,
      "Retroactive" : 0,
      "Selector" : null,
      "SessionId" : -1,
      "SlowConsumer" : 1,
      "SubcriptionId" : 1,
      "SubcriptionName" : null,
      "SubscriptionId" : 1,
      "SubscriptionName" : null,
      "UserName" : null
      {color:black}}

      Apparently the configured prefetch size is not respected.

              gtully@redhat.com Gary Tully
              hkonsek Henryk Konsek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: