I would suggest the following changes to your eclipse environment. Please go to the eclipse shortcut and open the properties. In the Target just after the path to the .exe copy the machine specific arguments.
RECOMMENDED ARGUMENTS (you can play with the exact numbers based on your machine configuration)
-vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m
RAM 2 GB
-vmargs –Xms1024m –Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m
RAM 4GB
-vmargs –Xms2048m –Xmx2048m -XX:PermSize=512m -XX:MaxPermSize=512m
Why are we doing this?
In order to fix the out of memory issues we normally adjust our maximum heap size (-Xmx) but in addition to this we will also change the heapSize. The JVM uses heapSize to provide space to java apps to run while permSpace is an area to store data structures and class definition etc. For smaller projects just giving more space to run can fix the problem while for large projects which may contain thousand of class files will need large permSpace rather than the heapsize. In order to set the permSize use the option -XX:Permsixe.
Hence a better fix will be fixing both the heapSize and permSize as the first will give more space to the java apps to run hence a better performance and the later will give more space for data structures and class information in large projects
Rohit on Facebook
Tweets
- Beat way to eliminate distractions, die! There is no other way. You can overcome distractions, but not eliminate. #BWW 3 weeks ago
- Happy new year! 1 month ago
- Check this video out -- The difference: What 40 Dollars Means http://t.co/dcXffbJq via @youtube 1 month ago
- PMA is the starting point of all riches, whether they be riches of a material nature or intangible riches #napoleanhill 1 month ago
- Sincerity of purpose, humility of heart, a full recognition of truth that no man knows everything. #NapoleonHill 1 month ago


![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=d6784b6e-2292-4202-90b7-28a5d7619288)














Pingback: Tweets that mention Eclipse: How to fix OutOfMemoryExceptions or just for performance improvement. | Rohit Prabhakar -- Topsy.com