• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The first thing to do is to disable automatic build on modification from the workbench settings.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it's now taking almost 5 minutes to load... it is deteriorating...
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How much memory did you give eclipse?
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ilja Preuss:
How much memory did you give eclipse?


eclipse.exe -vmargs -Xmx512M
is that ok?
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How big is "huge"? How many classes? Can you give me a little more indication of the size of your project?
Kyle
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I picture it now. Thank Andres.
 
He's my best friend. Not yours. Mine. You can have this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic