I have written an app in apache asp, which uses embedded perl in the asp pages. I have realized...after I have finished the project, that the pages allocate memory from the server, even after you close the pages. As I go to my webpages, the memory used grows and grows, even if it is the same page I am accessing. I was wondering if by using strict or using lexical variables would solve these issues, or if there was another way to deallocate the memory from the perl variables. An example...my first page, makes my httpd process jump from 11 MB to 12 MB, when viewing memory usage in "top"(linux). The second page I access, jumps memory usage up to 22MB. Each page after that, continues to increase memory usage. Before I put this into a true production environment, I need to figure out why the memory is being held. Any answers or suggestions are appreciated!

In reply to Memory Issue by atticboy1

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.