Results 1 to 3 of 3

Thread: Limit number of threads for parallell tasks?

  1. #1
    Join Date
    Oct 2005
    Location
    Bergen, Norway
    Posts
    128

    Default Limit number of threads for parallell tasks?

    Hi!

    Is it possible to define an upper limit of concurrent executing threads when using a taskExecutor with batch:chunk?

    Using batch 2.0.3

  2. #2
    Join Date
    Jun 2005
    Posts
    4,230

    Default

    There is a throttle limit in the step factory bean (and also the repeat template, which is where it is actually applied). It's also exposed in the <chunk/> element of the namespace (I think).

    N.B. the number of threads actually running will depend on your thread pool settings. Probably in 2.1 or 3.0 we will remove the throttle limit and allow more direct control with a thread pool.

  3. #3
    Join Date
    Oct 2005
    Location
    Bergen, Norway
    Posts
    128

    Default

    Quote Originally Posted by Dave Syer View Post
    There is a throttle limit in the step factory bean (and also the repeat template, which is where it is actually applied). It's also exposed in the <chunk/> element of the namespace (I think).

    N.B. the number of threads actually running will depend on your thread pool settings. Probably in 2.1 or 3.0 we will remove the throttle limit and allow more direct control with a thread pool.
    It's not available on the chunk element - I've added http://jira.springsource.org/browse/BATCH-1386 for it.
    Last edited by davidkarlsen; Aug 28th, 2009 at 06:21 AM.

Posting Permissions

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