OutOfMemoryException, large Private Data

Posted by Captain Comic on Stack Overflow See other posts from Stack Overflow or by Captain Comic
Published on 2010-03-31T09:32:09Z Indexed on 2010/03/31 10:53 UTC
Read the original article Hit count: 627

Hello,

In previous series:

http://stackoverflow.com/questions/2543648/outofmemoryexception-stack-size-is-huge-large-number-of-threads

I have a .net windows service that consumes a lot of memory. The GC heap is not big. Also the stack size is not big. What is big is something called a private data. Also I can see in task manager that my application consumes a lot something that taskmanager calls a handle. My application consumes 2326 handles. I believe that these handles are some windows handles that occupy private data. I can see that this private data is occupied by blocks marked as Thread Environment Block. What is that?

Screenshot of my application memory usage by VMMap

Screenshot of my application memory usage by Task Manager

UPDATE

I run ProcessExplorer. I have two instances of my service running at the moment. I can see that they consume a lot of virtual memory for Gen2 GC. This look suspicios. Also total reserved for GC Heap size is the same for two processes.

alt text

© Stack Overflow or respective owner

Related posts about .NET

Related posts about memory-leaks