I am coding a largely CGI generated site in the following environment: OS: SunOS 5.7 PERL: 5.004_04 MySQL: 3.22.23b Webserver: Netscape 4.1 Modules: DBI 1.13 mod_perl is not installed Msql-Mysql-modules So here is the problem: When placed on the server for public viewing, our site causes a slow memory leak which gradually consumes the 2GB of RAM on the server and eventually crashes it. Placing one of our CGI files in a shell script and running it with command line arguments in a loop 100 times crashes the server immediately. However, when we take this same script and run it on a server with the same environment except with PERL 5.005_03, no memory leak occurs. Normally, I would just upgrade the version of PERL on the original server and put it behind me, but I can't because it is not my server-it is a corporate one...I might be able to get it installed but I need "real documented proof" that this is the problem before I can get the corporate server team to upgrade as it will require testing on a massive scale. Also, the scripts have been looked at repeatedly and exhaustively by seasoned programmers...there is nothing that should be causing this...all database and file handles that are opened are closed again, the scripts do not spawn additional processes, there are no infinite loops, etc. Since the problem occurs at the command line at well, we can pretty much rule the webserver out. So...any ideas? Anything at all would help, even if you are just speculating and dont have a real clue...

In reply to PERL memory leak? by Anonymous Monk

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.