K
Kevin
Hi,
I am thinking whether is that possible (and how to do it) to set the
Xmx at run time?
The reason is:
Since I'd like to distribute the .exe executable rather than the .jar
files, when creating the .exe file (I am using JBuilder, under MS
Win32), it needs to hard code the Xmx parameter. The problem is: I
think it would be very bad to set it to 1000M if the .exe will be used
on a machine with only 512M physical memory (I think Java's lazy memory
collection will wait until it use ups all the 1000M memory before it
starts to collect memory, right?).
So is there any way to "inform" the VM the correct Xmx to use at run
time?
Thanks.
Kevin
I am thinking whether is that possible (and how to do it) to set the
Xmx at run time?
The reason is:
Since I'd like to distribute the .exe executable rather than the .jar
files, when creating the .exe file (I am using JBuilder, under MS
Win32), it needs to hard code the Xmx parameter. The problem is: I
think it would be very bad to set it to 1000M if the .exe will be used
on a machine with only 512M physical memory (I think Java's lazy memory
collection will wait until it use ups all the 1000M memory before it
starts to collect memory, right?).
So is there any way to "inform" the VM the correct Xmx to use at run
time?
Thanks.
Kevin