結果 : how to avoid heap memory issue in java