Performance regression when scheduling is enabled and context contains URL beans [SPR-14666] #19230
Comments
Juergen Hoeller commented I've revised |
Juergen Hoeller commented Andy Wilkinson, could you double-check this against the latest |
Andy Wilkinson commented It does the job. Thanks for the fix. |
This was referenced Jan 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Andy Wilkinson opened SPR-14666 and commented
When scheduling is enabled and the context contains URL beans, context refresh becomes very slow. It appears to be due to this change which results in
hashCode
being called on each bean as a result of the newrequiresDestruction
method. When the bean is aURL
this causes a host name look up, the stack of which is:See the referenced Spring Boot issue for more details and for a sample project that reproduces the problem.
Affects: 4.3.2
Reference URL: spring-projects/spring-boot#6813
Issue Links:
@Scheduled
methods in@Lazy
beans are not scheduledReferenced from: commits 480cd2c, bd24b97
1 votes, 5 watchers
The text was updated successfully, but these errors were encountered: