Author: shuber
Date: Fri Sep 14 09:06:47 2007
New Revision: 18439

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D18439&repname=
=3Djahia
Log:
EHCache now activated by default. We still need to properly size the caches=
 and test in clustering.

Modified:
    branches/JAHIA-5-0-SP-BRANCH/core/src/conf/java/ehcache-hibernate.xml
    branches/JAHIA-5-0-SP-BRANCH/core/src/conf/java/ehcache-jahia.xml
    branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/WEB-INF/etc/spring/applica=
tioncontext-hibernate.xml
    branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/WEB-INF/etc/spring/applica=
tioncontext-services.xml

Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/conf/java/ehcache-hibernate=
.xml
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/conf/java/ehcache-hibernate.xml&rev=3D18439&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/conf/java/ehcache-hibernate.xml (=
original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/conf/java/ehcache-hibernate.xml F=
ri Sep 14 09:06:47 2007
@@ -256,28 +256,53 @@
     created programmtically using CacheManager.add(String cacheName)
     -->
     <defaultCache
-            maxElementsInMemory=3D"7000"
-            eternal=3D"true"
-            timeToIdleSeconds=3D"120"
-            timeToLiveSeconds=3D"120"
-            overflowToDisk=3D"true"
-            maxElementsOnDisk=3D"10000000"
-            diskPersistent=3D"true"
-            diskExpiryThreadIntervalSeconds=3D"480"
+            maxElementsInMemory=3D"1000"
+            eternal=3D"false"
+            timeToIdleSeconds=3D"3600"
+            timeToLiveSeconds=3D"14400"
+            overflowToDisk=3D"false"
+            maxElementsOnDisk=3D"1000000"
+            diskPersistent=3D"false"
+            diskExpiryThreadIntervalSeconds=3D"600"
             memoryStoreEvictionPolicy=3D"LRU"
-            />
+    >
+    <!-- Uncomment this to activate clustering
+        <cacheEventListenerFactory class=3D"net.sf.ehcache.distribution.RM=
ICacheReplicatorFactory"
+         properties=3D"replicateAsynchronously=3Dtrue,
+         replicatePuts=3Dfalse,
+         replicateUpdates=3Dtrue,
+         replicateUpdatesViaCopy=3Dfalse,
+         replicateRemovals=3Dtrue
+         asynchronousReplicationIntervalMillis=3D5000"/>
+        <bootstrapCacheLoaderFactory
+        class=3D"net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactor=
y"
+        properties=3D"bootstrapAsynchronously=3Dtrue, maximumChunkSizeByte=
s=3D5000000"/>
+     -->
+    </defaultCache>
             =

     <cache
         name=3D"org.hibernate.cache.StandardQueryCache"
-        maxElementsInMemory=3D"5"
+        maxElementsInMemory=3D"1000"
         eternal=3D"false"
-        timeToLiveSeconds=3D"120"
         overflowToDisk=3D"true"/>            =

 =

     <cache
         name=3D"org.hibernate.cache.UpdateTimestampsCache"
         maxElementsInMemory=3D"5000"
         eternal=3D"true"
-        overflowToDisk=3D"true"/>
+        overflowToDisk=3D"true">
+    <!-- Uncomment this to activate clustering
+        <cacheEventListenerFactory class=3D"net.sf.ehcache.distribution.RM=
ICacheReplicatorFactory"
+         properties=3D"replicateAsynchronously=3Dtrue,
+         replicatePuts=3Dtrue,
+         replicateUpdates=3Dtrue,
+         replicateUpdatesViaCopy=3Dtrue,
+         replicateRemovals=3Dtrue
+         asynchronousReplicationIntervalMillis=3D5000"/>
+        <bootstrapCacheLoaderFactory
+        class=3D"net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactor=
y"
+        properties=3D"bootstrapAsynchronously=3Dtrue, maximumChunkSizeByte=
s=3D5000000"/>
+     -->
+    </cache>
         =

 </ehcache>

Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/conf/java/ehcache-jahia.xml
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/conf/java/ehcache-jahia.xml&rev=3D18439&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/conf/java/ehcache-jahia.xml (orig=
inal)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/conf/java/ehcache-jahia.xml Fri S=
ep 14 09:06:47 2007
@@ -256,16 +256,29 @@
     created programmtically using CacheManager.add(String cacheName)
     -->
     <defaultCache
-            maxElementsInMemory=3D"2000"
-            eternal=3D"true"
-            timeToIdleSeconds=3D"120"
-            timeToLiveSeconds=3D"120"
-            overflowToDisk=3D"true"
-            maxElementsOnDisk=3D"10000000"
-            diskPersistent=3D"true"
-            diskExpiryThreadIntervalSeconds=3D"480"
+            maxElementsInMemory=3D"3000"
+            eternal=3D"false"
+            timeToIdleSeconds=3D"3600"
+            timeToLiveSeconds=3D"14400"
+            overflowToDisk=3D"false"
+            maxElementsOnDisk=3D"1000000"
+            diskPersistent=3D"false"
+            diskExpiryThreadIntervalSeconds=3D"600"
             memoryStoreEvictionPolicy=3D"LRU"
-            />
+    >
+    <!-- Uncomment this to activate clustering
+        <cacheEventListenerFactory class=3D"net.sf.ehcache.distribution.RM=
ICacheReplicatorFactory"
+         properties=3D"replicateAsynchronously=3Dtrue,
+         replicatePuts=3Dfalse,
+         replicateUpdates=3Dtrue,
+         replicateUpdatesViaCopy=3Dfalse,
+         replicateRemovals=3Dtrue
+         asynchronousReplicationIntervalMillis=3D5000"/>
+        <bootstrapCacheLoaderFactory
+        class=3D"net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactor=
y"
+        properties=3D"bootstrapAsynchronously=3Dtrue, maximumChunkSizeByte=
s=3D5000000"/>
+    -->
+    </defaultCache>    =

 =

     <cache
         name=3D"jahia.descriptor"
@@ -318,16 +331,20 @@
         overflowToDisk=3D"false"/>
 =

     <cache
-            name=3D"JahiaAclPermissionsCache"
-            maxElementsInMemory=3D"1000"
-            eternal=3D"true"
-            timeToIdleSeconds=3D"120"
-            timeToLiveSeconds=3D"120"
-            overflowToDisk=3D"true"
-            maxElementsOnDisk=3D"10000000"
-            diskPersistent=3D"true"
-            diskExpiryThreadIntervalSeconds=3D"480"
-            memoryStoreEvictionPolicy=3D"LRU"
-            />
+        name=3D"HTMLCache"
+        overflowToDisk=3D"true"
+        diskPersistent=3D"true" />
+    <cache
+        name=3D"HTMLCache-groups"
+        overflowToDisk=3D"true"
+        diskPersistent=3D"true" />
+    <cache
+        name=3D"ContainerHTMLCache"
+        overflowToDisk=3D"true"
+        diskPersistent=3D"true" />
+    <cache
+        name=3D"ContainerHTMLCache-groups"
+        overflowToDisk=3D"true"
+        diskPersistent=3D"true" />
 =

 </ehcache>

Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/WEB-INF/etc/spring/a=
pplicationcontext-hibernate.xml
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/webapp/WEB-INF/etc/spring/applicationcontext-hibernate.xml=
&rev=3D18439&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/WEB-INF/etc/spring/applica=
tioncontext-hibernate.xml (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/WEB-INF/etc/spring/applica=
tioncontext-hibernate.xml Fri Sep 14 09:06:47 2007
@@ -135,10 +135,10 @@
                 <!-- prop key=3D"hibernate.cache.provider_class">org.jahia=
.hibernate.cache.TreeCacheProvider</prop-->
                 <!-- prop key=3D"hibernate.cache.provider_class">org.jahia=
.hibernate.cache.JahiaClusterCacheHibernateProvider</prop-->
                 <!--prop key=3D"hibernate.cache.provider_class">org.jahia.=
hibernate.cache.JahiaBatchingClusterCacheHibernateProvider</prop-->
-                <!--prop key=3D"hibernate.cache.provider_class">net.sf.ehc=
ache.hibernate.EhCacheProvider</prop-->
-                <prop key=3D"hibernate.cache.provider_class">org.jahia.hib=
ernate.cache.JahiaBatchingClusterCacheHibernateProvider</prop>
+                <prop key=3D"hibernate.cache.provider_class">net.sf.ehcach=
e.hibernate.EhCacheProvider</prop>
+                <!--prop key=3D"hibernate.cache.provider_class">org.jahia.=
hibernate.cache.JahiaBatchingClusterCacheHibernateProvider</prop-->
                 <!-- If you use an invalidation-based cache, make sure you=
 turn the query cache off ! -->
-                <prop key=3D"hibernate.cache.use_query_cache">false</prop>
+                <prop key=3D"hibernate.cache.use_query_cache">true</prop>
                 <!-- put the batch size property to 0 if you need to debug=
 -->
                 <prop key=3D"hibernate.jdbc.batch_size">16</prop>
                 <prop key=3D"hibernate.default_batch_fetch_size">16</prop>

Modified: branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/WEB-INF/etc/spring/a=
pplicationcontext-services.xml
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-5-0-SP=
-BRANCH/core/src/webapp/WEB-INF/etc/spring/applicationcontext-services.xml&=
rev=3D18439&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/WEB-INF/etc/spring/applica=
tioncontext-services.xml (original)
+++ branches/JAHIA-5-0-SP-BRANCH/core/src/webapp/WEB-INF/etc/spring/applica=
tioncontext-services.xml Fri Sep 14 09:06:47 2007
@@ -66,13 +66,15 @@
     <!--bean id=3D"org.jahia.services.cache.CacheProvider" class=3D"org.ja=
hia.services.cache.clusterservice.batch.BatchingClusterServiceCacheProvider=
"-->
     <!-- Uncomment this to use JOTM Transaction Manager with Tomcat and co=
mment the other -->
     <!--bean id=3D"org.jahia.services.cache.CacheProvider" class=3D"org.ja=
hia.services.cache.treecache.TreeCacheProvider" /-->
-    <!--bean id=3D"org.jahia.services.cache.CacheProvider" class=3D"org.ja=
hia.services.cache.ehcache.EhCacheProvider" /-->
-
+<!--
     <bean id=3D"org.jahia.services.cache.CacheProvider" class=3D"org.jahia=
.services.cache.clusterservice.batch.BatchingClusterServiceCacheProvider">
         <property name=3D"clusterService">
             <ref bean=3D"ClusterService" />
         </property>
     </bean>
+    -->
+    <bean id=3D"org.jahia.services.cache.CacheProvider" class=3D"org.jahia=
.services.cache.ehcache.EhCacheProvider"/>
+
 =

     <bean id=3D"JahiaCacheService" parent=3D"proxyTemplate">
         <property name=3D"target">

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to