Uploaded image for project: 'Openfire'
  1. Openfire
  2. OF-2019

Allow Archiver to start polling only after work is produced.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.2
    • Component/s: MUC
    • Labels:
      None

      Description

      The Archiver implementation that was introduced in OF-1788 / OF-1200 uses a thread that polls quite aggressively. In some circumstances, this adds considerable load to the JVM. This can be problematic when many Archivers are instantiated (eg: when many MUC Services exist). In a scenario where work is never produced (eg: logging is disabled), this is wasteful, and can decrement significantly from system performance.

      An Archiver acts as a consumer (in context of the producer-consumer design pattern). When the producer has not yet produced any work, there's no need for the Archiver to start polling for data.

      An improvement should be made that allows Archivers to be started in a mode where polling of the work-queue is delayed until after the first bit of work has been produced.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              guus Guus der Kinderen
              Reporter:
              guus Guus der Kinderen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: