Some Java installs require the specified memory amounts to be powers of 2.
Any non-power-of-2 value should display a small message indicating this. as it's a fairly rare issue, the message needn't be large or garish.
The slider's glow should also change color to match the note. Soothing blue when safe, other color when note. Possibly add a dismiss link or launcher option to toggle this behavior off.