cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@indexgeo.com.au>
Subject Re: Sitemap regeneration time slowed ?
Date Thu, 07 Feb 2002 14:00:24 GMT
Christian Schmitt wrote:
> Vadim Gritsenko wrote:
> > > Christian Schmitt wrote:
> > > 
> > > Hi all,
> > > after further checking into our "challenge" here,
> > > that's what we've found out:
> > > 
> > > The changes to sitemap.xsl checked in recently checking the
> > > pipeline rules, is what brings sitemap generation to a crawl.
> > 
> > That's exactly what I was thinking after this email :)
>
> Vadim,
> what seems to be the real killer is this construct:
> 
>       <xsl:for-each select=".//*[namespace-uri()=$ns
>           and (local-name()='generate' or local-name()='aggregate' or local-name()='transform')
>           and not(ancestor::map:handle-errors)]">
>         <xsl:if test="not(following::*[namespace-uri()=$ns
>             and (local-name()='serialize' or local-name()='call')
>             and not(ancestor::map:handle-errors)]/ancestor::map:pipeline[. = $pipeline])">
>           <xsl:call-template name="error">
>             <xsl:with-param name="message">Sitemap pipeline with map:generate|aggregate|transform
must have map:serialize.</xsl:with-param>
>           </xsl:call-template>
>         </xsl:if>
>       </xsl:for-each>
> 
> The <xsl:if test ......> </xsl:if> takes about one second for each
> element found.
> 
> Now, not being the XSL guru, I have no idea how to make this faster
> (besides commenting it out ;-) ).
> 
> Cheers,
> Christian

On my machine the initial Cocoon startup never gets past the
first generation of the sitemap. It has been sitting for 12 hours
on the log message "Beginning sitemap regeneration".
According to "top" the "java" process is at 90% CPU and at
20% Memory. So it is not only slow, it is broken.

--David


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message