eclipse 3.4 can consume a lot more memory than the previous versions, courtesy the spellchecker plug-in.
you can switch off the plug-in by going to window -> preferences -> general -> editors -> text editors -> spelling, and unchecking the box title 'enable spell checking'.
of course, the tips offered to use larger heap sizes and better garbage collectors would do you good as well.
try disabling your eclipse plugins. eclipse was hogging half of my of my memory when i had the saros plugin open.
you can try the 64bit version of eclipse with the 64bit version of jdk on windows 7. those both caused some odd issues with the 3rd party framework i have to work with. the 32-bit of jrockit (free now) from oracle seems to be faster and be a little better on memory. this is my eclipse.ini settings:
this is my eclipse inn
c:/program files (x86)/java/jrockit-jdk1.6.0_31-r28.2.3-4.1.0/jre/bin
i switched to the 32 bit jrockit jdk which seems a little faster for eclipse. i turn off and don't install more than i need. for each separate type of app development (android, j2ee, just spring, ...) i have different eclipse installations. hard drive space is cheap. then i can have just the plugins i need for each one. i would never want all the android tools loading if i wasn't using them. sts is also good for just the spring stuff and i have one just for openshift cloud work.
if 400 mb of ram is a big issue for you, you might want to try another ide. eclipse stores a lot of state information, some or most of which you don't actually need. that's a design choice.
right now, i have the same project open in both eclipse and qtcreator: after a clean rebuild, eclipse uses 156 mb ram, qt creator is happy with 66 mb.
my eclipse is taking over 800mb resident, and 2gb virtual (part of it swapped out perhaps). java can be a hog, it's giving java bad press all the time.
however, there is a little something that many people don't know: the incremental garbage collector.
the side effect is that it hands memory back to the system from time to time.
by default java just takes and takes, and when it doesn't need memory anymore, it keeps it for itself.
the incgc is a different strategy where it becomes more reasonable to assume that memory can be handed back the system without running into trouble.
this can however affect performance.
there are many garbage collection settings. you can also have multiple threads handle gc. the parallel gc does that. not sure if that one hands memory back, don't think so.
while you probably could tinker with the configuration, removing various plugins etc, it's likely to be more cost effective to buy more memory. how much do you currently have? i would consider a developer machine with less than 2gb of memory to be under spec, and i suspect many people would double that...
modern versions of eclipse do need quite a bit of ram to do their thing. but should still run pretty fast on any modern machine.
assuming you have enough physical memory (2gb is fine unless you have lots of other processes running, or you're using rad), see this article on eclipse's memory usage for some tips on tweaking the settings. the two most common culprits are xmx and/or maxpermsize being set too low (xmx defaults to 256m and maxpermsize defaults to 64m).
you modify the values by passing command line arguments or tweaking the eclipse.ini in the eclipse install location.
you should end up with something like this:
in eclipse luna 4.4.1 was trying to cut my memory usage in eclipse. i managed to shave mine from 600mb to 300mb. i did the following:
turned off the plugins activated on startup that i wasn't using. windows > preferences > general > startup and shutdown
closed projects i wasn't working on at the time.
found the hints/tips here : http://blog.elijaa.org/2010/09/20/tricks-to-speed-up-eclipse-php-helios-pdt-2-2/
+useg1gc option from eclipse.ini. i've read from here that it is only used for araound 6gb heap memory.
- How to reduce Eclipse's memory usage?
- How can I reduce Eclipse Ganymede's memory use?
- How to view memory usage in eclipse (beginner)
- How can I monitor how many threads and memory usage in my JVM or Eclipse?
- How to fix Groovy Grails Tool Suite 3 extreme memory usage
- How to decrease memory usage for Android Studio (also works for Eclipse)
- How to reduce memory consumption of AJDT?
- How can I give eclipse more memory than 512M?
- How to run Eclipse memory analyzer on Mac os?
- How to copy plugins between two eclipses
- how to sum @retainedHeapSize with oql in the Eclipse Memory Analyzer Tool
- How to find annotation usage using Eclipse IDE?
- how to clear heap memory of eclipse
- How to detect memory leak
- OQL in Eclipse memory analyzer - how to display array / ArrayList contents
- How to enable Memory monitors in Eclipse (Java project)?
- How to browse a derby memory database with Eclipse Datasource Explorer?
- How to increase STS (Spring Tool Suite) memory size?
- How to check out the values of dynamic allocated memory in debugging mode?
- How to run a map reduce job using Java -jar command
- How to use Eclipse Memory Analyser Tool (MAT) for analysing a hashmap
- How to find variable usage in Android Studio? (like Ctrl + Shift + G in Eclipse)
- Is Eclipse 3.4 (Ganymede) memory usage significantly higher than 3.2?
- How can I know how much memory Eclipse plugins use (separately)
- How do increase memory for the Ant 'Javadoc' task?
- Is there any tool/plugin that monitor application's memory usage while debugging/running
- How to reduce builder time in eclipse?
- how to find the class causing memory leak?
- How to set the default debug memory view rendering and cell size in Eclipse CDT?
- how to increase jboss memory heap size in eclipse
More Query from same tag
- Add shortcut button to comment out code in Eclipse
- Synchronize .ipynb and .py to use ipython notebook and eclipse at the same time
- Adding a simple Enter key functionality to my program in Java
- Buttons of Structure Properties window in Eclipse does not working
- How can i control android mediaplayer?
- Error in Android/Eclipse code
- Eclipse - exclude files from resource search by name
- Android: Getting the Resource File from an App
- How to add jar files for spring in Eclipse IDE project folder
- How to fix this Maven error in eclipse - "Could not calculate build plan: Plugin or one of its dependencies cannot be resolved""
- How can I compile a .jjt file in Eclipse?
- Finding which method is causing a NPE in Eclipse
- One app multiple branding
- Running JUnit tests inside a running OSGi application with IDE integration
- Want to change the adt plugin version of eclipse
- context.xml duplicate attribute uses with the same name and target namespace
- Eclipse C debugger with custom Makefile
- EGit - set up remote tracking correctly when creating a branch
- Show Java code editor in DDMS perspective
- Launching a text file from a .jar file (File path?)
- How to migrate from TortiseSVN to an Eclipse plugin to manage an established SVN project
- Eclipse Galileo - How do I get all dirty editors to save on invocation of ant build?
- OS Doesn't fit emulator AVD
- How to debug a class file in eclipse oxygen
- Eclipse run my program well however JAR-file does not
- How to see my Eclipse version?
- Eclipse Juno- Suddenly “cannot run program 'make' : unknow reason”
- Eclipse can't load liblwjgl64.so
- Checking if the number of a String is even with regex Java
- In Eclipse Find/Replace-field can i alter the regexp-matched result $1?