6 ms·
It hasn't been my experience, especially since the JVM's parameters need to be tweaked for it to accept that much memory ... the heap size is limited by default
by bad_user 17y ago
It hasn't been my experience, especially since the JVM's parameters need to be tweaked for it to accept that much memory ... the heap size is limited by default because the JVM doesn't release free memory to the operating system.
In practice the JVM does quite well on memory usage, its only flaw being that it doesn't release memory back. If your Eclipse instance ends up using 2 GB that's because it does lots of stuff and needs 2 GB of memory.
Either way, Eclipse is comparable in memory usage with Visual Studio, which has most of its components written in C++.
The only problem with using Java for desktop apps is with native integration with the OS ... Java GUI toolkits suck badly, except one which isn't really popular ... Qt Jambi.
But in the case of Android, this discussion is not really relevant ... they use their own VM that has different optimization goals (so any comparison to the JVM is apples vs oranges), and every component you use is native to Android.
- brazzy 17y agothe JVM doesn't release free memory to the operating system. Not true. The Sun/Oracle JVM at least most definitely releases free memory. It's just rather reluctant to do so - but that, too, can be tweaked via the -XX:MinHeapFreeRatio and -XX:MaxHeapFreeRatio parameters