<?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 Re: How to increase cache to avoid a memory leak in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121458#M33327</link>
    <description>&lt;P&gt;Had a similar issue last month with my Community7.0 ansible installation.&lt;BR /&gt;&lt;BR /&gt;Discussed here:&lt;BR /&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/insufficient-free-space-available-after-evicting-expired-cache/m-p/307547" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/insufficient-free-space-available-after-evicting-expired-cache/m-p/307547&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jul 2021 22:10:57 GMT</pubDate>
    <dc:creator>michaelzietlow</dc:creator>
    <dc:date>2021-07-28T22:10:57Z</dc:date>
    <item>
      <title>How to increase cache to avoid a memory leak</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121456#M33325</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have following error messages in the alfresco log. I tried to edit tomcat/conf/context.xml (&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;Resources&amp;nbsp;cachingAllowed="true"&amp;nbsp;cacheMaxSize="100000"/&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;), but the result is the same.&lt;BR /&gt;&lt;BR /&gt;How can I increase the cache?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Thank you!&lt;/P&gt;&lt;PRE&gt;28-Jul-2021 14:29:08.118 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@1f567bce]) and a value of type [org.alfresco.repo.web.scripts.RepositoryImageResolver$1] (value [org.alfresco.repo.web.scripts.RepositoryImageResolver$1@17d88b0a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.118 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@64f206e]) and a value of type [org.alfresco.util.transaction.TransactionSupportUtil.ResourcesHolder] (value [org.alfresco.util.transaction.TransactionSupportUtil$ResourcesHolder@5db08062]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.118 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@59e338a0]) and a value of type [org.alfresco.repo.web.scripts.RepositoryImageResolver$1] (value [org.alfresco.repo.web.scripts.RepositoryImageResolver$1@17d88b0a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.118 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@4df69712]) and a value of type [org.alfresco.repo.content.MimetypeMap.Data] (value [(mimetypes: 201 from XML: 201 from JSON: 0 files: 0)]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.118 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@707f19ed]) and a value of type [org.alfresco.repo.web.scripts.RepositoryImageResolver$1] (value [org.alfresco.repo.web.scripts.RepositoryImageResolver$1@17d88b0a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.118 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@44291cd9]) and a value of type [org.alfresco.repo.web.scripts.RepositoryImageResolver$1] (value [org.alfresco.repo.web.scripts.RepositoryImageResolver$1@17d88b0a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.119 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@57cacb6]) and a value of type [org.alfresco.repo.web.scripts.RepositoryImageResolver$1] (value [org.alfresco.repo.web.scripts.RepositoryImageResolver$1@17d88b0a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.119 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@687408b2]) and a value of type [org.alfresco.repo.web.scripts.RepositoryImageResolver$1] (value [org.alfresco.repo.web.scripts.RepositoryImageResolver$1@17d88b0a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.119 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@7ab4ccb5]) and a value of type [org.alfresco.repo.web.scripts.RepositoryImageResolver$1] (value [org.alfresco.repo.web.scripts.RepositoryImageResolver$1@17d88b0a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.119 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@16af049f]) and a value of type [org.alfresco.repo.web.scripts.RepositoryImageResolver$1] (value [org.alfresco.repo.web.scripts.RepositoryImageResolver$1@17d88b0a]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.119 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@2ae22b8d]) and a value of type [org.alfresco.util.CachingDateFormat] (value [yyyy-MM-dd]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
28-Jul-2021 14:29:08.119 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [org.alfresco.repo.content.transform.TransformerDebug$ThreadInfo$1] (value [org.alfresco.repo.content.transform.TransformerDebug$ThreadInfo$1@2e9b7f13]) and a value of type [org.alfresco.repo.content.transform.TransformerDebug.ThreadInfo] (value [org.alfresco.repo.content.transform.TransformerDebug$ThreadInfo@233c54b2]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.&lt;BR /&gt;...&lt;BR /&gt;Heap&lt;BR /&gt;par new generation total 613440K, used 351518K [0x0000000580000000, 0x00000005a9990000, 0x00000005a9990000)&lt;BR /&gt;eden space 545344K, 61% used [0x0000000580000000, 0x00000005946734a8, 0x00000005a1490000)&lt;BR /&gt;from space 68096K, 25% used [0x00000005a1490000, 0x00000005a25644b0, 0x00000005a5710000)&lt;BR /&gt;to space 68096K, 0% used [0x00000005a5710000, 0x00000005a5710000, 0x00000005a9990000)&lt;BR /&gt;concurrent mark-sweep generation total 1886568K, used 1196519K [0x00000005a9990000, 0x000000061cbea000, 0x0000000800000000)&lt;BR /&gt;Metaspace used 222390K, capacity 229530K, committed 229816K, reserved 722944K&lt;BR /&gt;class space used 23133K, capacity 25104K, committed 25120K, reserved 516096K&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Jul 2021 13:02:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121456#M33325</guid>
      <dc:creator>mirak</dc:creator>
      <dc:date>2021-07-28T13:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase cache to avoid a memory leak</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121457#M33326</link>
      <description>&lt;P&gt;This error is usually seen when acs stops abruptly for some any reasons. This can be ignored.&lt;/P&gt;
&lt;P&gt;Checkout this post as well:&amp;nbsp;&lt;A href="https://backstage.forgerock.com/knowledge/kb/article/a55893580" target="_blank" rel="noopener nofollow noreferrer"&gt;https://backstage.forgerock.com/knowledge/kb/article/a55893580&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I don't think the config you are updating has anything to do with it, at last i am not aware for sure. But if you wish to updatet the resource cache, the right place for that is: $TOMCAT_HOME/conf/Catalina/localhost/alfresco.xml and&amp;nbsp;$TOMCAT_HOME/conf/Catalina/localhost/share.xml&lt;/P&gt;
&lt;P&gt;example:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;Context crossContext="true"&amp;gt;
&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;  &amp;lt;Resources&lt;/FONT&gt; &lt;A href="https://github.com/abhinavmishra14/alfresco7-solr-localtransform-dist-setup/blob/main/linux-platform/alfresco-community70/tomcat/conf/Catalina/localhost/alfresco.xml#L10" target="_blank" rel="noopener nofollow noreferrer"&gt;cachingAllowed="true" cacheMaxSize="100000"&lt;/A&gt;&amp;gt;&lt;/STRONG&gt;
    &amp;lt;PostResources base="${catalina.base}/../modules/platform"
                   className="org.apache.catalina.webresources.DirResourceSet"
                   webAppMount="/WEB-INF/lib"/&amp;gt;
  &amp;lt;/Resources&amp;gt;
&amp;lt;/Context&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Jul 2021 14:49:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121457#M33326</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-07-28T14:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase cache to avoid a memory leak</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121458#M33327</link>
      <description>&lt;P&gt;Had a similar issue last month with my Community7.0 ansible installation.&lt;BR /&gt;&lt;BR /&gt;Discussed here:&lt;BR /&gt;&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/insufficient-free-space-available-after-evicting-expired-cache/m-p/307547" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/insufficient-free-space-available-after-evicting-expired-cache/m-p/307547&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 22:10:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121458#M33327</guid>
      <dc:creator>michaelzietlow</dc:creator>
      <dc:date>2021-07-28T22:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase cache to avoid a memory leak</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121459#M33328</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86759"&gt;@Matthew52&lt;/A&gt;&amp;nbsp;seems you are here to spam and not for real solutions.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 13:52:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121459#M33328</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-07-30T13:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase cache to avoid a memory leak</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121460#M33329</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86781"&gt;@Horner154&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your issue exactly the same? Providing logs, config files, etc, would be helpful.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2021 10:40:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121460#M33329</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-08-02T10:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase cache to avoid a memory leak</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121461#M33330</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86781"&gt;@Horner154&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I also have this same question and i cannot find any proper answers on the internet and also here.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/86781"&gt;@Horner154&lt;/A&gt;&amp;nbsp;Posting spam is not allowed as per the forum rules. Your posts will be marked spam and you will be banned from the forum.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 14:58:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-increase-cache-to-avoid-a-memory-leak/m-p/121461#M33330</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-08-03T14:58:40Z</dc:date>
    </item>
  </channel>
</rss>

