kadir has posted 1 posts at DZone. View Full User Profile

Faster Eclipse On Slower Machine

06.06.2008
| 16014 views |
  • submit to reddit

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.

eclipse

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/

AttachmentSize
eclipse02.png107.72 KB
Published at DZone with permission of its author, kadir pekel.

(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 Hogyishivjak 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: Christopher Brind

The TortoiseSVN Eclipse integration could be an option. It's not fully integrated with the project environment but give you full access to functionality available with tortoise's client in explorer.

Christopher Brind replied on Thu, 2008/06/12 - 2:56pm in response to: Omar Palomino Sandoval

I've tried TortoiseSVN in the past, but it just seems to hang windows explorer. :(

Omar Palomino S... replied on Thu, 2008/06/12 - 4:31pm in response to: Christopher Brind

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

About TurtoiseSVN and the hanging explorer. You can indicate the directories to look for .svn. Otherwise Turtoise is doing overwork on every Explorer access.

kadir pekel replied on Sat, 2008/06/14 - 3:57pm in response to: Christopher Brind

As a programmer, it must not be too hard to type:

$ svn up
[...]
$ svn commit
[...]
$ svn blabla
[...]

on the command line i think :)

By the way, i used tortoise SVN few years ago had not any problem on using it.

Lzszlo Hogyishivjak replied on Sun, 2008/06/22 - 12:52pm in response to: kadir pekel

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: Christopher Brind

I give subversive plugin a try and use it as an SVN option it's out of the question. From the three options that i've tried is the most paintfuly to install and with virtually no documentation. I think I'll stay with Subclipse and TortoiseSVN. :s

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.