Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

High Memory usage Issue

$
0
0

Dear All:

My Problem is:

     There's a project with C#/C++/C language, C# is used for Bussiness Logic,C is used for Comminication(encode/decode) with Device, and C++ as a adapter between C# and C.

    So, It will be two heaps in the process. One is GC Heap, another is Native Heap. When run for a long time, the memory Usage is very large,then I use the Debugdiag to dump the process, and analyse the memory. It seems that no memory leak.

GC Heap is 680MB

Commit Size 695MB

Reserved Size 300MB

But, About 540MB is Free

In this situation, the native heap is no more memory to alloc (total is 2 GB address with 32bit app).

My question is:

1.  in the extreme situation, native heap is very small , when i call "new" operator on native heap ,it will fail.

2. why the gc heap do not free some segment of the VM if useless.

Below is my server configuration

       Hardware Environment: 4CPU(8 core) + 16G Memory

       OS:Windows Server 2008 R2 SP01

       .Net Framework 4 x86(32bit)

 Best Regards.


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>