-
Notifications
You must be signed in to change notification settings - Fork 2
Frequently Asked Questions
It depends on the structure of your job. Generally speaking the additional code will slow down the job a bit, but:
- All costly operations are asynchronous.
- This is a development tool. Its effect is deterministic, so you can evaluate job performance over different versions on the same machine. But you can't easily compare measurements from a developer machine and a production machine anyway - regardless of the tooling.
We basically try to gather as much data as possible. But, generally speaking, if your batch job fails a performance perspective will most likely not be your starting point of analysis.
The performance logging framework is prepared for parallel execution.
It does not. Exception handling in the logging code is implemented defensivly - any problem regarding logging and performance measurement will be visible in the logfile, but no exceptions will reach your code (due to broad catch-clauses as well as the fact, that the database interaction occurs in a separate thread). From the perspective of the batch job, the logging is completely invisible.
Please make sure that all of the elements to be monitored are created through the spring bean factory.