<?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 PDF in doc library causes memory leak ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/pdf-in-doc-library-causes-memory-leak/m-p/270715#M223845</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 running 3.4d and I've got only (*sigh*) 800mb of available RAM for it. To avoid the permgen problem I'm running the packaged tomcat on Jrockit JVM (But issue is prolly the same under the normal sun JVM in the package).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfesco is running fine with -Xmx350m (350megs of heap space), and I used visualJM to confirm that. However the total memory usage of the tomcat service (under win 2008 server), is around 650m after launching, and stays stable until &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I enable the "Recently Modified Documents" dashlet on a site dashboard (only 2sites so far, with less than 50 docs total). Then although the heap memory stays constant at 350m (as witnessed on visualJM ), the tomcat6 process memory usage (in task manager) increases rapidly (less than a minute) to over 800m untill the process crashes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Same problem occured when opening a folder in the document library of the site&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I could delete the pdfs using "/alfresco", it was imposible to access them from "/share" without crashing tomcat&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- After deleting the culprit docs I could enable the "Recently Modified Documents" dashlet without crashing tomcat&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;There is some issue with whatever component is processing the PDFs and allows to shutdown tomcat through a memory hog/leak&lt;/STRONG&gt;&lt;SPAN&gt;. I cant upload the PDF here because it's a company doc, but it seems to be a PDF generated from a ms word doc (docx) with a (cracked?) acrobat distiller 9.0.0. Will try to create another another one and post it on monday for testing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Sep 2011 12:32:58 GMT</pubDate>
    <dc:creator>manudehanoi</dc:creator>
    <dc:date>2011-09-09T12:32:58Z</dc:date>
    <item>
      <title>PDF in doc library causes memory leak ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pdf-in-doc-library-causes-memory-leak/m-p/270715#M223845</link>
      <description>Hello,I'm running 3.4d and I've got only (*sigh*) 800mb of available RAM for it. To avoid the permgen problem I'm running the packaged tomcat on Jrockit JVM (But issue is prolly the same under the normal sun JVM in the package).Alfesco is running fine with -Xmx350m (350megs of heap space), and I use</description>
      <pubDate>Fri, 09 Sep 2011 12:32:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pdf-in-doc-library-causes-memory-leak/m-p/270715#M223845</guid>
      <dc:creator>manudehanoi</dc:creator>
      <dc:date>2011-09-09T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: PDF in doc library causes memory leak ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pdf-in-doc-library-causes-memory-leak/m-p/270716#M223846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I managed to create a test pdf and I've uploaded it here :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.mediafire.com/?p29kzi9m35gwdew" rel="nofollow noopener noreferrer"&gt;http://www.mediafire.com/?p29kzi9m35gwdew&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see the PDF opens correctly, doesnt even seem corrupted and at 25kb it cant pack much damage&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to replay the bug :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- login to &lt;/SPAN&gt;&lt;A href="http://yourdomain.com/share" rel="nofollow noopener noreferrer"&gt;yourdomain.com/share&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- choose a site, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- go the the document library and upload the pdf. Before you do so, open the task manager and watch the memory usage of the alfrescotomcat service while you press the button upload and the few seconds afterwards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Memory climbs, climbs, untill the computer is out of memory then the service explodes &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>Mon, 12 Sep 2011 09:17:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pdf-in-doc-library-causes-memory-leak/m-p/270716#M223846</guid>
      <dc:creator>manudehanoi</dc:creator>
      <dc:date>2011-09-12T09:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: PDF in doc library causes memory leak ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pdf-in-doc-library-causes-memory-leak/m-p/270717#M223847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like a bug in the 3rd party library used by Alfresco to process PDFs (PDFBox, Tikka or OpenOffice etc.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fortunately we have hired one of the contributors to Tikka and he is able to debug the issues directly and contribute fixes back to Apache. So I'll raise a bug and attach the PDF so that&amp;nbsp; he can take a look.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2011 10:50:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pdf-in-doc-library-causes-memory-leak/m-p/270717#M223847</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2011-09-12T10:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: PDF in doc library causes memory leak ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pdf-in-doc-library-causes-memory-leak/m-p/270718#M223848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in the mean time can someone tell me how to disable pdf processing so that pdfs are treated like unknown file types ? Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: I've commented out the PDF file type in mimetype-map.xml, and the application runs fine now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 08:37:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pdf-in-doc-library-causes-memory-leak/m-p/270718#M223848</guid>
      <dc:creator>manudehanoi</dc:creator>
      <dc:date>2011-09-14T08:37:20Z</dc:date>
    </item>
  </channel>
</rss>

