GE Interview Question

How do you decide upon required heap size