Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change 
notification.

The following page has been changed by JannForrer:
http://wiki.apache.org/lenya/How_to_tune_Lenya_1%2e4_for_Production_Use

------------------------------------------------------------------------------
  The default store implementation in cocoon is an in-memory store backed by a 
disk store (based on EHCache). You can configure this store 
  using a file called ehcache.xml which is located in 
''org/apache/cocoon/components/store/impl/ehcache.xml''.
  The default entries of the defaultCache are as follows: 
+ {{{
      <defaultCache
          maxElementsInMemory="10000"
          eternal="true"
@@ -24, +25 @@

          diskPersistent="true"
          diskExpiryThreadIntervalSeconds="120"
          />
+ }}}
+ So, when overflow-to-disk is set to true, eternal to true and 
+ timeToIdleSeconds=0, then ones a cachekey is in memory/disk, it will never be
+ removed which might lead to a cache file becoming very large (see also 
thread: http://java2.5341.com/msg/170235.html)
+ 
+ For production use these setting should be changed. A possible configuration 
might look like: 
+ {{{
+     <defaultCache
+         maxElementsInMemory="10000"
+         eternal="false"
+         timeToIdleSeconds="1800"
+         timeToLiveSeconds="3600"
+         overflowToDisk="true"
+         diskPersistent="true"
+         diskExpiryThreadIntervalSeconds="120"
+         />
+ }}}
+ 
+ 
  
  == Security ==
  

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

Reply via email to