Is there a way to instruct Eclipse to unload memory while minimizing it?

I use eclipse with many plugins and will have several windows open at a time, and the memory usage is huge and my system freezes most of the time.

In FireFox, we can set the flag config.trim_on_minimize = true and whenever FireFox is minimized, RAM usage is reduced. (i.e. swap), I wonder if there is any option in eclipse to do the same?

Thanks.

+4
source share
1 answer

I assume that you are running Windows. It seems that the operating system (at least Windows XP) has a tendency to quickly change a working Java application when it is minimized. Bringing back applications has a kind of "lethargy."

To prevent this behavior, a fix was implemented in Eclipse. You can read about this in error 85072 . I do not think you can change that.

One question: when your system starts to hang, all physical memory has disappeared, and the whole system slows down or just Eclipse? In the latter case, GC can slow down Eclipse, so if you have free memory, you can try adding more memory for Eclipse (increasing the -Xmx value in the eclipse.ini file).

+1
source

Source: https://habr.com/ru/post/1308364/


All Articles