> > I currently face the problem that cocoon stops to work with various
> > exceptions (i.e. FileNotFoundException), all stating "too many open
> > files".
> > [...]
> > It seems that cocoon opens the referenced XML file every 
> > time document() is called, resulting in the creation of a
> > new file descriptor for this file. A new file descriptor
> > is even created if the same file within the same
> > transformation has already been opened. And even worse 
> > these files stay open -- for a while at least.

> did you check bug 31116 ? There are a few suggestions as to 
> what could cause this.

Now ... yes. Thank you for the hint.
But even though the bug has status 'resolved', I can't see any
suggestions which solve the root of the problem. INHO only the symptoms
are addressed. Tuning the garbage collector won't be a *real* solution.
It just hides the problem some kind.

As a work-around using aggregation instead of document() could work,
although this would be a bit awkward when including XML files just for
looking-up some values, when the included tree won't be output to the
resulting document...

Another strange thing is, that not all XML files I use for look-ups stay
open. I have one other file which I access only once within a
transformation. It never shows up in the list of open files.
The other will show up about 30 times just after processing a single
request!


Regards,

Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to