Reputation: 125
I have a spring batch job with this situation:
[STEP (commit-interval of 2500)]
My "problem" is that I see that in some cases, I am sending 68000~ items to the writer (with a commit-interval of 2500 and I am worried if in a future this can break the job.
I am searching a solution to limit this size to avoid memory problems but I am not sure if spring batch have options to work this type of situations.
I try making sublist inside my writer to make the commits in the "real" commit-interval, anyway, I can't imagine how to avoid this in the Processor.
Upvotes: 0
Views: 72
Reputation: 31720
The chunk size is based on read items. If the processor creates more items, then Spring Batch cannot control this. It is up to you to handle that.
Upvotes: 1