You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an obvious delay between the loading of two submissions. Specifically, the gap between the executions of the last line of method write of ObservationDataWriter and the first line of method mapFieldSet of ObservationDataFieldSetMapper can be very long. In the current case of 689 submissions, the gap is smaller at the beginning, but for later submissions, say, at 500th submission, this gap becomes longer than 10 seconds. I should investigate what is happening during the gap. It could be a chance to improve the loading performance.
The text was updated successfully, but these errors were encountered:
It looks like that all the gaps are caused by Spring Batch code instead of the application's own code.
After I commented out all the content of ObservationDataFieldSetMapper.mapFieldSet() and ObservationDataWriter.write(), the duration and pattern of the gaps stayed the same.
When observing with VisualVM, all the CPU usages are from org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep (), which includes about half by org.springframework.batch.core.job.SimpleStepHandler.handleStep () and the other half by org.springframework.batch.core.job.flow.JobFlowExecutor.isStepRestart ().
Maybe we could not do much with this, but the reason that this got my attention is that this step used to take about 15 minutes for 122 submissions, but now it takes 90 minutes for 689 submissions.
There is an obvious delay between the loading of two submissions. Specifically, the gap between the executions of the last line of method
write
ofObservationDataWriter
and the first line of methodmapFieldSet
ofObservationDataFieldSetMapper
can be very long. In the current case of 689 submissions, the gap is smaller at the beginning, but for later submissions, say, at 500th submission, this gap becomes longer than 10 seconds. I should investigate what is happening during the gap. It could be a chance to improve the loading performance.The text was updated successfully, but these errors were encountered: