is the build up of gen2 an issue

Hi,

Very new to dotMemory.


I have an desktop C# app.

It is responsible for connnecting to a digital camera and send motion frames to my server.

I leave it running for 12 hours and these are the (3) images of that flow in dotMemory:

When I view the objects hat survived memory it does not really tell me much.

Should I be worried about the build up of Gen2?  Will it 'dispose' when it has reached it maximum containing threshold?



Attachment(s):
build2 end.png
build2 middle.jpg
build2 start.jpg
1 comment

Hi Andrew

> Should I be worried about the build up of Gen2?  Will it 'dispose' when it has reached it maximum containing threshold?
First of all you can press "Force GC" button (placed above the timeline chart) to force garbage collecting, just after that only used objects remain in memory and you will get the answer on your question is it memory leak or not.

build2 end.png
Only you as a developer can answer the question if 13 000 000 objects holding in memory are OK for your application or not. If not, investigate objects of what type are leaked, and what GC roots holding them in memory.

build2 start/middle

I see that your app actively allocates short living objects in Large Objects Heap. It impacts performance of your app and I would recommend to try to avoid it if you have problems with performance and if it possible. (Objects larger that 80KB are allocated in LOH).

See this article, it is quite similar to your case and may help you.
http://www.borismod.net/2015/02/how-investigate-memory-leak-in-net.html

Ask me, if you have more questions

0

Please sign in to leave a comment.