[plt-scheme] Web server consuming much memory and slowing down with use -- some benchmarks.

From: Robby Findler (robby at cs.uchicago.edu)
Date: Wed Apr 25 11:03:32 EDT 2007

On 4/25/07, Jens Axel Søgaard <jensaxel at soegaard.net> wrote:
> Jay McCarthy skrev:
>
> >>   (define timeout +inf.0)
> >
> > Because of this line, the web-server will never reclaim memory used by
> > this servlet. Every request will create a structure used to hold
> > continuations that it might capture (the server doesn't know it
> > doesn't actually use them) and then hold on to that structure forever.
>
> Is it possible to improve this?

I wondered a dual question: does setting the timeout to 0 when there
are no continuations actually change the behavior (aside from plugging
the leak)?

Robby

Posted on the users mailing list.