Over a million developers have joined DZone.

Reduce Memory Footprint Of A .NET Application

·
Don’t ask me anything. It just works :)


 try
{
Process process = Process.GetCurrentProcess();
process.MaxWorkingSet = loProcess.MaxWorkingSet;
process.Dispose();
}
catch { }


p.s. you can even make a timer that could run this piece of code periodically. 
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}