i have written a perl script. which handles a file with the size of 17Mb. it takes a small piece of information from that does some processing and writes in different file. this goes on till all the stuff in the main file is procssed. mine is P4 clone with Red Hat 7.1 with the 256 RAM. this script runs very fast for first 4 to 5 hrs. after that it became very very slow. when i test top command output.... it says.. only 1-3 % of memmory is being used. 5% of CPU is being used. the machine became so slow that i cant even open another terminal....even to run top command i have to slogin from another pc clone. the script is attached with this mail. fate is same even when i run this on compac alpha server with 2 GB RAM. this can be restored only after i restart my computer. (system is relatively slow even after killing the perl program). any help will be appriciated. many thanx in advance gowtham

In reply to slow running of perl scripts.. by gowtham

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.