cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From froehl...@apache.org
Subject cvs commit: xml-cocoon2/src/documentation/xdocs performancetips.xml
Date Wed, 03 Apr 2002 19:25:44 GMT
froehlich    02/04/03 11:25:44

  Modified:    src/documentation/xdocs performancetips.xml
  Log:
  added more tips
  
  Revision  Changes    Path
  1.3       +23 -5     xml-cocoon2/src/documentation/xdocs/performancetips.xml
  
  Index: performancetips.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/performancetips.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- performancetips.xml	28 Mar 2002 22:42:13 -0000	1.2
  +++ performancetips.xml	3 Apr 2002 19:25:44 -0000	1.3
  @@ -41,7 +41,9 @@
         
         <li>Consider prerendering or time-based batch-process the static parts
         of your site. PDF reports, rasterized SVG graphs or things that change
  -      regularly.</li>
  +      regularly.</li>Use a transparent proxy in front of your web server! The fastest
  +      response is the one that is not even processed. Cocoon is very slow
  +      (compared to a proxy server) to read resources such as stylesheets
         
         <li>For optimum performance with Tomcat 4 and Cocoon 2, 
         use the HTTP/1.0 connector.</li>
  @@ -97,7 +99,11 @@
         than a Sun Enterprise 4500 (and costs a fraction), but try hitting them
         with 2000 concurrent cocoon requests.</li>
   
  -      <li>Fine-tune your JVM settings (max heap-size, initial memory).</li>
  +      <li>Fine-tune your JVM settings (max heap-size, initial memory, s.o.).
  +      Please read the <link 
  +      href="http://java.sun.com/docs/hotspot/PerformanceFAQ.html">Java Performance
  +      FAQ's</link> and the <link href="http://java.sun.com/docs/hotspot/gc/index.html">Tuning
  +      Garbage Collection</link> Document.</li>
   
         <li>Don't specify the -Xms parameter.</li>
   
  @@ -110,7 +116,7 @@
    </s1>
    
    <s1 title="Perfomance Formulas">
  -   <ul>
  +   <ul>g
        <li>Consider following formula for Pipeline Processing:
        <p><code>Number_of_simultaneous_users * depth_of_content_aggregation</code></p>
        </li>
  @@ -137,9 +143,21 @@
    
    <s1 title="XSP">
      <ul>
  -     <li>Consider turning your XSPs into Generators by hand and call them
  +     <li><p>Consider turning your XSPs into Generators by hand and call them
        directly. Of course you don't need to do this for all pages, but it's 
  -     recommended to it for those which are heavy loaded.</li>
  +     recommended to it for those which are heavy loaded.</p>
  +     <p>You can try it this way:</p>
  +     <p>Cocoon will compile your XSP's into Java classes 
  +     (see tomcat/work/..../org/apache/cocoon/www/my_xsp.class). After that, add
  +     the generated Generator to the Sitemap:</p>
  +    <code>
  +    &lt;map:generator type="myXSP" src="org.apache.cocoon.www.my_xsp"/&gt;
  +    </code>
  +    <p>And use it:</p>
  +    <code>
  +    &lt;map:generate type="myXSP"/&gt;
  +    </code>
  +     </li>
      </ul>
    </s1>
    
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message