What is the recommend memory size to run logstash?

How are you measuring the memory size?