fix out of memory issue, use large heap