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 not always UTF-8
(and maybe your xml is not even in UTF-8). Make it explicit based on the
encoding used in xml to avoid hard-to-track problems.
Cheers,
-- Abel Braaksma
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 should I do to optimize memory ?
Thanks,
Nicolas.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]