File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse memory consumption" Watch "Eclipse memory consumption" New topic

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.
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

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.
Vinodh R.

Cheers,<br />Vinodh Ramasubramanian
I agree. Here's the link:
subject: Eclipse memory consumption
It's not a secret anymore!