Re: Debugging memory allocation

[prev] [thread] [next] [Date index for 2005/05/10]

From: David Nicol
Subject: Re: Debugging memory allocation
Date: 19:51 on 10 May 2005
how about declaring something like=20

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 <ichudov@xxxxx.xxx> wrote:
> --- Sam Tregar <sam@xxxxxx.xxx> wrote:
>=20
> > 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?


--=20
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)

(message missing)

Debugging memory allocation
Igor Chudov 17:24 on 09 May 2005

Re: Debugging memory allocation
Sam Tregar 18:46 on 09 May 2005

Re: Debugging memory allocation
Perrin Harkins 18:52 on 09 May 2005

Re: Debugging memory allocation
Igor Chudov 19:32 on 10 May 2005

Re: Debugging memory allocation
David Nicol 19:51 on 10 May 2005

Re: Debugging memory allocation
Igor Chudov 19:54 on 10 May 2005

Re: Debugging memory allocation
David Nicol 20:59 on 10 May 2005

Re: Debugging memory allocation
Igor Chudov 21:03 on 10 May 2005

Re: Debugging memory allocation
Stas Bekman 20:26 on 10 May 2005

Re: Debugging memory allocation
Perrin Harkins 21:01 on 10 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52