-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Optimize startup time: Jackson #8028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
See also #1789. I did some digging at one point into the number of |
I masked off the
I.e. #7578 is probably more interesting that tracking down Jackson issues. |
@dsyer am I right in thinking these numbers are Petclinic without Actuator and without Jackson:
And the numbers are Petclinic without Actuator and with Jackson:
So the cost of Jackson is ~0.1s to ~0.3s depending on the benchmark? |
Yes, I think that's about right. I would say we can infer that Jackson on its own is worth, by eye, about 150+/-100ms (so not completely negligible). |
Hello team.. This will be prioritize anytime soon? With lazy initialization and spring-context-indexer my application starts in 19 seconds locally and 32 seconds on Kubernetes using latest spring boot version. I think the priority number 1 of Spring should be performance right now. |
@lucasoares Performance is an ongoing priority for the team but, without knowing more about your application and its beans, it's impossible to do much specifically for you. From what you've said, we have no way of knowing if you're using Jackson or how much of your 19 second startup time its initialization is responsible for. In short, it's not clear that prioritising this issue over other work would make a meaningful difference to your app. The new in 2.4 startup tracking feature may be of interest as it will allow you to gather some data about where the time is being spent during your application's startup. |
We're cleaning out the issue tracker and closing issues that we've not seen much demand to fix. Feel free to comment with additional justifications if you feel that this one should not have been closed. |
See also discussion at #7591 and https://github.com/dsyer/spring-boot-startup-bench.
Removing Jackson means removing the actuators as well, as things
stand. But it has quite a dramatic effect (probably Thymeleaf has no
impact at all and we are just seeing Jackson in the results
of #7591). Results:
These should be compared with the same thing but fully loaded. Here's a reminder of what
they are:
That's pretty huge!
The text was updated successfully, but these errors were encountered: