Hello

There is a program called eatmemory for that. Google for it, it is on github

Thanks