Re: Memory Management
- --- In firstname.lastname@example.org, Tom Barron <tbarron@m...> wrote:
> sloan.scott@n... wrote:of
> > ...
> > 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
> > the time it dies because it uses up all available memory on mywould
> > 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
> run out of memory sooner. What you need to do is rewrite theprogram so
> it handles the input file in pieces.How about tracking how much memory is in use? When it reaches a
certain limit then flag on it. Is that possible?