Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3569

kahaDB producerAudit LRU cache configuration is time dependent, it should not be..

    XMLWordPrintableJSON

Details

    Description

      The failover: reconnect logic can submit duplicate messages, if a send reply is lost. this is trapped by the producerAudit. The audit keeps an LRU cache of producerIds and message sequence ids. The default value is 64. This is a little small if many producers come and go. It can be configured via:

      <kahaDB ...  maxFailoverProducersToTrack="2048" />

      . The problem is picking a value.
      If a connection is down for an indeterminate time, the number of producers that will be seen by the audit is indeterminate. It can be made very large, but this will consume memory resources. The audit needs to be maintained on a connection basis. This will suffer from the same problem, how many connections to audit, but with connection pools this can be mitigated better than producers.

      Attachments

        Activity

          People

            gtully Gary Tully
            gtully Gary Tully
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: