gowtham has asked for the wisdom of the Perl Monks concerning the following question:

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

Replies are listed 'Best First'.
Re: slow running of perl scripts..
by BrowserUk (Patriarch) on Sep 19, 2002 at 09:45 UTC

    he script is attached with this mail.

    As far as I am aware, there is no email interface to PM?

    I'm not quite sure what you meant by that. In anycase, there is no sign of any code with your question, and unless some of the other Monks have prescience, you will have to show us the code before we willbe able to make any suggestions. You could best do this by posting a reply to your own question and cut & paste the code into the edit field in between code tags. eg.

    <code>

    # Your code goes here...

    </code>


    Cor! Like yer ring! ... HALO dammit! ... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!
Re: slow running of perl scripts..
by fireartist (Chaplain) on Sep 19, 2002 at 09:46 UTC
    gowtham, you forgot to add your code.
    Add a reply to your original question, by clicking on the "Comment on slow running of perl scripts.." link,
    and then paste your code into the text box, and make sure you put it between <code></code> tags so that is displays properly.