Eclipse becoming soooo slowww... any tricks to speed it up?
Andres Gonzalez
Ranch Hand
Joined: Nov 27, 2001
Posts: 1561
posted
0
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
posted
0
The first thing to do is to disable automatic build on modification from the workbench settings.
it's now taking almost 5 minutes to load... it is deteriorating...
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
posted
0
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
posted
0
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
posted
0
How big is "huge"? How many classes? Can you give me a little more indication of the size of your project? Kyle
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
posted
0
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
posted
0
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
posted
0
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
posted
0
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
posted
0
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
posted
0
Ok, I picture it now. Thank Andres.
subject: Eclipse becoming soooo slowww... any tricks to speed it up?