Re: OutOfMemory problem

2007-08-16 Thread Steve Quirk
On Thu, 16 Aug 2007, Nicolas Baumann wrote: hello, I'm having a problem with a large xml flow with fop, generating an OutOfMemory exception. i'm currently doing this : Source src = new StreamSource(new ByteArrayInputStream(xml.toByteArray())); What is "xml"? A string? If you already have

AW: OutOfMemory problem

2007-08-16 Thread Matthias Müller
den 16. August 2007, 16:30:07 Uhr Betreff: OutOfMemory problem hello, I'm having a problem with a large xml flow with fop, generating an OutOfMemory exception. i'm currently doing this : Source src = new StreamSource(new ByteArrayInputStream(xml.toByteArray())); what should I do to

Re: OutOfMemory problem

2007-08-16 Thread Abel Braaksma
Hi Nicolas, Use the -Xmx and -Xms startup options of the Java JVM to increase the heap size. Note that in your code snippet below you do not take into account the encoding. This may result in encoding problems because Java chooses the default encoding based on system properties and that is n

OutOfMemory problem

2007-08-16 Thread Nicolas Baumann
hello, I'm having a problem with a large xml flow with fop, generating an OutOfMemory exception. i'm currently doing this : Source src = new StreamSource(new ByteArrayInputStream(xml.toByteArray())); what should I do to optimize memory ? Thanks, Nicolas. --