[racket] Do I have a memory leak?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Oct 14 23:47:45 EDT 2013

I'm not sure I understand, but the code that you reference has
`port->bytes`, which will read the content of the port completely into
memory. If that port corresponds to the very, very large file, then you
could run out of memory by trying to load the file completely into
memory. Is that relevant?

At Sat, 12 Oct 2013 10:53:54 +0900, Chad Albers wrote:
> Hi,
> I've been toying with a reactor loop that Greg Hendersonshott wrote a
> while ago for tcp-connections.
> I notice though that the memory start exploding when I starting
> hitting it with apachebench.  So, I simplified the loop, to only
> consume a very, very large file, and I have the same behavior
> The code is here: https://gist.github.com/neomantic/7e687d75d9227ef16f81
> I've tried manually garbage collecting, and all it did was slow the
> loop, but the memory keeps growing.
> Does anyone see anything obviously wrong with what I'm doing that
> could be causing the memory of the process to keep growing and
> growing?  I've even managed to get it to crash.
> --
> Chad Albers

Posted on the users mailing list.