Announcement Announcement Module
Collapse
No announcement yet.
maximum thread number Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • maximum thread number

    Hi,
    is there a maximum thread number when SimpleAsyncTaskExecutor or ThreadPoolTaskExecutor is used? I tried using both of them but in one flow I couldn't achieve to create more than 4 threads. Whatever I set to concurrencyLimit, corePoolSize or maxPoolSize, more than 4 threads does not run parallelly at the same time. it waits threads to end to start new threads. I will be really appreciated if you help me. thanks in advance.

  • #2
    You don't say very much about what you are trying to do. Assuming it is a Spring Batch task executor in a step (multi-threaded step), look for a throttle-limit in the tasklet configuration.

    Comment


    • #3
      thank you Dave. it really worked. i could not find it in any document or forum.

      Comment

      Working...
      X