Ah. I am using the script in WEB-INF/lps/server/bin/lzc which I see
overrides JAVA_OPTS.
I am pretty sure that if you are using ant to launch lzc that you
will need to somehow pass that memory option to the forked process --
JAVA_OPTS is not something the java vm will pick up on its own.
On 2007-04-19, at 07:54 EDT, Pierre Augier wrote:
Doesn't work for me...
do you use directly lzc (via ant exec) or directly to java classes
like i did ? :
<java dir="${build.dir}/flash/root/demos/${ClientPath}"
classname="org.openlaszlo.compiler.Main"
fork="true">
<arg value="${ClientAppName}.lzx"/>
<jvmarg value="-DLPS_HOME=${tmp.dir}/${OLArchive}/Server/
lps-latest"/>
<classpath refid="ol.classpath"/> </java>
i keep trying ... i think it's java configuration problem like what
you propose to me, or maybe it's not the right way to use lzc
regards,
Pierre
P T Withington a écrit :
On 2007-04-19, at 04:57 EDT, Pierre Augier wrote:
set ANT_OPTS=-XX:MaxPermSize=256m
set JAVA_OPTS=-XX:MaxPermSize=256m
set ANT_OPTS=-XX:MaxPermSize=512m
set JAVA_OPTS=-XX:MaxPermSize=512m
for the moment i don't use debug ... but it would be very usefull
when i 'll go deeper into the code ..
I use:
export JAVA_OPTS="-ea -Xmx384m"
and have never seen out of memory on lzc.