Skip to content

ResponseEntity objects are accumulated in ConcurrentReferenceHashMap #28232

Closed
@KangChanSong

Description

@KangChanSong

Affects: 5.2.8


First of all, sorry for my bad english. If you're hard to understand my sentence, please comment

Ive been testing my team's project and monitoring it with scouter APM.

And found that "used heap" keeps going high whenever I call an different API .

I debugged and found that Spring accumulates ResponseEntity in ConcurrentReferenceHashMap of ResolvableType.cache.

It puts the whole response body of each ResponseEntity in ConcurrentReferenceHashMap which is static.

I believe that the Spring developers intended it for some reasons but I cannot find any even if I googled a lot.

If It it's an issue , please fix this.
if it's not, I would very appreciate you for giving me some explanation why Spring accumulates the ResponseEntity objects
even if it has a BIG BIG body.

Thank you.
Best Regard.

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)in: webIssues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions