Loading ...
Sorry, an error occurred while loading the content.

Re: Memory Management

Expand Messages
  • sloan.scott@nih.gov
    ... of ... would ... program so ... How about tracking how much memory is in use? When it reaches a certain limit then flag on it. Is that possible? -Scott
    Message 1 of 2 , Aug 31, 2000
    • 0 Attachment
      --- In perl-beginner@egroups.com, Tom Barron <tbarron@m...> wrote:
      > sloan.scott@n... wrote:
      > > ...
      > > How can I keep my perl programs from using all my memory? I have
      > > this program that reads in a very large file and parses it. Must
      of
      > > the time it dies because it uses up all available memory on my
      > > machine. Is there anyway to control how much memory it can have
      > > access too?
      >
      > I don't know of a way to limit the memory available to a particular
      > process, but if you did that, it would just die sooner, cause it
      would
      > run out of memory sooner. What you need to do is rewrite the
      program so
      > it handles the input file in pieces.
      >
      > Tom

      How about tracking how much memory is in use? When it reaches a
      certain limit then flag on it. Is that possible?

      -Scott
    Your message has been successfully submitted and would be delivered to recipients shortly.