After many OutOfMemoryExceptions I run memory profiler. System.LocalDataStoreElement[] cunsumes 123 GB of memory. Application consumes 70 MB after initial开发者_运维问答ization around. After work up some data, memory allocation is 700 MB (even after several GC.Collect() calls). I use Code-First Entity Framework 4.1 Update 1. Is this memory allocation common for Code-First?
I think you hit the issue described in the KB 2540745 .
精彩评论