• 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 memory consumption

 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I'm working on a large-ish (~1500 class / 200 KLOC) project. I'm using Eclipse, and while doing some relatively light refactoring work I'm getting regular out of memory ("Do you want to exit the workbench?") errors.
I have automatic rebuilding of workspace on, which is certainly hogging CPU but I'm not sure whether it affects memory use. The refactoring I do generates a lot of compile errors, and the errors change frequently; this seems to cause the automatic rebuilding some stress.
So my questions, which are hopefully easy to answer:
1- Are there any obvious settings for reducing memory use? Would turning off automatic rebuilding help?
2- How can I increase the amount of memory allocated to Eclipse? It peaks at around 140Mb at the moment.
Cheers,
--Tim
PS, try running Eclipse, Weblogic and Firebird with 512 RAM...I'm learning zen-like patience
 
Tim West
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm, problem went away when I turned off auto rebuild.
...and my whole computer (not to mention Eclipse itself) got a lot faster. I'm a compulsive Ctrl-S hitter - hangover from MSWord I guess - I have a feeling it was rebuilding my workspace almost continuously.
Plus Eclipse is only sitting around 70Mb RAM, I dunno, maybe I was tripping when I saw 150 before :-\

- Tim
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can increase the memory by using the following command line for eclipse
eclipse.exe -vmargs -Xmx256M
I have also seen the -server improve performance a bit.
Ciao,
Vinodh R.
 
I think I'll just lie down here for a second. And ponder this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic