Hi, Matt.

"Matt Magoffin" <[EMAIL PROTECTED]> wrote on 2008-03-12 06:30:08 PM:
> >> Do you use any EXSLT string extension functions?  They create result
> >> tree
> >> fragments with token element nodes:
> >>
> >> http://exslt.org/str/functions/tokenize/index.html
> >
> > Agh! Indeed there are some uses of that in some stylesheets, I missed 
it
> > in my previous searches. So... if that extension function is creating
> > these huge DTM documents, do you know if they ever get released? Or 
will
> > they hang around as long as I I hang on to a Templates object?
> 
> I was looking in the org.apache.xalan.lib.ExsltStrings class, and every
> call to tokenize references a cached static Document instance. Could 
this
> be causing all resulting all created Elements in every invocation of
> tokenize() to get retained in the JVM forever? It almost seems as such,
> given the number of these <token> elements piling up in my application's
> heap.

Yes, that's almost certainly the problem.  This has previously been 
reported as Jira issue XALANJ-2215.[1]

Thanks,

Henry
[1] https://issues.apache.org/jira/browse/XALANJ-2215
------------------------------------------------------------------
Henry Zongaro
XML Transformation & Query Development
IBM Toronto Lab   T/L 313-6044;  Phone +1 905 413-6044
mailto:[EMAIL PROTECTED]

Reply via email to