Fix to error 'Not enough permanent generation memory.'.