title: Akka Dispatcher Thread creation
body: <p>I have been working on Akka Actor model. I have an usecase where more than 1000 actors will be in active and I have to process those actors. I thought of controlling the thread count through configuration defined in the application.conf. </p>
  
  <p>But no. of dispatcher thread created in my application makes me helpless in tuning the dispatcher configuration. Each time when I restart my application, I see different number of dispatcher threads created (I have checked this via Thread dump each time after starting the application).</p>
  
  <p>Even thread count is not equal to the one which I defined in parallelism-min. Due to this low thread count, my application is processing very slowly. 
  On checking the no. of core in my machine through the below code:</p>
  
  <blockquote>
    <p>Runtime.getRuntime().availableProcessors();</p>
  </blockquote>
  
  <p>It displays 40. But the no. of dispatcher thread count created is less than 300 even I configured parallelism as 500. </p>
  
  <p>Following is my application.conf file:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>consumer-dispatcher {
    type = "Dispatcher"
  
    executor = "fork-join-executor"
  
    fork-join-executor {
      parallelism-min = 500
      parallelism-factor = 20.0
      parallelism-max = 1000
    }
  
    shutdown-timeout = 1s
  
    throughput = 1
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>May I know on what basis akka will be creating dispatcher threads internally and how I can increase my dispatcher thread count to increase parallel processing of actors?</p>