Hy there,

When invoking a compress command using backticks (tried also with system function, same error and executing in the background using &) within perl I get a out of memory error.

message from system function: Out of memory!

When running the perl script with the same set of data but without the compress the interface works fine.

So it seems that the compress causes some error. I monitored top during the interface run and saw that when the process aborted about 20-30 MB real memory was free. I tried then to compress the same set of data in another shell and it took about 1.7MB.

Just before the compress is invoked I logged top:

last pid: 24011; load averages: 4.07, 2.96, 3.31 10:54:08 221 processes: 217 sleeping, 2 running, 2 on cpu
Memory: 2048M real, 32M free, 2241M swap in use, 261M swap free


We are using version:

$ perl -version

This is perl, v5.8.0 built for sun4-solaris

Copyright 1987-2002, Larry Wall

and do not have quotas assigned to the users.

IS there a memory restriction on perl for executing system calls. the perl script should have enough memory elsewhere since in a later stage it occupies more memory than at the point it fails.


Thanks for any hints

Ben

In reply to Out of memory invoking system calls by mnort22

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.