Results 1 to 3 of 3

Thread: maximum thread number

Hybrid View

  1. #1
    Join Date
    Jun 2010
    Posts
    2

    Default 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. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    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.

  3. #3
    Join Date
    Jun 2010
    Posts
    2

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •