<?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 'Control' 4.2.e memory footprint in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283185#M236315</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;Given &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/forum/installation-upgrades-configuration-integration/configuration/ftp-upload-and-memory-allocation" rel="nofollow noopener noreferrer"&gt;those results&lt;/A&gt;&lt;SPAN&gt; after FTP vs Import methods, I tried 4.2.e. Alfresco being way less coupled to Lucene by using SOLR, things get better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, as we will have about 1k+ files uploaded/day, we are really concerned about server resources, and Alfresco's memory consumption. So, we would like to scale the solution and server's allocated resources, and be sure we won't run out of heap memory. After fews tests, I've figured out that the following classes have a high impact on heap memory:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.cache.DefaultSimpleCache&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.cache.lookup.CacheRegionKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.cache.lookup.CacheRegionKeyValue&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.AbstractNodeDAOImpl$ParentAssocsCache&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.AuditablePropertiesEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.ChildAssocEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.NodeEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.NodeUpdateEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.ParentAssocsInfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.StoreEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.TransactionEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.lock.mem.LockState&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By lowering all max cache item values in caches.properties, I've been able to reduce to 0 (or almost) the memory footprint of some classes, but those following still consume memory:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.AbstractNodeDAOImpl$ParentAssocsCache&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.AuditablePropertiesEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.ChildAssocEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.NodeEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.ParentAssocsInfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.domain.node.TransactionEntity&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- org.alfresco.repo.lock.mem.LockState&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ServerEntity and StoreEntity still show an instance count related to uploaded document number, but the memory allocated is not a real threat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lowering cache max item values obviously did impact performances, but the point was only to identify which value is affecting which class instanciation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What else can be tuned to "control" Alfresco's memory consumption, so we can determine the JVM heap memory size? Or lower some values at the price of a managed performance loss?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2013 15:46:57 GMT</pubDate>
    <dc:creator>vincent_ravier</dc:creator>
    <dc:date>2013-12-18T15:46:57Z</dc:date>
    <item>
      <title>'Control' 4.2.e memory footprint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283185#M236315</link>
      <description>Hi,Given those results after FTP vs Import methods, I tried 4.2.e. Alfresco being way less coupled to Lucene by using SOLR, things get better.However, as we will have about 1k+ files uploaded/day, we are really concerned about server resources, and Alfresco's memory consumption. So, we would like to</description>
      <pubDate>Wed, 18 Dec 2013 15:46:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283185#M236315</guid>
      <dc:creator>vincent_ravier</dc:creator>
      <dc:date>2013-12-18T15:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: 'Control' 4.2.e memory footprint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283186#M236316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also reduce the number of threads and reduce the stack sizes.&amp;nbsp; However you are reducing alfresco's performance.&amp;nbsp;&amp;nbsp;&amp;nbsp; Normally tuning will increase various settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However what is the concern here?&amp;nbsp;&amp;nbsp; If you give alfresco memory it will use it, and that shouldn't be a problem, that's just normal operation.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And 1000 docs per day is a fairly trivial import load that shouldn't cause any problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 19:19:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283186#M236316</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2013-12-18T19:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: 'Control' 4.2.e memory footprint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283187#M236317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, thanks for pointing thread number and stack size out. We know that reducing alfresco's memory usage&amp;nbsp; will reduce its overall performance. The point is to find out some levers in case we cannot allocate all needed resources with the default parameters. Our 3 VM production servers have like 20MB of memory, each are already running around 5 to 8 VM… So, we won't really be able to allocate more than 4GB to the server's OS running Alfresco. I'm currently running a test, importing 1 million files via FTP. After 350k files, things are looking good, 3GB allocated for java's heap, Alfresco doesn't seems to need more for the moment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1k files a day won't be stressful, but as each uploaded file is cached, we want to be sure that, like after 60 days java won't go OOM due to cache size in memory. That's all &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 08:33:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283187#M236317</guid>
      <dc:creator>vincent_ravier</dc:creator>
      <dc:date>2013-12-19T08:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: 'Control' 4.2.e memory footprint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283188#M236318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;3 GB is on the small side however it should be adequate.&amp;nbsp;&amp;nbsp; The rule of thumb is 4GB minimum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco should not consume memory over time or in proportion to the number of documents.&amp;nbsp;&amp;nbsp; If it does leak then that's a serious bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want to try and prevent your other VMs competing for resources with Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 14:43:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283188#M236318</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2013-12-19T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: 'Control' 4.2.e memory footprint</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283189#M236319</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;SPAN&gt;I've configured the JVM to run with a 3GB heap. I've successfully uploaded 450k files. Max heap memory used was around 2,5GB, and went above after around 150k files uploaded. Given that other operations might allocate memory (like searching, putting files in cache), yes, 4GB seems good &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 16:23:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/control-4-2-e-memory-footprint/m-p/283189#M236319</guid>
      <dc:creator>vincent_ravier</dc:creator>
      <dc:date>2013-12-26T16:23:38Z</dc:date>
    </item>
  </channel>
</rss>

