<?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: Out Of Memory during Bulk Upload via CMIS: Memory Leak? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271820#M224950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just only to see if this is a bug that may be already fixed you could download a nightly build of Alfresco (current is 4.0) and see if the error is thrown. At least you can expect to have this solved in the future&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dev.alfresco.com/downloads/nightly/dist/" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/downloads/nightly/dist/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2011 11:36:15 GMT</pubDate>
    <dc:creator>rmacian</dc:creator>
    <dc:date>2011-06-20T11:36:15Z</dc:date>
    <item>
      <title>Out Of Memory during Bulk Upload via CMIS: Memory Leak?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271811#M224941</link>
      <description>Hi,we are running Alfresco 3.4.d 64 Bit on different platforms (CentOS 5.6 and Windows 2008 Server R2) and perform some mass-import tests to test the stability of the Alfresco Platform. So far results do not look very promising. On CentOS we ran into either Out Of Memory Exceptions after trasnfering</description>
      <pubDate>Wed, 01 Jun 2011 09:19:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271811#M224941</guid>
      <dc:creator>ad-int-en</dc:creator>
      <dc:date>2011-06-01T09:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Out Of Memory during Bulk Upload via CMIS: Memory Leak?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271812#M224942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running an instance on which we injected 3.5M documents remotely using OpenCMIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The idea here is to switch off index refresh using this configuration during your parallel injection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;index.tracking.disableInTransactionIndexing=true&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;BR /&gt;&lt;SPAN&gt;This way you'll get maximal throughput and indexes will be rebuilt when you disable this and restart. We have a production system on which we automated this switch to be able to inject documents efficiently every night and have indices rebuilt 6-7AM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alas we tend to have random out of memory occurrences in production that we still can't really explain, but we are on a 32bits system so we can only increase heap size up to 1600m.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helped !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 19:18:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271812#M224942</guid>
      <dc:creator>alcibiade</dc:creator>
      <dc:date>2011-06-08T19:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Out Of Memory during Bulk Upload via CMIS: Memory Leak?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271813#M224943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As a side note, these "OOMs" may or may not indicate an problem - there is a known problem in Sun JDK, which causes OutOfMemory exceptions when there is really a lot of memory available –&amp;gt; see &lt;/SPAN&gt;&lt;A href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6478546" rel="nofollow noopener noreferrer"&gt;http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6478546&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Lucene is a prominent victim of this bug, and there are workarounds in Alfresco to catch these OutOfMemoryExceptions - it might be that these exceptions show up in the log, so you should examine the stacktrace if they originate from Lucene….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And we should give Sun the "golden cucumber award" for not fixing that bug for YEARS&amp;nbsp; :shock: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gyro&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 06:19:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271813#M224943</guid>
      <dc:creator>gyro_gearless</dc:creator>
      <dc:date>2011-06-09T06:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Out Of Memory during Bulk Upload via CMIS: Memory Leak?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271814#M224944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip with the &lt;/SPAN&gt;&lt;STRONG&gt;index.tracking.disableInTransactionIndexing=true&lt;/STRONG&gt;&lt;SPAN&gt; switch, we tried that and it helps, but it mostly breaks the alfresco share functionality so this mode doesn’t really work for us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we did some further heap dump and source analysis and found out that most of the Memory is consumed by objects in the lucene &lt;/SPAN&gt;&lt;STRONG&gt;RAMDirectory &lt;/STRONG&gt;&lt;SPAN&gt;/ &lt;/SPAN&gt;&lt;STRONG&gt;RAMFile &lt;/STRONG&gt;&lt;SPAN&gt;structure, so we changed first the &lt;/SPAN&gt;&lt;STRONG&gt;maxDocsForInMemoryMerge &lt;/STRONG&gt;&lt;SPAN&gt;to 0 (as mentioned in similar issues) and later the &lt;/SPAN&gt;&lt;STRONG&gt;maxDocsForInMemoryIndex &lt;/STRONG&gt;&lt;SPAN&gt;settings to 0. With both settings set to 0 the time it took to completely consume the memory old gen increased, but the problem still existed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Analyzing a new heap dump showed that the majority of the heap is consumed by &lt;/SPAN&gt;&lt;STRONG&gt;org.apache.lucene.index.TermInfosReader$ThreadResources&lt;/STRONG&gt;&lt;SPAN&gt; instances (about 60k).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Digging a little deeper revealed that a single IndexInfo instance contains about 10k instances of &lt;/SPAN&gt;&lt;STRONG&gt;ReferenceCountingReadOnlyIndexReader&lt;/STRONG&gt;&lt;SPAN&gt; in the &lt;/SPAN&gt;&lt;STRONG&gt;deletableReaders &lt;/STRONG&gt;&lt;SPAN&gt;queue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All of the 10k readers have a &lt;/SPAN&gt;&lt;STRONG&gt;refCount &lt;/STRONG&gt;&lt;SPAN&gt;&amp;gt; 0 and will therefore not be deleted by the &lt;/SPAN&gt;&lt;STRONG&gt;IndexInfo &lt;/STRONG&gt;&lt;SPAN&gt; cleaning task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I could not jet find out how those refCounts will be incremented and/or decremented.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But looking at the roundabout 11k open file handles (via JMX) it seems like there is a connection to open file handles.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2011 06:25:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271814#M224944</guid>
      <dc:creator>ad-int-en</dc:creator>
      <dc:date>2011-06-15T06:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Out Of Memory during Bulk Upload via CMIS: Memory Leak?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271815#M224945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Gyro.Gearless:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your input, but blaming Sun doesn't help us here since a bug in JDK is, from what we found out so far, not the cause of our issue. I am not saying that it can be excluded form the list of suspects, but it is very unlikely from my point of view. We clearly see in jConsole when obeserving the heap space, that the old gen gets filled up with the above mentioned&amp;nbsp; ReferenceCountingReadOnlyIndexReader in the deletableReaders queue. These instances seem to have some references that are never released and therfore fill up old gen until a GC run can not clear up any more memory and ends up in permanently running causing a high load on the CPU and finaly end up in the JVM dying with an OOM Exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@alcibiade &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;could you tell us a bit more about your configuration? I see on your profile you are running Alfreso 3.3, and you are running on a 32 BIT System. What OS do you use, which Databasem which Java Version and what configuration settings within Alfresco did you tweak besides disabling the in transaction indexing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I understood you are using the CMIS interface, do you use AtomBinding or Webservices? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We found out that the AtomBinding implementation is quite poor since it can not stream big files and easily causes an OOM when the filesize exceeds the JVM Memory settings, so we are using the Webservices Interface with out CMIS client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You wrote that you are also getting OOM Exceptions, did you analyse the Heap Dumps to find out where all the memory goes? Is it also some Lucense Classes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tank you to both of you for your Feedback, always lucky to get any feedback at all here on this forum &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 14:35:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271815#M224945</guid>
      <dc:creator>ad-int-en</dc:creator>
      <dc:date>2011-06-16T14:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Out Of Memory during Bulk Upload via CMIS: Memory Leak?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271816#M224946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Consider to use bulk filesystem import module from Peter Monks. Is a LOT faster than FTP. I've got speeds twice faster than ftp.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://code.google.com/p/alfresco-bulk-filesystem-import/" rel="nofollow noopener noreferrer"&gt;http://code.google.com/p/alfresco-bulk-filesystem-import/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 11:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271816#M224946</guid>
      <dc:creator>rmacian</dc:creator>
      <dc:date>2011-06-17T11:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Out Of Memory during Bulk Upload via CMIS: Memory Leak?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271817#M224947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thx&amp;nbsp; rmacian, we tried the bulk filesystem import and it is indeed fast a hell (we got around 30 files/second import rate), interesting is also that even with InTransactionIndexing turned on, the Memory Leak does not appear. So for an intial bulk import it seems to be the tool/interface to go with…BUT unfortunately we need a reliable interface to pump data into the system constanty (at a lower file/second rate) but with the posibiilty to set aspects and meta data. So CMIS seems to be the only way to go for us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So up to know, even with InTransactionIndexing beeing disabled we are not able to import mroe then approx 140k files into the DMS without running into an OOM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again to all for your input on this topic so far, any more hints are highly appreceated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 09:35:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271817#M224947</guid>
      <dc:creator>ad-int-en</dc:creator>
      <dc:date>2011-06-20T09:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Out Of Memory during Bulk Upload via CMIS: Memory Leak?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271818#M224948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The point of the bulk import is that permits to set metadata on the fly with the metada.properties files. Indeed you can fill only metadata for the documents that are allready uploaded by only writting the .metadata.properties files&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is not working for you ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my blog I have done some tests (Spanish)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://alfrescoadmin.blogspot.com/2011/06/importacion-masiva-con-alfresco-bulk.html" rel="nofollow noopener noreferrer"&gt;http://alfrescoadmin.blogspot.com/2011/06/importacion-masiva-con-alfresco-bulk.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Raúl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 10:51:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271818#M224948</guid>
      <dc:creator>rmacian</dc:creator>
      <dc:date>2011-06-20T10:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Out Of Memory during Bulk Upload via CMIS: Memory Leak?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271819#M224949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Raúl, thanks a lot for your quick reply. The bulk importer is realy cool, but it is not a standardized interface to the outside world. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SInce we a running a SAS-Solution we need to stick to standard interfaces that can be accessed programaticaly, plus we already invested a lot of development work to intergrate the CMIS Interface into our exsiting infrastructure, so a switch to different interface is not possible for us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks anyway for your replies.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also this thread is about a (possible) Memory Leak in the CMIS Integration of Alfresco (and probably also in the FTP Interface) so the buk importer is a bit offtopic. But it is still very intersting to see, that using the bulk importer the memory does not seem to occur even with the standard lucene settings in alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 11:25:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271819#M224949</guid>
      <dc:creator>ad-int-en</dc:creator>
      <dc:date>2011-06-20T11:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Out Of Memory during Bulk Upload via CMIS: Memory Leak?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271820#M224950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just only to see if this is a bug that may be already fixed you could download a nightly build of Alfresco (current is 4.0) and see if the error is thrown. At least you can expect to have this solved in the future&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dev.alfresco.com/downloads/nightly/dist/" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/downloads/nightly/dist/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 11:36:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/out-of-memory-during-bulk-upload-via-cmis-memory-leak/m-p/271820#M224950</guid>
      <dc:creator>rmacian</dc:creator>
      <dc:date>2011-06-20T11:36:15Z</dc:date>
    </item>
  </channel>
</rss>

