You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jorg Heymans <jh...@domek.be> on 2004/01/19 14:22:56 UTC
slow pipeline (svg, aggregation)
You can tell my problem from this line in the access log:
INFO (2004-01-19) 14:00.15:336 [access] (/my.svg)
http8080-Processor8/CocoonServlet: 'my.svg' Processed by Apache Cocoon
2.0.4 in 3.6660166 minutes.
So one SVG takes about 3.5 minutes to render. Now if i was rendering the
surface of mars in svg i'ld be happy with this response time. For a 100k
svg file i'm not. On faster machine i get like 50-150 seconds, depends
(on what?)
Sitemap.log reveals the delay starts with the contentaggregator
DEBUG (2004-01-19) 13:56.35:405 [sitemap] (my.svg)
http8080-Processor8/ContentAggregator: ContentAggregator: generating
aggregated content
DEBUG (2004-01-19) 14:00.13:763 [sitemap] (my.svg)
http8080-Processor8/ResourceLimitingPool: Put a
mypackage.CachingRequestGenerator back into the pool.
Core.log points to the JaxpParser
DEBUG (2004-01-19) 13:56.35:406 [core.manager]
(/app/cod/12L0101GE/render/heart_ginko_22_132x176.svg)
http8080-Processor8/ResourceLimitingPool: Got a
org.apache.avalon.excalibur.xml.JaxpParser from the pool.
DEBUG (2004-01-19) 14:00.13:739 [core.manager] (my.svg)
http8080-Processor8/ResourceLimitingPool: Put a
org.apache.avalon.excalibur.xml.JaxpParser back into the pool.
My pipeline is an aggregated one
<map:match pattern="*/render/*.svg">
<map:aggregate element="aggregation">
<map:part src="file://{1}/{2}.svg"/>
<!-- we need this part because of the aggregator caching bug -->
<map:part
src="cocoon:/aggregate/{2}.svg?p1={request-param:param01}&p2={request-param:param02}&p3={request-param:param03}&p4={request-param:param04}&p2={request-param:param05}&p2={request-param:param05}&p6={request-param:param06}&p7={request-param:param07}&p8={request-param:param08}&p9={request-param:param09}&p10={request-param:param10}"/>
</map:aggregate>
<map:transform src="stylesheets/make_svg.xsl"/>
<map:serialize type="svg2png"/>
</map:match>
<map:match pattern="aggregate/*.svg">
<map:generate type="cachingrequest"/>
<map:serialize type="xml"/>
</map:match>
Thoughts?
Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: slow pipeline (svg, aggregation)
Posted by Jorg Heymans <jh...@domek.be>.
thanks for pointing me to "catalogs" because it seems that's exactly
what i'm looking for. Having a few probs configuring it though,
continuing this in thread "catalog entities" from a few days ago.
Jorg
Geoff Howard wrote:
> Jorg Heymans wrote:
>
>> Why is the svgserializer making an http call to web5.w3.org every time
>> a template is rendered? Would the used doctype be the culprit here?
>>
>> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
>> "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
>
>
> Look at the "catalog" support in the examples and docs to provide a
> local copy of the dtd. Yes, this is standard xml behavior - except IIRC
> the mechanism to turn off dtd resolving is somewhat broken in the xml
> libraries most people use (xerces/xalan).
>
> Geoff
>
>> Batik seems quite picky about which doctype to use so i don't have
>> many options here. This could ofcourse explain the random behaviour in
>> rendering times (now they are rendered in about 10-30 seconds).
>>
>> Additionally would I need to worry if
>> a)i run this in a closed environment ie no external internet available
>> b)this w3.org domain goes down
>>
>> Is this a general XML feature that can be switched off?
>>
>>
>> Jorg
>>
>>
>> Jorg Heymans wrote:
>>
>>> You can tell my problem from this line in the access log:
>>>
>>> INFO (2004-01-19) 14:00.15:336 [access] (/my.svg)
>>> http8080-Processor8/CocoonServlet: 'my.svg' Processed by Apache
>>> Cocoon 2.0.4 in 3.6660166 minutes.
>>>
>>> So one SVG takes about 3.5 minutes to render. Now if i was rendering
>>> the surface of mars in svg i'ld be happy with this response time. For
>>> a 100k svg file i'm not. On faster machine i get like 50-150 seconds,
>>> depends (on what?)
>>>
>>>
>>> Sitemap.log reveals the delay starts with the contentaggregator
>>>
>>> DEBUG (2004-01-19) 13:56.35:405 [sitemap] (my.svg)
>>> http8080-Processor8/ContentAggregator: ContentAggregator: generating
>>> aggregated content
>>> DEBUG (2004-01-19) 14:00.13:763 [sitemap] (my.svg)
>>> http8080-Processor8/ResourceLimitingPool: Put a
>>> mypackage.CachingRequestGenerator back into the pool.
>>>
>>> Core.log points to the JaxpParser
>>>
>>> DEBUG (2004-01-19) 13:56.35:406 [core.manager]
>>> (/app/cod/12L0101GE/render/heart_ginko_22_132x176.svg)
>>> http8080-Processor8/ResourceLimitingPool: Got a
>>> org.apache.avalon.excalibur.xml.JaxpParser from the pool.
>>> DEBUG (2004-01-19) 14:00.13:739 [core.manager] (my.svg)
>>> http8080-Processor8/ResourceLimitingPool: Put a
>>> org.apache.avalon.excalibur.xml.JaxpParser back into the pool.
>>>
>>> My pipeline is an aggregated one
>>>
>>> <map:match pattern="*/render/*.svg">
>>> <map:aggregate element="aggregation">
>>> <map:part src="file://{1}/{2}.svg"/>
>>> <!-- we need this part because of the aggregator caching bug -->
>>> <map:part
>>> src="cocoon:/aggregate/{2}.svg?p1={request-param:param01}&p2={request-param:param02}&p3={request-param:param03}&p4={request-param:param04}&p2={request-param:param05}&p2={request-param:param05}&p6={request-param:param06}&p7={request-param:param07}&p8={request-param:param08}&p9={request-param:param09}&p10={request-param:param10}"/>
>>>
>>> </map:aggregate>
>>> <map:transform src="stylesheets/make_svg.xsl"/>
>>> <map:serialize type="svg2png"/>
>>> </map:match>
>>>
>>> <map:match pattern="aggregate/*.svg">
>>> <map:generate type="cachingrequest"/>
>>> <map:serialize type="xml"/>
>>> </map:match>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: slow pipeline (svg, aggregation)
Posted by Geoff Howard <co...@leverageweb.com>.
Jorg Heymans wrote:
> Why is the svgserializer making an http call to web5.w3.org every time a
> template is rendered? Would the used doctype be the culprit here?
>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
> "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
Look at the "catalog" support in the examples and docs to provide a
local copy of the dtd. Yes, this is standard xml behavior - except IIRC
the mechanism to turn off dtd resolving is somewhat broken in the xml
libraries most people use (xerces/xalan).
Geoff
> Batik seems quite picky about which doctype to use so i don't have many
> options here. This could ofcourse explain the random behaviour in
> rendering times (now they are rendered in about 10-30 seconds).
>
> Additionally would I need to worry if
> a)i run this in a closed environment ie no external internet available
> b)this w3.org domain goes down
>
> Is this a general XML feature that can be switched off?
>
>
> Jorg
>
>
> Jorg Heymans wrote:
>
>> You can tell my problem from this line in the access log:
>>
>> INFO (2004-01-19) 14:00.15:336 [access] (/my.svg)
>> http8080-Processor8/CocoonServlet: 'my.svg' Processed by Apache Cocoon
>> 2.0.4 in 3.6660166 minutes.
>>
>> So one SVG takes about 3.5 minutes to render. Now if i was rendering
>> the surface of mars in svg i'ld be happy with this response time. For
>> a 100k svg file i'm not. On faster machine i get like 50-150 seconds,
>> depends (on what?)
>>
>>
>> Sitemap.log reveals the delay starts with the contentaggregator
>>
>> DEBUG (2004-01-19) 13:56.35:405 [sitemap] (my.svg)
>> http8080-Processor8/ContentAggregator: ContentAggregator: generating
>> aggregated content
>> DEBUG (2004-01-19) 14:00.13:763 [sitemap] (my.svg)
>> http8080-Processor8/ResourceLimitingPool: Put a
>> mypackage.CachingRequestGenerator back into the pool.
>>
>> Core.log points to the JaxpParser
>>
>> DEBUG (2004-01-19) 13:56.35:406 [core.manager]
>> (/app/cod/12L0101GE/render/heart_ginko_22_132x176.svg)
>> http8080-Processor8/ResourceLimitingPool: Got a
>> org.apache.avalon.excalibur.xml.JaxpParser from the pool.
>> DEBUG (2004-01-19) 14:00.13:739 [core.manager] (my.svg)
>> http8080-Processor8/ResourceLimitingPool: Put a
>> org.apache.avalon.excalibur.xml.JaxpParser back into the pool.
>>
>> My pipeline is an aggregated one
>>
>> <map:match pattern="*/render/*.svg">
>> <map:aggregate element="aggregation">
>> <map:part src="file://{1}/{2}.svg"/>
>> <!-- we need this part because of the aggregator caching bug -->
>> <map:part
>> src="cocoon:/aggregate/{2}.svg?p1={request-param:param01}&p2={request-param:param02}&p3={request-param:param03}&p4={request-param:param04}&p2={request-param:param05}&p2={request-param:param05}&p6={request-param:param06}&p7={request-param:param07}&p8={request-param:param08}&p9={request-param:param09}&p10={request-param:param10}"/>
>>
>> </map:aggregate>
>> <map:transform src="stylesheets/make_svg.xsl"/>
>> <map:serialize type="svg2png"/>
>> </map:match>
>>
>> <map:match pattern="aggregate/*.svg">
>> <map:generate type="cachingrequest"/>
>> <map:serialize type="xml"/>
>> </map:match>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: slow pipeline (svg, aggregation)
Posted by Jorg Heymans <jh...@domek.be>.
Why is the svgserializer making an http call to web5.w3.org every time a
template is rendered? Would the used doctype be the culprit here?
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
Batik seems quite picky about which doctype to use so i don't have many
options here. This could ofcourse explain the random behaviour in
rendering times (now they are rendered in about 10-30 seconds).
Additionally would I need to worry if
a)i run this in a closed environment ie no external internet available
b)this w3.org domain goes down
Is this a general XML feature that can be switched off?
Jorg
Jorg Heymans wrote:
> You can tell my problem from this line in the access log:
>
> INFO (2004-01-19) 14:00.15:336 [access] (/my.svg)
> http8080-Processor8/CocoonServlet: 'my.svg' Processed by Apache Cocoon
> 2.0.4 in 3.6660166 minutes.
>
> So one SVG takes about 3.5 minutes to render. Now if i was rendering the
> surface of mars in svg i'ld be happy with this response time. For a 100k
> svg file i'm not. On faster machine i get like 50-150 seconds, depends
> (on what?)
>
>
> Sitemap.log reveals the delay starts with the contentaggregator
>
> DEBUG (2004-01-19) 13:56.35:405 [sitemap] (my.svg)
> http8080-Processor8/ContentAggregator: ContentAggregator: generating
> aggregated content
> DEBUG (2004-01-19) 14:00.13:763 [sitemap] (my.svg)
> http8080-Processor8/ResourceLimitingPool: Put a
> mypackage.CachingRequestGenerator back into the pool.
>
> Core.log points to the JaxpParser
>
> DEBUG (2004-01-19) 13:56.35:406 [core.manager]
> (/app/cod/12L0101GE/render/heart_ginko_22_132x176.svg)
> http8080-Processor8/ResourceLimitingPool: Got a
> org.apache.avalon.excalibur.xml.JaxpParser from the pool.
> DEBUG (2004-01-19) 14:00.13:739 [core.manager] (my.svg)
> http8080-Processor8/ResourceLimitingPool: Put a
> org.apache.avalon.excalibur.xml.JaxpParser back into the pool.
>
> My pipeline is an aggregated one
>
> <map:match pattern="*/render/*.svg">
> <map:aggregate element="aggregation">
> <map:part src="file://{1}/{2}.svg"/>
> <!-- we need this part because of the aggregator caching bug -->
> <map:part
> src="cocoon:/aggregate/{2}.svg?p1={request-param:param01}&p2={request-param:param02}&p3={request-param:param03}&p4={request-param:param04}&p2={request-param:param05}&p2={request-param:param05}&p6={request-param:param06}&p7={request-param:param07}&p8={request-param:param08}&p9={request-param:param09}&p10={request-param:param10}"/>
>
> </map:aggregate>
> <map:transform src="stylesheets/make_svg.xsl"/>
> <map:serialize type="svg2png"/>
> </map:match>
>
> <map:match pattern="aggregate/*.svg">
> <map:generate type="cachingrequest"/>
> <map:serialize type="xml"/>
> </map:match>
>
>
> Thoughts?
> Jorg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: slow pipeline (svg, aggregation)
Posted by Joerg Heinicke <jo...@gmx.de>.
On 19.01.2004 15:42, Jan Hoskens wrote:
> Well, I'm currently using both (started with cinclude, then just curious to
> use xinclude, ending up with them both;-), but have not yet noticed a big
> difference between them (nor any problems). The only thing to keep in mind,
> as far as I know, is that cinclude is cocoon-specific. I do not know if
> there are important differences that may affect your performance.
>
> A cocoon-guru's opinion would be very usefull here!
I don't see me as a guru, but a heavy user, but here is my opinion. The
differences on implementation level and so on performance or working in
general should be marginal - besides that cinclude is cacheable while
xinclude is not. Therefore xinclude in 2.1 is standard compliant, in 2.0
it is not. And choosing sitemap aggregation or c/xinclude depeds on
static or dynamic number of includes. If you know you always have to
aggregate header, footer, navigation and content of a page, use sitemap
aggregation. If it depends on the input and the number is dynamic use
xinclude. If the process takes to much time or the included stuff is
mostly static use the caching provided with cinclude. I can not confirm
that sitemap aggregation does not work or is buggy. When something is
buggy - and it is at least more often than I would like to see it for
such an important feature - than it is the internal processing using
cocoon:/. But there is no difference for it between sitemap aggregation,
cinclude or xinclude.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: slow pipeline (svg, aggregation)
Posted by Jan Hoskens <jh...@schaubroeck.be>.
Well, I'm currently using both (started with cinclude, then just curious to
use xinclude, ending up with them both;-), but have not yet noticed a big
difference between them (nor any problems). The only thing to keep in mind,
as far as I know, is that cinclude is cocoon-specific. I do not know if
there are important differences that may affect your performance.
A cocoon-guru's opinion would be very usefull here!
Bye,
Jan
----- Original Message -----
From: "Katharina Weimer" <ka...@gmx.de>
To: <us...@cocoon.apache.org>
Sent: Monday, January 19, 2004 3:20 PM
Subject: Re: slow pipeline (svg, aggregation)
> I'm using content aggregation as well a lot and somehow I'm not that
> satisfied with the speed of results too.
> I just found the cinclude transformer and am thinking about replacing my
> current content aggregations with it.. (Just did some tests and was quite
> satisfied with it !)
>
> My question: what's better? Using Cocoons Implementation Cinclude, or is
it
> better to use the standardized XInclude to be not depended on Cocoon
itself?
> Are there big differences ?
>
> Greetz,
> Katharina
>
>
>
> > I also used an aggregation to create my pages, until marc pointed me out
> > that you can do the same with xinclude. When I changed to xinclude
> > (passing
> > the URI as a variable) I had the impression that it all went just a
little
> > faster (Or was I just thinking slower;-). Maybe it's worth a try, it's
> > easy
> > to set up and may give a better result. (just one page, pass your uri
and
> > use the xinclude transformer)
> >
> > Cheers,
> >
> > Jan
> >
> > ----- Original Message -----
> > From: "Jorg Heymans" <jh...@domek.be>
> > To: <us...@cocoon.apache.org>
> > Sent: Monday, January 19, 2004 2:22 PM
> > Subject: slow pipeline (svg, aggregation)
> >
> >
> > > You can tell my problem from this line in the access log:
> > >
> > > INFO (2004-01-19) 14:00.15:336 [access] (/my.svg)
> > > http8080-Processor8/CocoonServlet: 'my.svg' Processed by Apache Cocoon
> > > 2.0.4 in 3.6660166 minutes.
> > >
> > > So one SVG takes about 3.5 minutes to render. Now if i was rendering
the
> > > surface of mars in svg i'ld be happy with this response time. For a
100k
> > > svg file i'm not. On faster machine i get like 50-150 seconds, depends
> > > (on what?)
> > >
> > >
> > > Sitemap.log reveals the delay starts with the contentaggregator
> > >
> > > DEBUG (2004-01-19) 13:56.35:405 [sitemap] (my.svg)
> > > http8080-Processor8/ContentAggregator: ContentAggregator: generating
> > > aggregated content
> > > DEBUG (2004-01-19) 14:00.13:763 [sitemap] (my.svg)
> > > http8080-Processor8/ResourceLimitingPool: Put a
> > > mypackage.CachingRequestGenerator back into the pool.
> > >
> > > Core.log points to the JaxpParser
> > >
> > > DEBUG (2004-01-19) 13:56.35:406 [core.manager]
> > > (/app/cod/12L0101GE/render/heart_ginko_22_132x176.svg)
> > > http8080-Processor8/ResourceLimitingPool: Got a
> > > org.apache.avalon.excalibur.xml.JaxpParser from the pool.
> > > DEBUG (2004-01-19) 14:00.13:739 [core.manager] (my.svg)
> > > http8080-Processor8/ResourceLimitingPool: Put a
> > > org.apache.avalon.excalibur.xml.JaxpParser back into the pool.
> > >
> > > My pipeline is an aggregated one
> > >
> > > <map:match pattern="*/render/*.svg">
> > > <map:aggregate element="aggregation">
> > > <map:part src="file://{1}/{2}.svg"/>
> > > <!-- we need this part because of the aggregator caching bug -->
> > > <map:part
> > >
> >
>
src="cocoon:/aggregate/{2}.svg?p1={request-param:param01}&p2={request-pa
> >
>
ram:param02}&p3={request-param:param03}&p4={request-param:param04}&a
> >
>
mp;p2={request-param:param05}&p2={request-param:param05}&p6={request
> >
> -param:param06}&p7={request-param:param07}&p8={request-param:param
08
> > }&p9={request-param:param09}&p10={request-param:param10}"/>
> > > </map:aggregate>
> > > <map:transform src="stylesheets/make_svg.xsl"/>
> > > <map:serialize type="svg2png"/>
> > > </map:match>
> > >
> > > <map:match pattern="aggregate/*.svg">
> > > <map:generate type="cachingrequest"/>
> > > <map:serialize type="xml"/>
> > > </map:match>
> > >
> > >
> > > Thoughts?
> > > Jorg
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: users-help@cocoon.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
> --
> HAKUNA MATATA !!!
>
> +++ GMX - die erste Adresse für Mail, Message, More +++
> Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: slow pipeline (svg, aggregation)
Posted by Katharina Weimer <ka...@gmx.de>.
I'm using content aggregation as well a lot and somehow I'm not that
satisfied with the speed of results too.
I just found the cinclude transformer and am thinking about replacing my
current content aggregations with it.. (Just did some tests and was quite
satisfied with it !)
My question: what's better? Using Cocoons Implementation Cinclude, or is it
better to use the standardized XInclude to be not depended on Cocoon itself?
Are there big differences ?
Greetz,
Katharina
> I also used an aggregation to create my pages, until marc pointed me out
> that you can do the same with xinclude. When I changed to xinclude
> (passing
> the URI as a variable) I had the impression that it all went just a little
> faster (Or was I just thinking slower;-). Maybe it's worth a try, it's
> easy
> to set up and may give a better result. (just one page, pass your uri and
> use the xinclude transformer)
>
> Cheers,
>
> Jan
>
> ----- Original Message -----
> From: "Jorg Heymans" <jh...@domek.be>
> To: <us...@cocoon.apache.org>
> Sent: Monday, January 19, 2004 2:22 PM
> Subject: slow pipeline (svg, aggregation)
>
>
> > You can tell my problem from this line in the access log:
> >
> > INFO (2004-01-19) 14:00.15:336 [access] (/my.svg)
> > http8080-Processor8/CocoonServlet: 'my.svg' Processed by Apache Cocoon
> > 2.0.4 in 3.6660166 minutes.
> >
> > So one SVG takes about 3.5 minutes to render. Now if i was rendering the
> > surface of mars in svg i'ld be happy with this response time. For a 100k
> > svg file i'm not. On faster machine i get like 50-150 seconds, depends
> > (on what?)
> >
> >
> > Sitemap.log reveals the delay starts with the contentaggregator
> >
> > DEBUG (2004-01-19) 13:56.35:405 [sitemap] (my.svg)
> > http8080-Processor8/ContentAggregator: ContentAggregator: generating
> > aggregated content
> > DEBUG (2004-01-19) 14:00.13:763 [sitemap] (my.svg)
> > http8080-Processor8/ResourceLimitingPool: Put a
> > mypackage.CachingRequestGenerator back into the pool.
> >
> > Core.log points to the JaxpParser
> >
> > DEBUG (2004-01-19) 13:56.35:406 [core.manager]
> > (/app/cod/12L0101GE/render/heart_ginko_22_132x176.svg)
> > http8080-Processor8/ResourceLimitingPool: Got a
> > org.apache.avalon.excalibur.xml.JaxpParser from the pool.
> > DEBUG (2004-01-19) 14:00.13:739 [core.manager] (my.svg)
> > http8080-Processor8/ResourceLimitingPool: Put a
> > org.apache.avalon.excalibur.xml.JaxpParser back into the pool.
> >
> > My pipeline is an aggregated one
> >
> > <map:match pattern="*/render/*.svg">
> > <map:aggregate element="aggregation">
> > <map:part src="file://{1}/{2}.svg"/>
> > <!-- we need this part because of the aggregator caching bug -->
> > <map:part
> >
>
src="cocoon:/aggregate/{2}.svg?p1={request-param:param01}&p2={request-pa
>
ram:param02}&p3={request-param:param03}&p4={request-param:param04}&a
>
mp;p2={request-param:param05}&p2={request-param:param05}&p6={request
>
-param:param06}&p7={request-param:param07}&p8={request-param:param08
> }&p9={request-param:param09}&p10={request-param:param10}"/>
> > </map:aggregate>
> > <map:transform src="stylesheets/make_svg.xsl"/>
> > <map:serialize type="svg2png"/>
> > </map:match>
> >
> > <map:match pattern="aggregate/*.svg">
> > <map:generate type="cachingrequest"/>
> > <map:serialize type="xml"/>
> > </map:match>
> >
> >
> > Thoughts?
> > Jorg
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
--
HAKUNA MATATA !!!
+++ GMX - die erste Adresse für Mail, Message, More +++
Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: slow pipeline (svg, aggregation)
Posted by Jan Hoskens <jh...@schaubroeck.be>.
Well, if you also have various parameters you want to use, I would use xsp
to create the url, but that's just my way:
<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp"
xmlns:xi="http://www.w3.org/2001/XInclude" >
<Document>
<xsp:logic>
String requestString = request.getParameter("firstrequestparameter")
+ request.getParameter("second") +.....;
<xi:include>
<xsp:attribute
name="href">cocoon:/<xsp:expr>parameters.getParameter("page-uri","")</xsp:ex
pr>?<xsp:expr>requestString</xsp:expr>#xpointer(/root/*)</xsp:attribute>
</xi:include>
</xsp:logic>
</Document>
</xsp:page>
request.getParameter("") should get the request parameters while
parameters.getParameter("name","default") gets a sitemap parameter. inside
the logic you can do what you like, its just java! The #xpointer(/root/*)
does the same as the aggregation attribute 'element' set the xpath
expression you need (here select every child of root to include here, but do
not include the root element itself)
Use this in your sitemap:
<map:generate type="serverpages" src="AggregatedPage.xsp">
<map:parameter name="page-uri" value="{page-uri}"/>
</map:generate>
<map:transform type="xinclude"/>
....
This is just one way to do this, there are other ways!
Bye,
Jan
----- Original Message -----
From: "Jorg Heymans" <jh...@domek.be>
To: <us...@cocoon.apache.org>
Sent: Monday, January 19, 2004 3:06 PM
Subject: Re: slow pipeline (svg, aggregation)
> Hi Jan,
>
> I haven't really used cinclude or xinclude before.
>
> Here is my usecase : I need to iterate over all request parameters
> (unknown in advance how many there are or if there are any at all) and
> use them in my stylesheet that transforms the SVG.
>
> Can I use xinclude for this? I'ld be happy to because aggregation has
> proven to be very buggy (both in 2.0 and 2.1). I'm using 2.0.4.
>
> Thanks
> Jorg
>
> Jan Hoskens wrote:
> > I also used an aggregation to create my pages, until marc pointed me out
> > that you can do the same with xinclude. When I changed to xinclude
(passing
> > the URI as a variable) I had the impression that it all went just a
little
> > faster (Or was I just thinking slower;-). Maybe it's worth a try, it's
easy
> > to set up and may give a better result. (just one page, pass your uri
and
> > use the xinclude transformer)
> >
> > Cheers,
> >
> > Jan
> >
> > ----- Original Message -----
> > From: "Jorg Heymans" <jh...@domek.be>
> > To: <us...@cocoon.apache.org>
> > Sent: Monday, January 19, 2004 2:22 PM
> > Subject: slow pipeline (svg, aggregation)
> >
> >
> >
> >>You can tell my problem from this line in the access log:
> >>
> >>INFO (2004-01-19) 14:00.15:336 [access] (/my.svg)
> >>http8080-Processor8/CocoonServlet: 'my.svg' Processed by Apache Cocoon
> >>2.0.4 in 3.6660166 minutes.
> >>
> >>So one SVG takes about 3.5 minutes to render. Now if i was rendering the
> >>surface of mars in svg i'ld be happy with this response time. For a 100k
> >>svg file i'm not. On faster machine i get like 50-150 seconds, depends
> >>(on what?)
> >>
> >>
> >>Sitemap.log reveals the delay starts with the contentaggregator
> >>
> >>DEBUG (2004-01-19) 13:56.35:405 [sitemap] (my.svg)
> >>http8080-Processor8/ContentAggregator: ContentAggregator: generating
> >>aggregated content
> >>DEBUG (2004-01-19) 14:00.13:763 [sitemap] (my.svg)
> >>http8080-Processor8/ResourceLimitingPool: Put a
> >>mypackage.CachingRequestGenerator back into the pool.
> >>
> >>Core.log points to the JaxpParser
> >>
> >>DEBUG (2004-01-19) 13:56.35:406 [core.manager]
> >>(/app/cod/12L0101GE/render/heart_ginko_22_132x176.svg)
> >>http8080-Processor8/ResourceLimitingPool: Got a
> >>org.apache.avalon.excalibur.xml.JaxpParser from the pool.
> >>DEBUG (2004-01-19) 14:00.13:739 [core.manager] (my.svg)
> >>http8080-Processor8/ResourceLimitingPool: Put a
> >>org.apache.avalon.excalibur.xml.JaxpParser back into the pool.
> >>
> >>My pipeline is an aggregated one
> >>
> >><map:match pattern="*/render/*.svg">
> >> <map:aggregate element="aggregation">
> >><map:part src="file://{1}/{2}.svg"/>
> >><!-- we need this part because of the aggregator caching bug -->
> >><map:part
> >>
> >
> >
src="cocoon:/aggregate/{2}.svg?p1={request-param:param01}&p2={request-pa
> >
ram:param02}&p3={request-param:param03}&p4={request-param:param04}&a
> >
mp;p2={request-param:param05}&p2={request-param:param05}&p6={request
>
> -param:param06}&p7={request-param:param07}&p8={request-param:param
08
> > }&p9={request-param:param09}&p10={request-param:param10}"/>
> >
> >> </map:aggregate>
> >> <map:transform src="stylesheets/make_svg.xsl"/>
> >> <map:serialize type="svg2png"/>
> >></map:match>
> >>
> >><map:match pattern="aggregate/*.svg">
> >> <map:generate type="cachingrequest"/>
> >> <map:serialize type="xml"/>
> >></map:match>
> >>
> >>
> >>Thoughts?
> >>Jorg
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> >>For additional commands, e-mail: users-help@cocoon.apache.org
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: slow pipeline (svg, aggregation)
Posted by Jorg Heymans <jh...@domek.be>.
Hi Jan,
I haven't really used cinclude or xinclude before.
Here is my usecase : I need to iterate over all request parameters
(unknown in advance how many there are or if there are any at all) and
use them in my stylesheet that transforms the SVG.
Can I use xinclude for this? I'ld be happy to because aggregation has
proven to be very buggy (both in 2.0 and 2.1). I'm using 2.0.4.
Thanks
Jorg
Jan Hoskens wrote:
> I also used an aggregation to create my pages, until marc pointed me out
> that you can do the same with xinclude. When I changed to xinclude (passing
> the URI as a variable) I had the impression that it all went just a little
> faster (Or was I just thinking slower;-). Maybe it's worth a try, it's easy
> to set up and may give a better result. (just one page, pass your uri and
> use the xinclude transformer)
>
> Cheers,
>
> Jan
>
> ----- Original Message -----
> From: "Jorg Heymans" <jh...@domek.be>
> To: <us...@cocoon.apache.org>
> Sent: Monday, January 19, 2004 2:22 PM
> Subject: slow pipeline (svg, aggregation)
>
>
>
>>You can tell my problem from this line in the access log:
>>
>>INFO (2004-01-19) 14:00.15:336 [access] (/my.svg)
>>http8080-Processor8/CocoonServlet: 'my.svg' Processed by Apache Cocoon
>>2.0.4 in 3.6660166 minutes.
>>
>>So one SVG takes about 3.5 minutes to render. Now if i was rendering the
>>surface of mars in svg i'ld be happy with this response time. For a 100k
>>svg file i'm not. On faster machine i get like 50-150 seconds, depends
>>(on what?)
>>
>>
>>Sitemap.log reveals the delay starts with the contentaggregator
>>
>>DEBUG (2004-01-19) 13:56.35:405 [sitemap] (my.svg)
>>http8080-Processor8/ContentAggregator: ContentAggregator: generating
>>aggregated content
>>DEBUG (2004-01-19) 14:00.13:763 [sitemap] (my.svg)
>>http8080-Processor8/ResourceLimitingPool: Put a
>>mypackage.CachingRequestGenerator back into the pool.
>>
>>Core.log points to the JaxpParser
>>
>>DEBUG (2004-01-19) 13:56.35:406 [core.manager]
>>(/app/cod/12L0101GE/render/heart_ginko_22_132x176.svg)
>>http8080-Processor8/ResourceLimitingPool: Got a
>>org.apache.avalon.excalibur.xml.JaxpParser from the pool.
>>DEBUG (2004-01-19) 14:00.13:739 [core.manager] (my.svg)
>>http8080-Processor8/ResourceLimitingPool: Put a
>>org.apache.avalon.excalibur.xml.JaxpParser back into the pool.
>>
>>My pipeline is an aggregated one
>>
>><map:match pattern="*/render/*.svg">
>> <map:aggregate element="aggregation">
>><map:part src="file://{1}/{2}.svg"/>
>><!-- we need this part because of the aggregator caching bug -->
>><map:part
>>
>
> src="cocoon:/aggregate/{2}.svg?p1={request-param:param01}&p2={request-pa
> ram:param02}&p3={request-param:param03}&p4={request-param:param04}&a
> mp;p2={request-param:param05}&p2={request-param:param05}&p6={request
> -param:param06}&p7={request-param:param07}&p8={request-param:param08
> }&p9={request-param:param09}&p10={request-param:param10}"/>
>
>> </map:aggregate>
>> <map:transform src="stylesheets/make_svg.xsl"/>
>> <map:serialize type="svg2png"/>
>></map:match>
>>
>><map:match pattern="aggregate/*.svg">
>> <map:generate type="cachingrequest"/>
>> <map:serialize type="xml"/>
>></map:match>
>>
>>
>>Thoughts?
>>Jorg
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: slow pipeline (svg, aggregation)
Posted by Jan Hoskens <jh...@schaubroeck.be>.
I also used an aggregation to create my pages, until marc pointed me out
that you can do the same with xinclude. When I changed to xinclude (passing
the URI as a variable) I had the impression that it all went just a little
faster (Or was I just thinking slower;-). Maybe it's worth a try, it's easy
to set up and may give a better result. (just one page, pass your uri and
use the xinclude transformer)
Cheers,
Jan
----- Original Message -----
From: "Jorg Heymans" <jh...@domek.be>
To: <us...@cocoon.apache.org>
Sent: Monday, January 19, 2004 2:22 PM
Subject: slow pipeline (svg, aggregation)
> You can tell my problem from this line in the access log:
>
> INFO (2004-01-19) 14:00.15:336 [access] (/my.svg)
> http8080-Processor8/CocoonServlet: 'my.svg' Processed by Apache Cocoon
> 2.0.4 in 3.6660166 minutes.
>
> So one SVG takes about 3.5 minutes to render. Now if i was rendering the
> surface of mars in svg i'ld be happy with this response time. For a 100k
> svg file i'm not. On faster machine i get like 50-150 seconds, depends
> (on what?)
>
>
> Sitemap.log reveals the delay starts with the contentaggregator
>
> DEBUG (2004-01-19) 13:56.35:405 [sitemap] (my.svg)
> http8080-Processor8/ContentAggregator: ContentAggregator: generating
> aggregated content
> DEBUG (2004-01-19) 14:00.13:763 [sitemap] (my.svg)
> http8080-Processor8/ResourceLimitingPool: Put a
> mypackage.CachingRequestGenerator back into the pool.
>
> Core.log points to the JaxpParser
>
> DEBUG (2004-01-19) 13:56.35:406 [core.manager]
> (/app/cod/12L0101GE/render/heart_ginko_22_132x176.svg)
> http8080-Processor8/ResourceLimitingPool: Got a
> org.apache.avalon.excalibur.xml.JaxpParser from the pool.
> DEBUG (2004-01-19) 14:00.13:739 [core.manager] (my.svg)
> http8080-Processor8/ResourceLimitingPool: Put a
> org.apache.avalon.excalibur.xml.JaxpParser back into the pool.
>
> My pipeline is an aggregated one
>
> <map:match pattern="*/render/*.svg">
> <map:aggregate element="aggregation">
> <map:part src="file://{1}/{2}.svg"/>
> <!-- we need this part because of the aggregator caching bug -->
> <map:part
>
src="cocoon:/aggregate/{2}.svg?p1={request-param:param01}&p2={request-pa
ram:param02}&p3={request-param:param03}&p4={request-param:param04}&a
mp;p2={request-param:param05}&p2={request-param:param05}&p6={request
-param:param06}&p7={request-param:param07}&p8={request-param:param08
}&p9={request-param:param09}&p10={request-param:param10}"/>
> </map:aggregate>
> <map:transform src="stylesheets/make_svg.xsl"/>
> <map:serialize type="svg2png"/>
> </map:match>
>
> <map:match pattern="aggregate/*.svg">
> <map:generate type="cachingrequest"/>
> <map:serialize type="xml"/>
> </map:match>
>
>
> Thoughts?
> Jorg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org