Can you narrow down what code actually runs on this one page? If it happens on 
any one page, is there some shared code? 

It is very likely, which would be lucky for you, that some large data 
structure is being created with each request and not deleted. As Gustaf said, 
I guess that XOTcl objects might need special handling as well, this isn't 
really different than creating data and forgetting to delete it, just another 
potential source to forget to cleanup. 

Don't worry about the prequeue filters, they shouldn't be used, but they 
exist, and I just happened to stumble across them, in AOLserver 4.5.  My 
guess is that an iterp is created and never deleted, as they run prior to 
assigning a request to a conn thread. 

tom jackson

On Monday 03 March 2008 08:55, Alex wrote:
> Tom, Gustaf, All
>
> Yes, that happens even if the same page is requested.
> Could you tell me more about pre-queue filters?
>
> The interesting thing is that I only see this memory leak issue on one
> of my servers.
> All servers run x86 Debian, though might be slightly differently
> dist-upgraded, Postgres version differs 7.4 vs 8.2
> The website code itself, nsd config files are exactly the same on all
> servers.
>
> Over the weekend I tried to rebuild tcl, tcllib, xotcl, aolserver.
> The details how I did it can be found here
> http://alex-andr.org/notes/tiki-index.php?page=AOLServer+setup+with+XOTcl
> I used latest versions however, tcl 8.4.18, tcllib 1.10, xotcl 1.6.0
>
> I even made a crude script that fetches the sources and builds a
> stand-alone aolserver installation,
> in order to make sure the build results are reproducible.
> http://alex-andr.org/notes/tiki-index.php?page=nsd+setup+script
>
> Still, even when all [hopefully] binaries are being copied to all
> servers, only one of them
> experience the same issue with huge memory leak on each page request.
>
> Any insightful thoughts?
>
> Thanks,
> ~ Alex.
>
> On Fri, Feb 29, 2008 at 6:23 PM, Tom Jackson <[EMAIL PROTECTED]> wrote:
> > Actually 2MB / request sounds like a massive memory leak. Maybe something
> >  isn't getting cleaned up?
> >
> >  Question: does this happen if you request the same page over and over?
> >
> >  I discovered one way to get a massive leak in 4.5: register a prequeue
> > filter.
> >
> >  Note that both XoTCL and tcllib are compiled third party modules, which
> > is usually where you get memory leaks, not in the modules which have been
> > used with AOLserver for years. My guess would be tcllib, or just failing
> > to release something big.
> >
> >  tom jackson
> >
> >  On Friday 29 February 2008 11:47, Alex wrote:
> >  > What would be a "normal" size of 32 bit nsd process? How can it be
> >  > reduced? One of my servers only has 1G or ram, and I am forced to
> >  > restart nsd every so often, when it uses up almost all the memory.
> >  > Running 4.5 + XoTCL + tcllib, it seams to grow up to 2MB on each page
> >  > request .
> >
> > --
> >  AOLserver - http://www.aolserver.com/
> >
> >  To Remove yourself from this list, simply send an email to
> > <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the
> > email message. You can leave the Subject: field of your email blank.
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the
> email message. You can leave the Subject: field of your email blank.


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to