Announcement Announcement Module
Collapse
No announcement yet.
How can we test the number of threads? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment


    • #3
      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?

      Comment


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

        Comment

        Working...
        X