2

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!

4

1 に答える 1

2

ItemReadListenerItemProcessListener、およびItemWriteListenerインターフェースの beforeXXX および afterXXX メソッドは、インステップ パフォーマンスを測定する正しい方法です。

beforeXXX() でタイマーを初期化し、 afterXXX() メソッドで結果を出力するだけです。

于 2012-07-12T16:32:29.470 に答える