Re: java.lang.OutOfMemoryError

If the process slows down it means the garbage collector of the JVM is
constantly trying to free memory. When the OutOfMemoryError comes the
JVM doesn't have any more memory and gives up.

Please see http://xmlgraphics.apache.org/fop/stable/running.html#memory
for tips to handle OutOfMemoryErrors.

If possible try to switch from a DOM as input document to generating SAX
events. That can reduce memory consumption further. It can also be faster.

On 18.06.2008 17:10:59 Leon Mondejar, Manuel wrote:
> Hello, I'm ussing fop library (specifically fop-0.20.5-2004-10-20.jar).
> The issue is the following: When i try to render a xml file into a pdf
> file, and the source file (xml file)
> Is longer than (more or less) 1 MB, the pdf render process blocks
> himself, at the instrucción
> driver.render((Document)domResultado.getNode()) and, after a large
> amount Of time, i have an Failure of server APACHE bridge on my jsp file that
> called the render process. Rendering another files like html files
> works without any problem. What happens? Any help? Althoug i get the error
> above, the rendering process of the pdf file continues enternely, it's
> very slowy. 
> 
> Much of times, i finally get the java.lang.OutOfMemoryError and the server get down.
> 
> Why?
> 
> Thanks.
> Greetings. 



Jeremias Maerki

Received on Thursday, 19 June 2008 06:12:41 UTC