You can probably use `make-threshold-LRU-manager
<https://docs.racket-lang.org/web-server/servlet.html?q=file-box#%28def._%28%28lib._web-server%2Fmanagers%2Flru..rkt%29._make-threshold-.L.R.U-manager%29%29>`
with a much higher memory threshold than the default from `serve/servlet`,
which is about 130 MB. The manager will start expiring continuations at
that threshold even if you have lots of RAM available.

-Philip

On Sat, Dec 21, 2019 at 3:31 PM George Neuner <gneun...@comcast.net> wrote:

>
> On 12/21/2019 4:38 AM, Marc Kaufmann wrote:
>
>
> Did you perhaps change the continuation manager - or its setup?
>>
>> https://docs.racket-lang.org/web-server/servlet.html?q=ffi#%28part._managers%29
>>
>>
> No, not really. I simply import send/suspend/dispatch etc and use them
> without doing anything in particular. I am requiring them within
> typed/racket if that matters via require/typed. So I have no idea where to
> configure the continuation manager - I don't even know where the current
> one is.
>
>
> If you started from serve/servlet - and didn't specify differently - then
> you are using the default LRU continuation manager.   If the load spikes,
> it will drop saved continuations to get memory use back under control.
>
>    -
>    
> https://docs.racket-lang.org/web-server/run.html?q=serve%2Fservlet#%28def._%28%28lib._web-server%2Fservlet-env..rkt%29._serve%2Fservlet%29%29
>    -
>    
> https://docs.racket-lang.org/web-server/servlet.html#%28def._%28%28lib._web-server%2Fmanagers%2Flru..rkt%29._make-threshold-.L.R.U-manager%29%29
>
>
> You can specify to use a different manager (including a custom one) in the
> call to serve/servlet.
>
>
> George
>
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/racket-users/f974666a-3e1a-3cd8-d371-09e9a283a157%40comcast.net
> <https://groups.google.com/d/msgid/racket-users/f974666a-3e1a-3cd8-d371-09e9a283a157%40comcast.net?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAH3z3gYQWMiuBRsGR_G%3DNzN85ahf0weJHvo7XRSKZohWY3Mrzw%40mail.gmail.com.

Reply via email to