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

Change prefetch size limit for topics from 32766 to 32767

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 5.6.0
    • None
    • None

    Description

      The default prefetch size limit for topics is noted as 32766; http://activemq.apache.org/performance-tuning.html

      The FUSE source documentation (http://fusesource.com/docs/broker/5.4/tuning/index.html) states, "Default prefetch limit is 32766. The default limit of 32766 is the largest value of a short and is the maximum possible value of the prefetch limit.".

      The largest value for a short actually is 32767 (http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html).

      This is really a trivial issue, but should the default prefetch limit for topics be changed from 32766 to 32767 to reflect the actual ceiling?

      And of course, I would recommend changing the automatic setting to 32767, when the maximum has been exceeded. The following warning shows the applied default of 32766:
      16:22:40 WARN maximum prefetch limit has been reset from 50000 to 32766

      Attachments

        Activity

          People

            Unassigned Unassigned
            gliesian Robert Liguori
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: