Faster Eclipse On Slower Machine
If your computer goes slower while working in a big project, you recognize that you need to do some tweaks to work more fluidly. Here i share some of my tricks that meaningfully speeds up my eclipse work flow.

Disable mark occurrences
Open preferences (choose of project wide or global wide preferences is up to you) window and type "mark occurrences" in filter text box. Select the "Mark Occurrences" from the list box and remove the tick from "Mark occurrences of the selected element in the current file" check box.
Remove structured text validation
This time type "validation" into the filter text box in preferences window and select "Validation" from the list box. You' ll see some of file types that are promised to be validated. Deselect validation ticks from all of the file types in the list (you can do it manually later if you want to). You'll see a really very big difference in eclipse performance if you have big xml and wsdl files. For a example in my last J2EE project, my web.xml files contain 1400 and wsdl files contain thousands lines of text so eclipse couldn't handle all the validations while computer memory is avarage
Do not use subclipse plug-in
Subclipse consumes so much system resources and effects eclipse performance greedily in big projects. If you could, consider not to use subclipse especially in projects that contain thousands of code kept in subversion source repository. It's really become a very heavy-weight plug-in with heavy-weight code. You should feel better using subversion from the command line or from a seperate client
Consider converting your static code to a jar library
This advise can be possible more likely when you have static code automatically generated from static wsdl belongs to a web service. By this way you reduce the raw code size in project and use the code functionality from compiled classes to force eclipse to use fewer system resource.
Configure java virtual machine memory management start up arguments
In your eclipse.ini file, set -Xms40m and -Xmx256m args as your needs. This options define minimum and maximum memory usage bounds which passed to java virtual machine to manage eclipse application domain's memory allocation tolerance. You can tweak this values and experiment your optimum eclipse speed. Also if you have problems in eclipse's memory management in Linux os environments like having lots of out of memory errors, you should define permgen space argument in eclipse.ini file. Setting this arguments as needed, you will have very few (or not) sudden memory exceptions. Try these -XX:PermSize=128m -XX:MaxPermSize=128m values if you got for about 1GB ram in your machine.
Finally the Eclipse version i currently have is 3.3.1.1.
From http://it-box.blogturk.net/2008/06/04/faster-eclipse-on-slower-machine/
| Attachment | Size |
|---|---|
| eclipse02.png | 107.72 KB |
- Login or register to post comments
- 3429 reads
- Email this Article
- Printer-friendly version
(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)







Comments
Christopher Brind replied on Fri, 2008/06/06 - 10:01am
I've never had any problems with speed (that I have noticed) and I use the same version of Eclipse as you. I have a Dell Precision M4300 with 2gb of RAM running Windows XP and work with workspaces consisting of 30 or more projects (plugins and OSGi bundles) as well Flex Builder 3.0 pro plugin. I also use Subclipse, the subversion plugin you mention.
Whenever I apply tweaks that people suggest I find that the stability of Eclipse goes out of the window.
However, I am interested in which client you suggest as an alternative for accessing Subversion as I have people working on the project who I don't really want to have Eclipse installed and they don't have the tecnical knowledge to use the command line.
Thanks,
Chris
Lzszlo replied on Mon, 2008/06/09 - 12:44pm
Hi Kadir!
What about subversive? Is it eating up memory?
Omar Palomino S... replied on Thu, 2008/06/12 - 12:59pm
in response to: brindy
Christopher Brind replied on Thu, 2008/06/12 - 2:56pm
in response to: omarps
Omar Palomino S... replied on Thu, 2008/06/12 - 4:31pm
in response to: brindy
Yes, it is. It helps to not bother you to go and open windows explorer. :P
I'm happy with both subclipse and tortoise plugins, but I think that I'm gonna give subversive a try.
Joop Eggen replied on Thu, 2008/06/12 - 5:43pm
kadir pekel replied on Sat, 2008/06/14 - 3:57pm
in response to: brindy
As a programmer, it must not be too hard to type:
on the command line i think :)
By the way, i used tortoise SVN few years ago had not any problem on using it.
Lzszlo replied on Sun, 2008/06/22 - 12:52pm
in response to: coffeemate
svn command line is just fine, but, on the good old windows command line... no thanks :-D
an eclipse plugin is the minimum
Omar Palomino S... replied on Wed, 2008/07/30 - 12:16pm
in response to: brindy