skybert/ece-scripts — Issue #26: Make an informed guess about memory usage
Author: mogsie
Created: 2011-10-25 18:54:46+00:00
State: open

Either at install time, or perhaps even at run time (if so configured) try to make an educated guess on weighing memory between instances.

I might be running a single instance on a VM, and I would be happy to allocate, say 75% of my RAM to heap, it would be easy to make a calculation of what to pass to -Xmx to achieve that. And if I have three instances, I want them to share 75% evenly amongst themselves.

Or, to keep it simple, maybe: don't ever try to allocate a heap bigger than the amount of available ram :-)