GE interview question

How do you decide upon required heap size