You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Bill Snyder <ws...@leadscope.com> on 2000/11/02 23:09:27 UTC

Xalan Java2 Memory Requirements

Hello,

In the Basic Usage section for Xalan 2, step 4, you state:

"The Transformer uses the XMLParser to parse the XML input and sends parse
events to a SAX ContentHandler, which assembles the input into a DOM tree.
Of course this operation is unnecessary if the XML input is submitted as a
DOM"

I am I correct to imply that the entire Result object is read into memory
before output?

I am trying to do a simple transform on a large XML doc and repeatedly get a
Out of Memory error(on a PIII800/256Ram machine). Are there limits on the
size of input/output documents? Is there a way to divert the output document
from residing in memory?

Many Thanks,

Bill Snyder


Re: Xalan Java2 Memory Requirements

Posted by Benoit Cerrina <be...@writeme.com>.
Hi,
you probably tried it already but you may want to set the -mx parameter of
your jvm, jvms tend to refuse to extend their heap size no matter the amount
of system memory in your machine, I don't remember the exact number but the
default max heap size seems ridiculous (especially considering the memory
footprint of the class libs and jvm itself)
Benoit

> I am trying to do a simple transform on a large XML doc and repeatedly get
a
> Out of Memory error(on a PIII800/256Ram machine). Are there limits on the
> size of input/output documents? Is there a way to divert the output
document
> from residing in memory?
>
> Many Thanks,
>
> Bill Snyder
>