I'm debugging a memory leak in my application which uses spring-data-mongodb.1.9.1.RELEASE
.
MongoMappingContext
is using up about a third of the heap . It has a reference to almost 30k PersistentEntity
objects totaling over 140MB.
This memory leak is caused by holding unnecessary references to MongoDB data objects so they can't be garbage collected. Why might so many of these objects be held in the MappingContext
if I never reference these PersistentEntity
objects in my code?
Does holding on to my data model objects cause Spring Data MongoDB to hold onto it's data model objects?
看起来你遇到了DATACMNS-855 ,它已在最新的Hopper SR2中修复。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.