Results 1 to 4 of 4

Thread: How can we test the number of threads?

  1. #1
    Join Date
    Jun 2010
    Posts
    15

    Default How can we test the number of threads?

    Hi,

    I have set the throttle limit in my application to 10
    <batch:tasklet throttle-limit="10">.
    How can i confirm that there are 10 threads concurrently running?

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

    Default

    What I usually do is look at the logs. If you log the thread ID (easy with log4j) you should see up to 10 unique ones.

  3. #3
    Join Date
    Jun 2010
    Posts
    15

    Default

    thanks I got that....Im using StoredProcedureItemReader to read from an SP and the return is about 1000 records lets say...then I use a custom Item writer to write to a webservice interface. When will the DB connection close in this case?? Will the spItemReader read the Rs and store in the list and close the connection or does it happen after the write?

  4. #4
    Join Date
    Jan 2008
    Posts
    182

    Default

    If using java6 then you could just use visualvm to see what threads are running.

Posting Permissions

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