In order to do everything as I do now - where I have been blissfully unaware of the managers - I do
``` (define the-manager-with-threshold (make-threshold-LRU-manager what-is-this-instance-expiration-handler? (* 512 1024 1024))) (serve/servlet start ... <usual-stuff> ... #:manager the-manager-with-threshold) ``` and this would set the threshold to roughly 512 MB, rather than 130MB? By the way, where does it say that the default is 130MB? Can I set the instance-expiration-manager to #f and that is the place where it generates the 'Sorry, this page link has expired' error? So I could provide a more meaningful error message there? Or better not, since it does more work behind the scenes? Cheers, Marc On Sun, Dec 22, 2019 at 9:58 PM Philip McGrath <phi...@philipmcgrath.com> wrote: > 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/CAD7_NO7G%3DY_Q48_pfTYknpPCrfULRL3-yoCzqMVH0at372P0Uw%40mail.gmail.com.