File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse becoming soooo slowww... any tricks to speed it up? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Eclipse becoming soooo slowww... any tricks to speed it up?" Watch "Eclipse becoming soooo slowww... any tricks to speed it up?" New topic
Author

Eclipse becoming soooo slowww... any tricks to speed it up?

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
my pc is a win2k, 1.8ghz and 1 gig of ram. My project is huge and eclipse becomes really slow, consuming almost 90% of my CPU. code completion is slow, even if I want to scroll down. is there any way to speed it up?


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
The first thing to do is to disable automatic build on modification from the workbench settings.


Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
it's now taking almost 5 minutes to load... it is deteriorating...
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
How much memory did you give eclipse?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Originally posted by Ilja Preuss:
How much memory did you give eclipse?

eclipse.exe -vmargs -Xmx512M
is that ok?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3878
How big is "huge"? How many classes? Can you give me a little more indication of the size of your project?
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Originally posted by Kyle Brown:
How big is "huge"? How many classes? Can you give me a little more indication of the size of your project?
Kyle

7000 + java classes (not including xml files). I'd say about 2000 xml files. I do not use Ant that comes bundle with eclipse (was never able to use it). I use command prompt to compile/run targets.
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3878
7000 classes is WAY too many for one project. A better upper limit for a single project is a couple hundred or so. Remember that one project is equivalent to one JAR file as well -- think about deployment, too.
You need to split the project up into several projects with dependencies, and perhaps even consider closing some of the projects that aren't directly related to what you are doing at any particular time.
Kyle
Rafael Lee
Greenhorn

Joined: Sep 06, 2003
Posts: 23
Hello Andrew et. al.,
Sorry if this is a slight diversion but I'd just like to ask.
This thread is interesting to me more on the size of the project you are handling (7000+ classes about 2000 xml files). I have never been involved in such a large project. A project I carried out which I foolishly thought was small grew up to over 180 classes, jsps, servlets. Had my hands full just monitoring the relationships of the components that I had to draw it in large brown papers taped to one another to at least get a "visual". Can you share how you are able to manage such large project? i.e. Kyle's suggestion of creating subprojects was something that could have helped a lot if I had thought of it before I started the project. What tools do you use?
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Rafael-
There is a huge infrastructure for managing this project that I'm working on, and they have experience on how to deal with that. However, you still find dependencies, and digesting all relationships are hard and take some time. You also can imagine that there are more than "couple" developers working on this, and this requires even more communication and a good infrastructure (again).
The project is well distributed, and that's the reason I thought Kyle's option didn't suit me. It'd take me more time creating my own subprojects, setting up libraries, etc. IDEA and JDeveloper work fine, but sadly eclipse is a bit slow...
We use extensively Ant, it's our main weapon...
Rafael Lee
Greenhorn

Joined: Sep 06, 2003
Posts: 23
Thanks Andres.
Just one more. Will you please enlighten me on the "infrastructure" you're referring to? Is that sort of something that revolves around "MVC"? What's the role of that infra? Or what's does "infra" mean from your side of work? Does it include sort of a HW configuration to manage?
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
my limited glossary of english words made me use the word "infrastructure".
Rafa: is that sort of something that revolves around "MVC"? What's the role of that infra?
yup. Now take a little bit of MVC and mix it with Value Objects, Data Access Objects, Business Delegates, Fast lane reader, session facades, stateless as well as stateful deployment of EJBs, etc. So, to support something like these, you need generators, so you can add VAO/DAO generators. Oh, and add BC4J, so you'll have Entity Objects, View Objects, View Links, etc...
Rafael Lee
Greenhorn

Joined: Sep 06, 2003
Posts: 23
Ok, I picture it now. Thank Andres.
 
IntelliJ Java IDE
 
subject: Eclipse becoming soooo slowww... any tricks to speed it up?
 
Threads others viewed
Java Native Compiler
Eclipse is Slow on new NFS environment ...
Eclipse very slow, any way to speed things up ?
Eclipse 3.1 upgrade to 3.1.1 SLOOOW!!
My Upload speed is more than my download speed
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture