<?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: Java Heap Space issue while reading 50MB files in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/java-heap-space-issue-while-reading-50mb-files/m-p/98615#M28735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ContentReader cr = fileFolderService.getReader(new NodeRef("noderef"));&lt;BR /&gt; InputStream fis = cr.getContentInputStream();&lt;/P&gt;&lt;P&gt;Scanner sc = new Scanner(fis, "UTF-8");&lt;BR /&gt; while (sc.hasNextLine()) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String line = sc.nextLine();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(line);&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;With above code 55 MB file reading fine.Without any error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jul 2019 12:47:02 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2019-07-03T12:47:02Z</dc:date>
    <item>
      <title>Java Heap Space issue while reading 50MB files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/java-heap-space-issue-while-reading-50mb-files/m-p/98614#M28734</link>
      <description>Hi everyone,I want to read 50-100 MB CSV file in java script rule to update the details in Alfresco data list. But I am getting Java Heap space issue on the below line of code.var items = companyhome.childByNamePath("/Sites/datalists/documentLibrary/Demo.csv").content;Also I tried Java code in the b</description>
      <pubDate>Wed, 03 Jul 2019 06:30:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/java-heap-space-issue-while-reading-50mb-files/m-p/98614#M28734</guid>
      <dc:creator>yash_patel_c2</dc:creator>
      <dc:date>2019-07-03T06:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Java Heap Space issue while reading 50MB files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/java-heap-space-issue-while-reading-50mb-files/m-p/98615#M28735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ContentReader cr = fileFolderService.getReader(new NodeRef("noderef"));&lt;BR /&gt; InputStream fis = cr.getContentInputStream();&lt;/P&gt;&lt;P&gt;Scanner sc = new Scanner(fis, "UTF-8");&lt;BR /&gt; while (sc.hasNextLine()) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;String line = sc.nextLine();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.out.println(line);&lt;BR /&gt; }&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;With above code 55 MB file reading fine.Without any error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 12:47:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/java-heap-space-issue-while-reading-50mb-files/m-p/98615#M28735</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-07-03T12:47:02Z</dc:date>
    </item>
  </channel>
</rss>

