|
From: Chandra P. <cp...@ig...> - 2007-09-26 17:18:09
|
I have also highlighted this issue before. The workaround is to use=20
java.additional.N=3D-Xmx...
=20
Don't use built-in parameters in wrapper.
=20
________________________________
From: wra...@li...
[mailto:wra...@li...] On Behalf Of Tom
Saulpaugh
Sent: Wednesday, September 26, 2007 9:39 AM
To: wra...@li...
Subject: [Wrapper-user] 4096MB heap limit
=20
In my previous post I was referring to this code block within wrapper.c
=20
/* Maximum JVM memory */
maxMemory =3D getIntProperty(properties, "wrapper.java.maxmemory", =
0);
if (maxMemory > 0) {
maxMemory =3D __min(__max(maxMemory, initMemory), 4096); /*
initMemory <=3D n <=3D 4096 */
if (strings) {
strings[index] =3D malloc(sizeof(char) * (5 + 4 + 1)); /*
Allow up to 4 digits. */
sprintf(strings[index], "-Xmx%dm", maxMemory);
}
index++;
}
=20
In the most recent wrapper.c the code has been changed to:
=20
/* Maximum JVM memory */
maxMemory =3D getIntProperty(properties, "wrapper.java.maxmemory", =
0);
if (maxMemory > 0) {
maxMemory =3D __max(maxMemory, initMemory); /* initMemory <=3D =
n */
if (strings) {
strings[index] =3D malloc(sizeof(char) * (5 + 4 + 1)); /*
Allow up to 4 digits. */
if (!strings[index]) {
outOfMemory("WBJCAI", 9);
return -1;
}
sprintf(strings[index], "-Xmx%dm", maxMemory);
}
index++;
}
=20
which doesn't set a 4096MB limit. Is there any other code setting a
limit?
Has anyone created a >4GB heap?
=20
Thanks,
=20
Tom
=20
Notice: This email and any files transmitted with it are confidential
and intended solely for the individual or entity to which they are
addressed. If you have received this email in error please notify the
sender and destroy any copies of this email and its attachments. You are
hereby notified that any unauthorized review, use, disclosure,
dissemination, distribution, or copying of this communication, or any of
its contents, is strictly prohibited. Please note that any views or
opinions presented in this email are solely those of the author and do
not necessarily represent those of the company. The recipient should
check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus
transmitted by this email.=20
|