Wednesday, August 13, 2008

best way to use eclipse-heap space management

in my office we are working on a huge ecommerce project and off course we do use eclipse as an IDE , but eclipse being heavily loaded with various plugins and the amount of codebase that a workspace contains my colleagues often complains of eclipse being slow.
By default eclipse uses 64MB by default as a heap space size, so we can increase that using the eclipse.ini file so this works really great for me

1. create a batch file lets say in your desktop with the contents
start C:\eclipse\eclipse.exe -clean -vmargs -Xms768m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m
values may be defined based on memory available on your computer.

2. Once you open eclipse Select Window->Preferences and the check mark "Show heap status" option this will show the heap status in the bottom right corner of the eclipse window where you can run the garbage collector by clicking on the small icon to free some memory on time to time basis.

1 comment :

Anonymous said...

thanks for sharing that.