Eliminate specifying maximum memory limit
I would like to see java dynamically allocate (and free) memory as its needs arise. Most of the applications I create work with files of varying size. Users can make large files or small files. They can also work with multiple files at a time. I have no way of knowing whatâ€™s a good maximum memory size. Some users can get by with 256 MB. Others require 1 GB.
I know this poses numerous technical problems for the JVM. But frankly, its embarrassing to have to deal with a customer who says my application threw an out of memory exception when they have 2 GB RAM on their machine, nothing else running, and my app was only consuming 512 MB.
This is the single biggest issue with the JVM. And while there is work-around, it requires the user to crash, lose their work, and change an obscure setting that I don't want to expose to them.
I know this topic is already posted in this forum, but the latest one I found was from 2004.