You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jon Steeves <Jo...@pmc-sierra.com> on 2003/02/19 21:54:14 UTC

How do you set the memory size for FOP

Hello:

	FOP bombs at about 150 pages with a "java.lang.outofmemory" error.  I gather that the solution is to adjust the size of the java vm using, say, "-Xmx256m".  Unfortunately, I know absolutely nothing about using java, so I don't know where to do this.

	I'm using windows NT and here's the batch file I use to run FOP:

cd c:\fop
java -cp  build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;li b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar  org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf
pause


	Can I increase the mem-size within this sequence of commands?  And if so, how would it look? 

Thanks

Jon

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: How do you set the memory size for FOP

Posted by Roland Neilands <rn...@pulsemining.com.au>.
Jon,

Amywhere before the FOP call should work:

> 	Can I increase the mem-size within this sequence of 
> commands?  And if so, how would it look? 

> cd c:\fop
> java -cp  
> build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2
> .3.jar;li 
> b\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar

-Xmx256m

>   org.apache.fop.apps.Fop c:\drb\output.fo c:\drb\output.pdf
> pause

Cheers,
Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org