<?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 FULL Reindex OutOfMemory in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/full-reindex-outofmemory/m-p/261740#M214870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm tryng do do a FULL Reindex, but Alfresco run out of memory in an hour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the repository there are 163041 documents that occupy 200GB&amp;nbsp; and 429,598 to be reindex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Alfresco 3.2 and, when i do the reindex, the JVM has 8GB of memory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I set up this parameter in alfresco-global.properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;index.recovery.mode=FULL&lt;BR /&gt;lucene.indexer.batchSize=1000&lt;BR /&gt;lucene.indexer.mergeFactor=100&lt;BR /&gt;lucene.indexer.minMergeDocs=1000&lt;BR /&gt;lucene.indexer.maxMergeDocs=100000&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But the reindexing process runs out of memory at about 70%, this is the log:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;15:53:58,400&amp;nbsp; WARN&amp;nbsp; [ehcache.distribution.RMISynchronousCacheReplicator] Object with key sysAdminCache.authAllowedUsers is not Serializable and cannot be updated via copy&lt;BR /&gt;15:54:00,238&amp;nbsp; DEBUG [content.cleanup.TrashcanCleaner] Deleted items will be protected during 14 days&lt;BR /&gt;15:54:03,131&amp;nbsp; INFO&amp;nbsp; [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.&lt;BR /&gt;15:54:09,650&amp;nbsp; INFO&amp;nbsp; [domain.schema.SchemaBootstrap] No changes were made to the schema.&lt;BR /&gt;15:54:17,201 User:System INFO&amp;nbsp; [node.index.FullIndexRecoveryComponent] Index recovery started: 429,598 transactions.&lt;BR /&gt;15:54:19,993&amp;nbsp; INFO&amp;nbsp; [management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [default]&lt;BR /&gt;15:54:20,064&amp;nbsp; INFO&amp;nbsp; [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]&lt;BR /&gt;15:54:20,542&amp;nbsp; INFO&amp;nbsp; [management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [default] complete&lt;BR /&gt;### Excluding compile: org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merger::mergeDeletions&lt;BR /&gt;15:58:36,955 User:System INFO&amp;nbsp; [node.index.FullIndexRecoveryComponent] &amp;nbsp;&amp;nbsp;&amp;nbsp;10 % complete.&lt;BR /&gt;16:07:25,902 User:System INFO&amp;nbsp; [node.index.FullIndexRecoveryComponent] &amp;nbsp;&amp;nbsp;&amp;nbsp;20 % complete.&lt;BR /&gt;16:15:01,312 User:System INFO&amp;nbsp; [node.index.FullIndexRecoveryComponent] &amp;nbsp;&amp;nbsp;&amp;nbsp;30 % complete.&lt;BR /&gt;16:24:45,491 User:System INFO&amp;nbsp; [node.index.FullIndexRecoveryComponent] &amp;nbsp;&amp;nbsp;&amp;nbsp;40 % complete.&lt;BR /&gt;16:35:15,831 User:System INFO&amp;nbsp; [node.index.FullIndexRecoveryComponent] &amp;nbsp;&amp;nbsp;&amp;nbsp;50 % complete.&lt;BR /&gt;16:47:08,152 User:System INFO&amp;nbsp; [node.index.FullIndexRecoveryComponent] &amp;nbsp;&amp;nbsp;&amp;nbsp;60 % complete.&lt;BR /&gt;### Excluding compile: org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merger::mergeIndexes&lt;BR /&gt;17:00:22,170 User:System INFO&amp;nbsp; [node.index.FullIndexRecoveryComponent] &amp;nbsp;&amp;nbsp;&amp;nbsp;70 % complete.&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;/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;Can anyone help me?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2012 11:25:40 GMT</pubDate>
    <dc:creator>luca</dc:creator>
    <dc:date>2012-02-10T11:25:40Z</dc:date>
    <item>
      <title>FULL Reindex OutOfMemory</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/full-reindex-outofmemory/m-p/261740#M214870</link>
      <description>Hello,I'm tryng do do a FULL Reindex, but Alfresco run out of memory in an hour.In the repository there are 163041 documents that occupy 200GB&amp;nbsp; and 429,598 to be reindex.I'm using Alfresco 3.2 and, when i do the reindex, the JVM has 8GB of memory. I set up this parameter in alfresco-global.propertie</description>
      <pubDate>Fri, 10 Feb 2012 11:25:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/full-reindex-outofmemory/m-p/261740#M214870</guid>
      <dc:creator>luca</dc:creator>
      <dc:date>2012-02-10T11:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: FULL Reindex OutOfMemory</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/full-reindex-outofmemory/m-p/261741#M214871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try to add the following JVM parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;-server -Xcomp -Xbatch -Xss1M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;It should allows you to finish the total reindex, I think that in the latest versions of Alfresco you don't need to add these parameters, but it could depend on your operating system and your JDK version and vendor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 07:58:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/full-reindex-outofmemory/m-p/261741#M214871</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2012-03-08T07:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: FULL Reindex OutOfMemory</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/full-reindex-outofmemory/m-p/261742#M214872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much, I finally and SUCCESFULLY ended the full reindex!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some numbers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I started the reindex with 14GB of RAM using the properties suggested by OpenPj like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;export JAVA_OPTS='-server -Xcomp -Xbatch -Xss1M -Xms14336m -Xmx14336m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:MaxPermSize=128m' &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There were 494,584 transactions to reindex and the whole process took 3 hours. The memory occupied remained under 70%.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next step: upgrade from Alfresco 3.2 to Alfresco 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In previous attempt to upgrade from Alfresco 3.2 to Alfresco 3.3 or Alfresco 3.4 I noticed that some documents were missing, maybe I did something wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible that this was due to some error in the indexes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2012 13:12:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/full-reindex-outofmemory/m-p/261742#M214872</guid>
      <dc:creator>luca</dc:creator>
      <dc:date>2012-04-13T13:12:03Z</dc:date>
    </item>
  </channel>
</rss>

