Hi,

I have been looking for an answer to my question but I cannot quite find it anywhere...

I have code that loads an Excel XLSX file into memory and then analyzes its content. However, when I load a very large file I run into the "Out of memory" error. Checking the Windows Task Manager I see that Perl is only using around 1GB and that there is memory left since my computer has 4GB of RAM. I have tried using the modules Spreadsheet::XLSX and SimpleXlsx but both run into the same issue. My question is: Is this 1GB limit a problem with Perl? Has anybody found the same issue? Is there a parameter that can be changed as the -Xmx in Java? A 32-bit OS should be able to handle all 4GB.

I have tried my code with both ActivePerl (version 5.16.2) and Strawberry Perl (version 5.16.2.1-32bit). My OS is Windows XP Professional 32-bit.

This is how I read the file with one module:

use SimpleXlsx; my($xlsx) = SimpleXlsx->new(); my($worksheets) = $xlsx->parse($file_name);

With the other module:

use Spreadsheet::XLSX; $excel = Spreadsheet::XLSX -> new ($file_name);

In reply to Out of memory problem in Windows XP 32-bit: only 1GB occupied by blanes

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.