Being or not the ping, somethings are realy slow on cocoon, but it's
not his fault.

  High dynamic web plataforms have a penalty for it's dynamic. Compare
the steps a cocoon web server walks with the steps a apache server walks
to serve some content...
  So, everything that is static has to be served with a high performance
web server, not cocoon. See the diference of cocoon serving an image and
apache serving the same image.
  I have done this:

Client Request -> Apache (Static files?) Yes -> File System
                                         No  -> Cocoon

Filtering it with the Rewrite module as this:

RewriteEngine On
RewriteRule ^/images/(.*)
/usr/local/tomcat/webapps/cocoon/resources/images/$1 [l]
RewriteRule ^/scripts/(.*)
/usr/local/tomcat/webapps/cocoon/resources/scripts/$1 [l] #for js
RewriteRule ^/css/(.*) /usr/local/tomcat/webapps/cocoon/resources/css/$1
[l] #for css
RewriteRule ^/(.*) http://localhost:8080/cocoon/$1 [p] #omiting cocoon
from url

So my site goes from a WW1 plane to a SU-37 Super Flanker in a second!

Hope this will help everyone with performance issues in this list...

Carlos, this could be used in the Best Pratices?

Good fly!

-- 
Mauricio Souza Lima
Rational Consulting
[EMAIL PROTECTED]
Rua Helena, 140 / cj. 82
São Paulo - SP - Brazil
Fone / Direct: +55 11 3842-7138


Mitchell Christensen wrote:
> 
> Unusably slow.
> 
> -----Original Message-----
> From: Gritsenko at home [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 17, 2001 4:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: new Cocoon2 powered website!
> 
> This site is very very slow.
> 
> ----- Original Message -----
> From: "Valdas Rapsevicius" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 17, 2001 5:04 AM
> Subject: new Cocoon2 powered website!
> 
> > Hello Cocoon users,
> >
> > I would like to introduce novice website powered by Cocoon2.
> >
> > http://www.lgt.lt/geoin
> >
> > It is an official Geoindicators website.
> >
> > Good luck,
> > Valdo
> > -----------------------
> > mailto:[EMAIL PROTECTED]

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to