[racket] racket http server, major GC: -216 bytes collected

From: Neil Van Dyke (neil at neilvandyke.org)
Date: Mon Jan 17 10:21:07 EST 2011

FWIW, in load testing of a large Web app using SCGI, under PLT 4.2.5 
with CGC, we haven't yet found any memory leaks.  The process size would 
grow initially and then plateau at a reasonable size.

A general good fallback plan, whatever your technology (Racket, or 
something else), is to retire server processes after a while.  If your 
system is architected to scale using load-balanced servers, which is a 
good idea anyway, implementing retiring is easy.

(Have a flag or time-to-live value for each server/process, stop sending 
new sessions/connections to the retired server/process, and exit the 
server/process once no more active sessions/connections; start new 
servers/processes as needed.)


Posted on the users mailing list.