Answer the question
In order to leave comments, you need to log in
How to wean eclipse to eat a lot of memory?
Advise some effective way how to find why eclipse eats a lot of memory and fix it.
Answer the question
In order to leave comments, you need to log in
Eats a lot of memory - because it is written in Java ;-) Fix it - rewrite it in C ++
You can try to run Eclipse under some profiler (for example YourKit) - with its help you can see in detail what exactly is consuming memory.
By the way, how much "a lot" of memory do you mean?
It may be worth just adjusting your JVM parameters to limit the amount of memory consumed and increase the frequency of GC calls
Eclipse really eats up a lot of memory. To hell with it, that other programs slow down at this moment, but when Eclipse itself starts to slow down, this is already too much. At some point, when editing js files for some reason (everything was more or less normal with php), eclipse hung up tightly, and this with my good mac (16GB + 2.93 core i7), I decided to simply switch to phpStorm. And I don’t regret it at all, and on the contrary, I’m incredibly happy. There are quite interesting and useful features.
By the way, I tried to find magic settings that would obviously force to eat less memory or disable operations that require large resources, but to no avail.
Braking eclipse out of the blue - the moment of garbage collection in the JVM.
The more available memory the JVM has, the less often this process will occur, and faster - the collector also needs to work with something.
For a 32-bit build of eclipse 2 GB - the maximum that you can allocate, I recommend setting at least 1.5 GB, if the size of the RAM allows.
Well, in general, 4 GB of RAM versus 8 - the difference is very striking. Mostly because the computer does not use the swap file.
Add memory, a thousand or two rubles pay off a good feeling from the computer.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question