What amount of Ram have you got in your system?
Half a gig of RAM and a quarter of gig of swap space.
Are you running many resource intensive apps at the same time as the script (Like any java apps)?
No, the system is mostly idle. No java running. Just Netscape (approx 66 Mb) and X (about 100 Mb), and a few xterms running bash.

I considered system resources, but it doesn't add up. Where the program runs out of memory is repeatable; it only does with 'map', and it doesn't run out of memory if you increase $MAX. That doesn't seem to be consistent with running out of system resources.

The system is Redhat 7.3, running perl 5.8.2. Ah, I see I have 5.8.0 and 5.8.1 installed as well. It runs out of memory with 5.8.1 as well, but not with 5.8.0. Now, that's interesting.

Abigail


In reply to Re: Unexpected 'Out of Memory' by Abigail-II
in thread Unexpected 'Out of Memory' by Abigail-II

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.