aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse memory consumption Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse memory consumption" Watch "Eclipse memory consumption" New topic
Author

Eclipse memory consumption

Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
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

Joined: Mar 15, 2004
Posts: 539
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

Joined: Jun 05, 2003
Posts: 3
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.


Cheers,<br />Vinodh Ramasubramanian
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Eclipse memory consumption