Skip to content

CachedIntrospectionResults caching jar entries and creating big pressure on GC [SPR-11818] #16438

Closed
@spring-projects-issues

Description

@spring-projects-issues

Sargis Harutyunyan opened SPR-11818 and commented

Hi, seems CachedIntrospectionResults caching jar entries and creating big pressure on GC and here is my code:

    public static ExaminerWorkloadUpdateWU createExaminerWorkloadUpdateWU(WorkloadCommand workloadCommand) {
        ExaminerWorkloadUpdateWU examinerWorkloadUpdateWU = new ExaminerWorkloadUpdateWU(workloadCommand);
        DEFAULT_CONTEXT_FACTORY.wire(examinerWorkloadUpdateWU);

        return examinerWorkloadUpdateWU;
    }

// and

    public final void wire(Object bean) {
        context.getSpringContext().getAutowireCapableBeanFactory().autowireBean(bean);
    }

// and class itself

public class ExaminerWorkloadUpdateWU extends CriterionUpdateWorkUnit<Void> {

   // impl. ommited

    @Autowired
    public void setWorkloadCommandExecutor(WorkloadCommandExecutor workloadCommandExecutor) {
        this.workloadCommandExecutor = workloadCommandExecutor;
    }
}

Note that actual @Cache annotation even not applied to target bean I have it in my application but not for target bean.

Also I attached Mission Control recording file and screenshot pointing to CachedIntrospectionResults.


Affects: 3.2.6

Attachments:

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions