This content has been marked as final. Show 4 replies
Contrary to your theory that it's a common problem, I doubt that there are many people distributing Java programs with large memory requirements to a heterogeneous collection of machines with different memory sizes. I think the answer is that people don't set memory usage dynamically in Java.
And the other answer is that it's a contradiction in terms.
888949 wrote:...you respond by reminding them of the well-documented minimum memory requirements and you ask them if their host meets those requirements.
We package a software with -Xmx512M, but then when people call and say "my program freezes up" ...
...or design it so it doesn't need that much memory in the first place. Especially for an app that 'users' can routinely cause it to use more memory than available I would wonder how you keep it from running out even with 2G.