Thursday, January 25, 2007

Eclipse out of memory problem

Sometimes eclipse will prompt you an error about out of memory. I am not sure whether it happens in Windows system with nowaday Eclipse 3.2.1. But it does always happen in my Mac machine. So as many blog or information site mention, we can change the eclipse loading parameters. In Mac, you should locate the eclipse.app file inside your eclipse installation folder.

By "right click" to show the menu, choose "Show Package Contents". Then choose Contents -> MacOS. You should see the file eclipse.ini.

Inside elicpse.ini, add/change to the following lines:

-Xms256m
-Xmx512m
-XX:PermSize=128m
-XX:MaxPermSize=256m

Then the out of memory problem should be solved.

No comments:

Post a Comment