Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When using Eclipse I have noticed a significant difference in it's memory usage when run under different Java platforms. When using a 32-bit Java platform it has been using ~200MB RAM, however when running under 64-bit this is significantly increased to ~700MB.

Is this behaviour expected and why does it occur?

share|improve this question

2 Answers 2

The maximum amount of memory used by Java is specified on command line (max heap size parameter -Xmx). If nothing is specified a default value is used. This default value has increased within the last year. Before it was about 200 MB and nowadays it is much higher.

Therefore I assume you are using a very old Java 32 bit version which therefore used the old default value.

You can specify the values for Eclipse in the eclipse.ini and therefore set the amount of memory you want.

See also FAQ How do I increase the heap size available to Eclipse?. Lowering the heap size is the same process.

^But I have to mention that in general 64bit processes require more memory because of the larger address pointers they use. Therefore you may get OutOfMemory errors when trying to run Eclipse with a max heap size of only 200 MB.

Eclipse was and is a huge memory monster. The more it gets the better it runs...

share|improve this answer

Try looking at your eclipse.ini file this specifies how much memory eclipse can chew through. You should be able to lower the amount of memory it uses. But Developing with java generally uses quite a bit RAM.

Bill

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.