Skip to content

Improve performance of bean lookup by type for DefaultListableBeanFactory [SPR-8095] #12750

Closed

Description

@spring-projects-issues

Thomas Risberg opened SPR-8095 and commented

This has been a problem in applications using @Provider combined with @Autowired where the bean look ups exhibit performance problems.

These are quotes from a user:

"Under heavy load we are experiencing heavy lock contention in DefaultListableBeanFactory.findAutowireCandidates()."

"Under heavy load this is severely limiting our throughput".


Issue Links:

1 votes, 2 watchers

Activity

  1. spring-projects-issues commented on Mar 29, 2011

    @spring-projects-issues
    CollaboratorAuthor

    Mike Youngstrom commented

    One specific usecase where improving type lookup performance would be beneficial is in the case of an Autowired Provider of a non singleton bean.

    @Autowired Provider<SomeNonSingleton> someBean;

    If I'm doing someBean.get() inside of a filter, for example, that makes every request lock on the singleton mutex.

    I believe this issue may be related: #12604

    Mike

  2. spring-projects-issues commented on Apr 19, 2011

    @spring-projects-issues
    CollaboratorAuthor

    Mike Youngstrom commented

    This issue appears to be related to #11536.

  3. spring-projects-issues commented on May 27, 2012

    @spring-projects-issues
    CollaboratorAuthor

    Chris Beams commented

    This issue duplicates #11536, which is now resolved. Please give it a try (available now in 3.2.0.BUILD-SNAPSHOT).

  4. added
    type: enhancement
    in: core
    status: duplicate
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: corestatus: duplicatetype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions