title: read set of lage txt files form aws s3 line by line
body: <p>I'm trying to read a more than one large txt file to read them line by line form s3 , with this code .</p>
  <pre><code>const params = {
              Bucket: bucket,
              Key: key,
          };
          const s3ReadStream = s3.getObject(params).createReadStream();
      
          const rl = readline.createInterface({
            input: s3ReadStream,
            terminal: false
          });
      
          let myReadPromise = new Promise( (resolve, reject) =&gt; {
              let line_number = 1;
              
              rl.on('line', async (line) =&gt; {
  // some code 
  });
  </code></pre>
  <p>but i have this issue :</p>
  <pre><code>FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory
  </code></pre>
  <p>i increased the memory to 8 GB using this command :</p>
  <pre><code> set NODE_OPTIONS=&quot;--max-old-space-size=8192&quot;
  </code></pre>
  <p>still getting same issue , any idea how to read these files as chunks !</p>