You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by "Litton, Tom - CEPM" <To...@cepm-us.com> on 2005/02/08 00:15:33 UTC
help with memory consumption
To whom it may concern (if anyone),
I'm having memory problems with xalan. I've ran it through a memory profiler and most of the memory comes from int arrays (int[]).
Most of them seem to be from the call to DTMDefaultBase.declareNamespaceInContext(int, int) (which is creating a list of SuballocatedintVector instances). Is there any way of avoiding this call? I've already added all the result prefixes I could to exclude-result-prefixes attribute.
Is there anything else I should avoid doing in the XSLT, in order to save some memory?
Re: help with memory consumption
Posted by Henry Zongaro <zo...@ca.ibm.com>.
Hi, Tom.
"Litton, Tom - CEPM" <To...@cepm-us.com> wrote on 2005-02-07 06:15:33
PM:
> To whom it may concern (if anyone),
> I'm having memory problems with xalan. I've ran it through a memory
> profiler and most of the memory comes from int arrays (int[]).
> Most of them seem to be from the call to DTMDefaultBase.
> declareNamespaceInContext(int, int) (which is creating a list of
> SuballocatedintVector instances). Is there any way of avoiding this
> call?
The int arrays in DTMDefaultBase.declareNamespaceInContext are used
to represent namespace nodes in your input document. The arrays are sized
to favour documents with a small number of namespace nodes. Do your input
documents use a relatively large number of namespace declarations?
Thanks,
Henry
------------------------------------------------------------------
Henry Zongaro Xalan development
IBM SWS Toronto Lab T/L 969-6044; Phone +1 905 413-6044
mailto:zongaro@ca.ibm.com