Skip to content

Upgrading from Boot 2.3.3 or 2.4-M1 to Boot 2.4-M2 uses 125mb heap in BitsCronField #25687

@leccelecce

Description

@leccelecce

I have a small-ish Spring MVC app using Boot 2.3.3. Immediately after startup, this uses 20MB of heap (after triggering a GC).

Changing to Boot 2.4-M2, it uses 140MB. I've also tested with M1 which doesn't display the issue.

Heap dump analysis shows that 125MB of heap is being used by org.springframework.scheduling.support.BitsCronField, because there are 15 million objects in a long[].

My application doesn't use scheduling i.e. there is no @EnableScheduling annotation.

image

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