Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3663

Use a common thread pool for all TimerJobInstances

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • 6.0.0.Alpha1
    • None
    • None
    • None

    Description

      From what I've seen(correct me if I'm wrong) there is, for each StatefulKnowledgeSession a TimeManager -> JDKTimerService instances pair that use a ScheduledThreadPoolExecutor of size one(default) for scheduling timer job instances.
      Now the issues that I see are:

      • not optimal resource utilization in case of large number of sessions
      • number of sessions bounded by available memory for threads
      • some performance penalty for concurrent jobs (I say some because all session ops are serial)

      I provided also a PR with to be reviewed

      Attachments

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            calbazasebastian Sebastian Calbaza (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Archived:

              PagerDuty