Interesting. It is pretty amazing and unfortunate after all these years (18?) Sun/Oracle hasn't made the default JVM memory allocation more adaptive/intelligent. Could the JVM -Xms option be used to try to mitigate this defect?
One note, Scala uses more memory than Java does, so it appears not all of this usage can be blamed on the JVM itself: http://benchmarksgame.alioth.debian.org/u32q/benchmark.php?t...
Perhaps it is intelligent for the kind-of applications the JVM is designed for (rather than for tiny tiny toy programs).
There are lots of useful commandline tools written in Java that would no doubt benefit. P.S. I did not downvote.
That may be -- but are commandline tools the kind-of applications the JVM is designed for?
http://programmers.stackexchange.com/a/189552