<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px"
bgColor=#ffffff leftMargin=0 topMargin=0 name="Compose message area"
CanvasTabStop="true">
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT face=Georgia
color=#0000ff>Try changing the line:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT face=Georgia
color=#0000ff> set
JAVAOPTS=-Denv.windir=%WINDIR%</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT face=Georgia
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT face=Georgia
color=#0000ff>to</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT
color=#0000ff> <FONT face=Georgia>set JAVAOPTS=-Xms256m
-Xmx512m -Denv.windir=%WINDIR%</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT face=Georgia
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT face=Georgia
color=#0000ff>You may also need to put quotes around the %JAVAOPTS% in the last
line, but it looks like you can get away without them. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT face=Georgia
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT face=Georgia
color=#0000ff>If you still get heap errors, try:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT
color=#0000ff> <FONT face=Georgia>set JAVAOPTS="-Xms512m
-Xmx1024m -Denv.windir=%WINDIR%"</FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT face=Georgia
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=277550018-05032009><FONT face=Georgia
color=#0000ff>By the way, if you're using 32-bit Vista, you only have available
about 3.0 to 3.5 GB of RAM of the 4.0 GB installed, depending on your hardware
configuration. This is not a Vista or Windows limitation: 32-bit versions of OS
X and Linux are also limited to 3.0-3.5 GB of RAM on Intel machines with 4 GB
installed. The reason why is a long story, so let's call it a hardware
limitation. </FONT></SPAN></DIV></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> oxygen-user-bounces@oxygenxml.com
[mailto:oxygen-user-bounces@oxygenxml.com] <B>On Behalf Of </B>Mark
Wilson<BR><B>Sent:</B> Thursday, March 05, 2009 12:13 PM<BR><B>To:</B>
oxygen-user@oxygenxml.com<BR><B>Subject:</B> [oXygen-user] Out of memory
problem<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>This is likely not the right list for this question, but please help if you
can. </DIV>
<DIV><BR>Using Oxygen's scenario mechanism, I am able to run the built-in FOP
and produce my PDF file with no problems. However, when I try to do the same
thing from a BAT using my stand-alone FOP 0.95, I get an "out of java heap space
memory". I Googled and found lots of information for people who know java or
Linux (I know neither). I know I have to change the fop.bat file but do not
understand exactly how to do that. Concerning java, the
fop.bat has the lines:<BR><BR><FONT size=2>set
JAVAOPTS=-Denv.windir=%WINDIR%<BR><BR>if "%JAVA_HOME%" == "" goto
noJavaHome<BR>if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome<BR>if
"%JAVACMD%" == "" set JAVACMD=%JAVA_HOME%\bin\java<BR>goto
runFop<BR><BR>:noJavaHome<BR>if "%JAVACMD%" == "" set
JAVACMD=java<BR><BR>:runFop<BR>rem ECHO "%JAVACMD%"<BR>"%JAVACMD%" %JAVAOPTS%
%LOGCHOICE% %LOGLEVEL% -cp "%LOCALCLASSPATH%" org.apache.fop.cli.Main
%FOP_CMD_LINE_ARGS%<BR></DIV></FONT>
<DIV>What do I add or change?<BR><BR> I have 4 gig of memory on a Vista
machine. What do I add or change so that my stand-alone FOP will have the same
heap size as the Oxygen built-in FOP?</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks for any consideration you can give
me,</FONT></DIV>
<DIV><FONT face=Arial size=2>Mark</FONT></DIV></BODY></HTML>