Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-281

Allow idle thread reuse

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.6.0.Beta1
    • 3.3.1.Final
    • None
    • None

      XNIO thread pool is configured to always have core size == max size, which causes thread count to always increase to maximum and idle threads are never allowed to die.

      This makes it impossible to configure the system so that there would be sufficient, small number of threads to handle requests, but have a big number of reserve threads. Huge number of threads is a waste of system resources and may prevent efficient use of CPU caches (thread stacks etc.).

      Attached is a patch that provides a workaround until XNIO can provide a real solution for the problem.

              dlloyd@redhat.com David Lloyd
              armihu Arto Huusko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: