Memory leak when using Automaper version 6.0.0 .Net 6

45 Views Asked by At

I'm currently utilizing Automaper for mapping a model object to an entity object. Both object types share identical structures, with most inner object properties possessing similar attributes. However, an issue arises when attempting to map to the entity, resulting in a significant increase in RAM memory usage. It's worth noting that this process functioned flawlessly until new inner collections were introduced to the main object, alongside additional attributes added to certain inner objects.

I tried to empty the new collections. Added this line Mapper.Configuration.CompileMappings(); after AutoMapperConfiguration.Initialize();

0

There are 0 best solutions below