<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cache Always Misses on parentAssoc in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cache-always-misses-on-parentassoc/m-p/65621#M41566</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a fairly small box to run a test deploy of Alfresco on and I've been watching the cache hits to see if the cache is getting used.&amp;nbsp; I've seen a lot of cache misses on the parent&amp;lt;-&amp;gt;child associations, and nothing seems to be getting loaded into the cache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;===&amp;gt;&amp;nbsp; org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hit Count:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 27699 hits&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Miss Count:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19315 misses&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Deep Size:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 MB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Current Count:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 entries&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Percentage used:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 percent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max Count:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10000 entries&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Estimated maximum size:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NaN MB&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And I have a lot of these error messages posted (which must be related)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs#7015&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs#7016&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.ChildAssocImpl#7045&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs#7016&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs#7017&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.ChildAssocImpl#7046&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs#7017&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs#7018&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.ChildAssocImpl#7047&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs#7018&lt;BR /&gt;16:38:07,531 WARN&amp;nbsp; [hibernate.cache.ReadWriteCache] An item was expired by the cache while it was locked (increase your cache timeout): org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs#7019&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the cache config, for these associations:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; &amp;lt;!–&amp;nbsp; approx 10MB memory required &lt;BR /&gt;&amp;nbsp; –&amp;gt; &lt;BR /&gt;&amp;nbsp; &amp;lt;cache name="org.alfresco.repo.domain.hibernate.NodeImpl.parentAssocs" maxElementsInMemory="10000" eternal="true" overflowToDisk="false" /&amp;gt; &lt;BR /&gt;&amp;lt;!–&amp;nbsp; approx 250MB memory required &lt;BR /&gt;&amp;nbsp; –&amp;gt; &lt;BR /&gt;&amp;nbsp; &amp;lt;cache name="org.alfresco.repo.domain.hibernate.ChildAssocImpl" maxElementsInMemory="200000" eternal="true" overflowToDisk="false" /&amp;gt; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;There is almost nothing in ehcache-transactional, so I'll list it here, pretty sure it's not involved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;ehcache&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;diskStore path="java.io.tmpdir" /&amp;gt; &lt;BR /&gt;&amp;nbsp; &amp;lt;defaultCache maxElementsInMemory="5000" eternal="true" timeToIdleSeconds="0" timeToLiveSeconds="0" overflowToDisk="false" /&amp;gt; &lt;BR /&gt;&amp;nbsp; &amp;lt;/ehcache&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently running 1.4 Community on Tomcat/ Win 2003&amp;nbsp; :cry:.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Nov 2006 22:22:26 GMT</pubDate>
    <dc:creator>jgreen</dc:creator>
    <dc:date>2006-11-14T22:22:26Z</dc:date>
    <item>
      <title>Cache Always Misses on parentAssoc</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cache-always-misses-on-parentassoc/m-p/65621#M41566</link>
      <description>I have a fairly small box to run a test deploy of Alfresco on and I've been watching the cache hits to see if the cache is getting used.&amp;nbsp; I've seen a lot of cache misses on the parent&amp;lt;-&amp;gt;child associations, and nothing seems to be getting loaded into the cache.===&amp;gt;&amp;nbsp; org.alfresco.repo.domain.</description>
      <pubDate>Tue, 14 Nov 2006 22:22:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cache-always-misses-on-parentassoc/m-p/65621#M41566</guid>
      <dc:creator>jgreen</dc:creator>
      <dc:date>2006-11-14T22:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cache Always Misses on parentAssoc</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cache-always-misses-on-parentassoc/m-p/65622#M41567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This message is a little misleading.&amp;nbsp; It's actually Hibernate that decided that the cache needed to be completely cleared due to an update statement issued direct to the database.&amp;nbsp; Later, when the transaction commits, the entity is no longer in the cache and a timeout is blamed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've looked at ways to prevent the auto-clearing of cache entities, but can't get it working.&amp;nbsp; The good news is that the behaviour is correct.&amp;nbsp; The bad news is that the cache is not being used to its full potential.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried changing the session flush behaviour during the child association update statement.&amp;nbsp; I tried changing the query flush behaviour as well.&amp;nbsp; Perhaps I'm missing something on the Hibernate side to disable this behaviour.&amp;nbsp; After all, we can do an explicit refresh of the entity being updated after the operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime, the message is just cut out of the log.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2006 15:43:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cache-always-misses-on-parentassoc/m-p/65622#M41567</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2006-11-16T15:43:31Z</dc:date>
    </item>
  </channel>
</rss>

