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.