Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-20839

Remove max-active-timers from default configuration

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 37.0.0.Final
    • Clustering, EJB
    • None
    • ---
    • ---

      Our default configuration defines limit of 10K to the number of active persistent or non-persistent timers.
      This jira proposes to remove this, for a few reasons:

      • 10K is rather arbitrary
      • The algorithm used to determine which timer entries should be evicted upon exceeding this threshold is not well suited to the timer use case, and is not currently configurable.
        • Timers most likely to be referenced soon (i.e. those with an upcoming timeout) are more likely to be selected for eviction/passivation.
      • This lets us remove the file store from the default cache configuration for non-persistent timers.
        • Even when empty, a file store adds significant overhead to invocations of TimerService.getTimers() or TimerService.getAllTimers().
        • An application with a large number of EJBs that use the TimerService can quickly hit the OS open file limit

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: