From: Bob Showalter Date: 2007-06-27T02:39:09+09:00 Subject: Re: Clearing the RAM On 6/25/07, Ari Brown wrote: > Hey, > I was wondering, is there a way to clear the RAM Ruby uses in some > code? For instance, if I read in an entire file into the memory, can > I clear the RAM that was used? The memory is freed for your application's use when all references to it are broken. It's not given back to the operating system, though. The classic way to do this is to restart your program with Kernel#exec() (perhaps in response to a SIGHUP)