• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

How to control Eclipse's memory usage

 
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse is a memory beast. How can I control it?
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IBM, which, as everyone knows, stands for Insert Bigger Memory

I have noticed that having less projects and smaller projects opened decreases memory use, as does having less files open.
Of course doing so also slows you down...
 
author
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Anthony Smith:
Eclipse is a memory beast. How can I control it?



Like most Java programs, once it starts consuming memory it refuses to give it back (that is actually a JVM issue, not really an app issue).

I have 1G on my notebook and always make sure that I shutdown Eclipse at least once a day. Not having a Unix box I don't know what the memory behavior is on Linux or Solaris.

Something you can do is check that you only preload just the plug-ins you need (which should not be many) at startup. Open Window->Preferences->Workbench->Startup and Shutdown to make sure that the plug-ins you have loaded have not hijacked Eclipse behind your back.

I only have the following 3 plug-in load at startup:
Automatic Updates Scheduler
Internet Preferences
Content Properties

Carlos
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Anthony,
You can also pass a parameter to Eclipse to tell it how much memory to use. However, this causes the IDE itself to perform poorly. So use with caution:

"C:\Program Files\eclipse3-1\eclipse.exe" -vmargs -Xmx256M
 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic