Hi,

It was months ago I completed my project that used Cocoon 2.1.3.
However, it was only recently that I was able to fix the performance at
a good level. 

Here's the most important change to configuration that was required in
the cocoon.xconf:

 <transient-store logger="core.store.transient">
   <parameter name="maxobjects" value="1000"/>
   <parameter name="use-persistent-cache" value="false"/>
 </transient-store>

Before this (the setting false) I had the following problems among
others:
- memory usage was growing beyond limits set in the cocoon.xconf
- the performance became poorer the longer the server ran, restarting
the Tomcat was required often
- Cocoon used a lot of disk resources
- shutting down Tomcat ended up taking 0,5-1h
- there were a lot of open files
- cocoon status page showed that
org.apache.cocoon.components.store.impl.DefaultStore had as many item's
in the cache as empty spaces, the number was growing
- trying to clear the persistent store resulted cocoon no longer
answering to requests, perhaps I should have waited longer

The solution was simple after I had read a mail in this list about
different types of stores and memory management principles. This
resulted a great performance, which can clearly be optimized even
further easily.

The server is Cocoon 2.1.3 + Tomcat 4.1.27 + Apache HTTPD using
MOD_PROXY + j2sdk1.4.1_01 + Linux and the site is a typical company
site with product information and articles. I'm using caching pipeline
in the sitemap.xmap.

I would like to take this space to thank everyone in the Cocoon
community for making Cocoon such a great software product. Thanks!

Here are some other bits of my configuration:

* * * 

cocoon.xconf
------------
-...
        <transient-store logger="core.store.transient">
           <parameter name="maxobjects" value="1000"/>
           <parameter name="use-persistent-cache" value="false"/>
        </transient-store>
...
        <store-janitor logger="core.store.janitor">
                <parameter name="freememory" value="5000000"/>
                <parameter name="heapsize" value="147000000"/>
                <parameter name="cleanupthreadinterval" value="10"/>
                <parameter name="threadpriority" value="5"/>
                <parameter name="percent_to_free" value="10"/>
                <parameter name="invokegc" value="false"/>
        </store-janitor>

Startup parameters for Tomcat/Java:
-----------------------------------
...
# to supress too many open files errors
ulimit -n 8192
# file.encoding makes sure that UTF-8 can be used for file names and
contents, mail.mime setting is for Sun's Java Mail. Xmx set's memory
usage limit for Java.
export CATALINA_OPTS="-Xmx250M -Dfile.encoding=UTF-8
-Dmail.mime.charset=ISO-8859-1 -Djava.awt.headless=true"
# also /cocoon-files/cache-dir/ is emptied at startup, just in case
something has been left there (has caused annoying problems)
...

---
Mika Fons�n * http://iki.fi/mf/

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

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

Reply via email to