in reply to Memory management

A classical solution of long running processes which consume more memory over time is do to an exec of itself very $N hours or $M days. Of course, depending on the application, this may not always be feasible.