Mailing List
Home
Forum Home
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Cocoon - MVC web framework based on XML/XSL
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
Log4J - A log library
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database error code ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Servlet File Download dialog problem (IE6,Adobe 6 0)
Proposal: Adding jar manifest classpath in jar and war plugins
Unsupported major minor version 48 0 problem while running the an
   telope task
java security AccessControlException: access denied (java io FilePermission
axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
jsp data into Excel
Classpath problem
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Running junit tests fails
XDoclet, Struts and Maven: Where to start? SOLUTION
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
AXIS: tomcat timeout ?
 
cocoon-ehcache-1.data becomes very large

cocoon-ehcache-1.data becomes very large

2006-07-13       - By Ard Schrijvers

 Back
Reply:     1     2     3     4     5     6     7     8  


>
> > ...Can we configure a maximum cache file size?...
>
> I don't have a precise reply to your questions, but here's the config
> that I use to limit the number of cached entries, it might help.
>
> <!-- xconf patch file for cache settings -->
> <xconf
>   xpath="/cocoon/store"
>   remove="/cocoon/store/*">
>   <parameter name="maxobjects" value="100"/>
>   <parameter name="overflow-to-disk" value="false"/>
>   <parameter name="use-cache-directory" value="true"/>
>
> </xconf>

I think you are missing to much caching possibilities with the configuration
above: a maximum of 100 with overflow-to-disk set to false is to low. Try using
overflow-to-disk=true and maxobjects at least 1000 (unless you have extreme
large cache responses) and timeToIdleSeconds to 1 day or something.

One thing I just forgot to mention how your cache also can become extremely
large (and your cocoon app vulnerable, and sorry taht I keep repeating it on
this list, but it is important to realize)

configure your xslt transformer with
   <use-request-parameters>false</use-request-parameters>
       <use-session-parameters>false</use-session-parameters>
       <use-cookie-parameters>false</use-cookie-parameters>

by default!! Using <use-request-parameters>true</use-request-parameters> and
using cocoon cache implies to things when a crawler comes by:

1) Crawlers tend to crawl with arbitrary request-parameters: when use-request
-parameters=true, this implies crawlers never get a cache hit, making your
cocoon cache useless. Crawlers can bring your app down in this way

2) Since you cache your results, all crawlers leave your site cached in your
ehcache under unreacheable cachekeys (because of use-request-parameters=true,
all parameters are stored in the cachekey), simply adding infinitely many
cachekeys+responses to your cache.

Once more: never use <use-request-parameters>true</use-request-parameters>

Sry for repeating myself,

Regards Ard

>
> -Bertrand
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)