How increase heap size dinamically?

Is there any posibility to increase heap size dinamically, without restarting JVM with a line command like -Xmx256mIf so, please help me.
[151 byte] By [flexeda] at [2007-11-27 3:49:29]
# 1

I have found the answer. I suppose it is not possible.

But if the possibility, that the big image will be loaded is too smal, I can't define the heap size to 1GB. Otherwise, if it will happend, the user will have a problem. To increase the size of the heap manually is not a good solution for the user.

Is there any workaround to do it runtime on OutOfMemory Exception?

flexeda at 2007-7-12 8:53:22 > top of Java-index,Java HotSpot Virtual Machine,Specifications...