Groups | Blog | Home
all groups > dotnet remoting > august 2005 >

dotnet remoting : Getting Out of memory exception even when the memory is not high !!



Aravind
8/2/2005 6:23:56 PM
Hi,
I am ruuning to out of memory exception , My system has RAM of 4 GB
and virtual memory paging size set to 4GB .When I check the memory
occupied by the process during the exception , it is less ( around 500
MB and peak Memory usage 800MB , even the total memory of the system
is not high . what are passing use cases where the system leads to out
of memory exception ?
I am using two process for the program and the out of memory occuring
in the second process.

Thanks in Advance

Regards
Aravind
Aravindakumar Venugopalan
8/5/2005 2:46:56 PM

Hi christoph,
Thanks for your reply , here is more details
This is a .net Windows form application which interacts with the
unmanaged C++ codes . In unmanaged c++ code we allocate around 130MB on
the heap for annalysing high resolution images .

Earlier during the processing do lot of process on the image and the
memory reaches high at one point of time to 1.2GB , after that we clear
all the memory being used so the memory in the task manager comes to
really low.
Also I am calling CompactHeap function in the c++ to get contigous
memory space.

Then when we read the processed high resolution image (130MB ) it is
going to out of memory exception . At this point I run memory analyser
and analysed the process memory , the reserved memory in the process is
good enough and the free memory in the process is really low . I am
wondering why the system is not taking the memory from the reserved
memory space.

how to make use of the reserved memory and make it used by the process??

Regards
Aravind.


christoph Richter [at]
8/5/2005 6:54:04 PM
need more details on this.

windows forms? asp.net?
both has 800MB ram? or both together? how much has the second?
what needs so much ram? an remoting object? just data? a file?

regards,
christoph


On 2 Aug 2005 18:23:56 -0700, "Aravind" <aravindakumar.v@gmail.com>
[quoted text, click to view]
AddThis Social Bookmark Button