How can we profile a Spring batch application for the job execution time? Is it possible to know how much time is spent on the readers and writers on an average? If so, what could an efficient or smarter way?
Example, 10 million records are read from a database and outputted to a file in csv format. The file size amounts to say, 4GB.
Is it possible to know the average time taken for the reader & writer to execute for each chunk processing [fetch size say 20000 & commit-interval as 20000]