I have a very simple perl script that I am using to run a backup job on a Windows Server 2003. The script uses system() to call a stand-alone .exe which backs up a GroupWise post office. It calls this .exe 4 times for 4 different POs. During the process, there seems to be some threshold where the machine locks up and this error is repeated in the event log:

Event ID 2019: The server was unable to allocate from the system nonpaged pool because the pool was empty.

From the research that I have done this seems to be a memory leak. I have adjusted the memory settings on the server. This pushed the threshold further down the road but did not get rid of it. I suspect that this is caused by using the system() command. I was using ActivePerl 5.8.4 build 810. I have just recently upgraded this to the latest version and am running a test now.

In the event that this does not fix my problem, does anyone have any suggestions how I might find/fix the leak or at least flush the memory after each system() call so that it does not lock up the server?


In reply to Activeperl & Memory Leaks by Possumfoot

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.