Increasing Heap size....

Hi all,Im getting OutofMemory error in one of my applications.please can any one tell me how to increase the size of JVM Heap size programatically.waiting for ur response...Thanx in Advance...
[227 byte] By [b.thirupathi.reddya] at [2007-11-26 16:49:14]
# 1
there are command-line switches to specify the heap size at startup of the JVM. I'd be looking a bit more closely at why you're running out of memory, though
georgemca at 2007-7-8 23:16:45 > top of Java-index,Core,Core APIs...
# 2
here I want to control that while running.thats y i need some way of programming for controlling Heap Size. http://completejava-group.blogspot.com/ http://tech.groups.yahoo.com/group/completeJava/messages
b.thirupathi.reddya at 2007-7-8 23:16:46 > top of Java-index,Core,Core APIs...
# 3

I don't think you can alter the heap size dynamically. I might well be wrong, though. anyways, this forum isn't the right - and therefore isn't the best place to ask this. try one of the [url=http://forum.java.sun.com/category.jspa?categoryID=41]JVM[/url] forums

but I stil think if you feel a need to adjust the heap size dynamically, you may well have other, more easily-solved problems. get a profiler, find out where all your memory is going, and work from there

georgemca at 2007-7-8 23:16:46 > top of Java-index,Core,Core APIs...