Home > Mobile >  Spring Batch : How to identify the java method and SQL queries that causes performance degradation?
Spring Batch : How to identify the java method and SQL queries that causes performance degradation?

Time:09-23

I have a spring batch application that runs for hours (~10hrs) in existing on-premise environment, we are in the progress of migrating & deploying the application into AKS.

The same application takes ~20hrs to execute in the AKS environment.

We want to identify the java method and SQL queries that causes performance degradation? How do I approach?

Note: as mentioned in How to do spring batch application performance analysis and tuning in Intellij? , I am trying to run the application iwth profiler.

CodePudding user response:

As mentioned in the answer of the link you shared, profiling tools are the way to go.

In addition to that, since your application is based on Spring Batch, you can use the built-in support for Micrometer. This gives you some key metrics about your job execution like the duration of the job, the duration of each step, etc. Please refer to the Monitoring and metrics section of the documentation for more details.

  • Related