-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResponseEntity objects are accumulated in ConcurrentReferenceHashMap #28232
Comments
@KangChanSong the cache that you mention is a cache of resolvable types. |
I can see that we have a If the type is using |
Indeed, and |
…stance Closes spring-projectsgh-28232 (cherry picked from commit eefdd2c)
…stance Closes spring-projectsgh-28232 (cherry picked from commit eefdd2c)
…stance Closes spring-projectsgh-28232 (cherry picked from commit eefdd2c)
…stance Closes spring-projectsgh-28232 (cherry picked from commit eefdd2c)
…stance Closes spring-projectsgh-28232 (cherry picked from commit eefdd2c)
…stance Closes spring-projectsgh-28232 (cherry picked from commit eefdd2c)
Affects: 5.2.8
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
accumulatesResponseEntity
inConcurrentReferenceHashMap
ofResolvableType.cache
.It puts the whole response body of each
ResponseEntity
inConcurrentReferenceHashMap
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 theResponseEntity
objectseven if it has a BIG BIG body.
Thank you.
Best Regard.
The text was updated successfully, but these errors were encountered: