Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What will happen if you set -Xmx option to more memory than your system has

paultaylorSep 27 2007 — edited Sep 27 2007
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 25 2007
Added on Sep 27 2007
5 comments
431 views