File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse memory consumption

 
Tim West
Ranch Hand
Posts: 539
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Vinodh Ramasubramanian
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic