I'm looking best way to measure execution time of Spring Batch read, procced and write action. In Meta-data there are information about whole step but not about each action.
I'm thinking about listeners but is it proper solution ?
Thank you for all of Yours answers!
The beforeXXX and afterXXX methods of ItemReadListener, ItemProcessListener and ItemWriteListener interfaces are the correct way to measure in-step performance.
Just initialize your timer at beforeXXX() and output the result at afterXXX() method.
来源:https://stackoverflow.com/questions/11446366/spring-batch-read-write-execution-time