Hi ,
I have to set the memory limit of the JVM to prevent ouofmemory error
and can someone help me how do i set this in an application .
Thanks in advance,
rufus
Roedy Green - 27 Oct 2005 07:07 GMT
>I have to set the memory limit of the JVM to prevent ouofmemory error
>and can someone help me how do i set this in an application .
You mean once you have started running the app? You can't. It would
be like changing your tires while barrelling along the freeway.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
HalcyonWild - 28 Oct 2005 02:02 GMT
> Hi ,
>
> I have to set the memory limit of the JVM to prevent ouofmemory error
> and can someone help me how do i set this in an application .
====
I dont think this can prevent OutOfMemory Error. Setting limits on the
memory usage, will not allow JVM to access more memory, even when
available.
Or , I am mistaken. JVM takes some value by default, and you have to
tell it to use more memory.
Anyway, there is an option to use,
-Xms128m -Xmx256m
initial size is 128 MB, max limit is 256 MB