This is a good resource if you haven't checked this already:
http://www.perl.com/pub/doc/manual/html/pod/perldebug.html#Debugging_Perl_me
mory_usage
Also, if this is a daemon, there is a trick that many daemons use to make
sure any memory leaks do not eventually fill up all available memory: they
re-exec themselves. You could do that with your perl script, although that
is really a workaround, not a solution.
--
Mark Thomas [EMAIL PROTECTED]
Sr. Internet Architect User Technology Associates, Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
> -----Original Message-----
> From: Martin Moss [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 26, 2001 8:00 AM
> To: [EMAIL PROTECTED]
> Subject: [Perl-unix-users] Memory Leaks
>
>
> All,
>
> I've got some code which is taking up too myuch memory over a
> period of
> time. i.e. it starts with only a nominal percentage of memory
> use and over a
> period of a few hours it builds up until it reaches a very
> high percentage,
> %50 ish.
>
> Anyway I was wondering if anybody could provide me some
> pointers on how to
> go about detecting the cause of this.
> I'm already going through my code ensuring that there are no
> comile time
> warnings and also trying to ensure all variables are local,
> which is how I
> usually write so I don't think I'll find anything there.
>
> Does anybody know of any good web resources on this topic?
>
> Regards
>
> Marty
>
> _______________________________________________
> Perl-Unix-Users mailing list. To unsubscribe go to
> http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users
>
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users