how about declaring something like 

sub LogMemoryUsage(){
   open PIDLOG, ">>pidlog";
   flock PIDLOG, LOCK_EX;
   print PIDLOG, "$$ $ENV{SCRIPT_NAME} ",`ps -p $$ -os`
   close PIDLOG;
};

and then calling LogMemoryUsage() at the beginning (and end) of
every routine that you suspect might have the leak?  Examining the
resulting log would provide clues.

On 5/10/05, Igor Chudov <[EMAIL PROTECTED]> wrote:
> --- Sam Tregar <[EMAIL PROTECTED]> wrote:
> 
> > On Mon, 9 May 2005, Igor Chudov wrote:
> >
> > > I would like to at least have a log that lists
> > pid,
> > > page requested, parameters, starting memory and
> > memory
> > > after the request was processed. O rsome other
> > ideas
> > > like that. Any thoughts?


-- 
David L Nicol
Ask not, "who are you?", but rather, "are you allowed?"
This was always the crucial question anyway.
(from Marc Stiegler's SecurityPictureBook:
http://www.skyhunter.com/marcs/SecurityPictureBook.ppt)

Reply via email to