What will happen if you set -Xmx option to more memory than your system has
What will happen if you set -Xmx option to more memory than your system has. I have an application with various customers some have computers with loads of memory and some do not, some run my application in a way that requires alot of memory and some do not. I would like the application to use all the available memory if necessary to avoid out of memory errors but I have to set the max to be used at startup, and I've erred on the low side (256mb) so far so that all systems can cope, vut then I have customers with plenty memory complaining that the app has run out of memory even though they have 4GB (because of course app is only using 256mb regardless.)
I'm using java 1.5
thanks Paul