Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10174

Adjusting thread pools for container environments

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 9.4.13.Final, 10.0.0.Final
    • Cloud

      Default thread pool values in Infinispan Server cloud.xml can make containers be killed if all of them are in use. The main defaults are:

      • HotRod-hotrod-internal-ServerHandler: core=160 max=160
      • remote-thread: core=25 max=25
      • transport-thread: core=25 max=25
      • async-thread: core=25 max=25
      • jgroups: core=0 max=200
      • jgroups-int: core=0 max=16
      • stateTransferExecutor-thread: core=1 max=60
      • add-listener-thread: core=0 max=10
      • REST-rest-ServerHandler: core=1 max=1
      • DefaultExecutorService: core=1 max=1
      • notification-thread: core=1 max=1

      The total number of core threads is 239, and if the system is under load, the threads alone can take ~239mb of native memory. That's before the heap and other parameters are counted. Our defaults are 0.5 CPU and 512mb.

      This thread pools should be trimmed, since if used at full capacity, 0.5 CPU won't be able to do much with ~200+ threads.

              Unassigned Unassigned
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: