|
From: Tom S. <Tom...@Me...> - 2007-09-26 16:37:00
|
In my previous post I was referring to this code block within wrapper.c
/* 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++;
}
In the most recent wrapper.c the code has been changed to:
/* 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++;
}
which doesn't set a 4096MB limit. Is there any other code setting a =
limit?
Has anyone created a >4GB heap?
Thanks,
Tom
--
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.
|