Activity overview
Latest activity by SistemiData
Hello Jessica,
any news?
Bye
Francesco / comments
Hello Jessica,
any news?
Bye
Francesco
Hello Jessica,
I just sent an e-mail with all documentation.
I'am awaiting for your answer.
Bye
Francesco / comments
Hello Jessica,
I just sent an e-mail with all documentation.
I'am awaiting for your answer.
Bye
Francesco
Hello Jessica,
I created a simple Entity Framework memory test to make you see the strange results.
I would like to send you the whole .amp8results file with a simple description of the code, so that you can understand the situation well.
How can I send you the file?
Can you give me your mail or an address where I can upload the file?
Bye
Francesco. / comments
Hello Jessica,
I created a simple Entity Framework memory test to make you see the strange results.
I would like to send you the whole .amp8results file with a simple description of the code, so th...
Hello Jessica,
I made other tests to study the situation.
When Entity Framewok is used, despite DBContext dispose etc..., ANTS Memory profiler memory tests show large amounts of memory held by:
- Namespace: System.Reflection, Class Name: RuntimeMethodInfo
- Namespace: System.Reflection, Class Name: RuntimeParameterInfo
- Namespace: System.Data.Entity.Core.Metadata.Edm, Class Name: TypeUsage
- Namespace: System.Data.Entity.Core.Metadata.Edm, Class Name: Facet[]
- Namespace: System.Data.Entity.Core.Metadata.Edm, Class Name: EdmProperty.
- etc...
All tests always gives same results. / comments
Hello Jessica,
I made other tests to study the situation.
When Entity Framewok is used, despite DBContext dispose etc..., ANTS Memory profiler memory tests show large amounts of memory held by:
- N...
Hello Jessica,
thanks for reply.
According to your advice, I tried to move the DbContext code, first in another method and than in another class but nothing changes.
The code I posted is in the main method only for testing; in reality, in my real application, the DbContext code is located in another library.
I created this simple example code only to make you understand more easily the problem (this problem is systematic when using DbContext).
I still do not understand what the problem is!
Any other suggestions ?
The problem is EntityFramework, the ANTS memory profiler or something else?
Thank you very much for your help.
Bye. / comments
Hello Jessica,
thanks for reply.
According to your advice, I tried to move the DbContext code, first in another method and than in another class but nothing changes.
The code I posted is in the mai...
Hello Jessica,
thanks for reply.
I created a test application with contains only the following code: using(MyEntities dbContext = new MyEntities){ }
Even if I take more snaphost to force garbage collector, object still remains in memory (about 200 KB)!
If I add a code to read or write from/to context, objects that remain in memory increase considerably (about 4 MB)!
This situation is very strange because, like you can see, there are no other code structures which can retain memory.
This could be a problem related to EntityFramework?
Any Suggestions?
Thanks,
bye. / comments
Hello Jessica,
thanks for reply.
I created a test application with contains only the following code:using(MyEntities dbContext = new MyEntities){ }
Even if I take more snaphost to force garbage co...
Entity Framework does not release memory
Hi,
I used ANTS memory profiler to control the amount of memory consumed by the following example code fragment (Database First - Entity Framework 6)
using(DBContext context = new DBContext)
{
var ...