Reputation: 5802
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?
Upvotes: 1
Views: 1996
Reputation: 83081
Looks like you're running into DATACMNS-855, which has been fixed in the latest Hopper SR2.
Upvotes: 3