From: Tony Arcieri Date: 2009-05-08T12:57:52+09:00 Subject: Re: Ruby memory usage --0016e644cefa7eeb0e04695ea151 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Thu, May 7, 2009 at 12:01 PM, Pete Hodgson wrote: > My team has noticed that these processes memory usage gradually grows > over time. As a concrete example one of my processes starts life using > around ~20MB of virtual memory, and 20 hours later is sitting at 382MB > of virtual memory, 115MB resident. > One thing to keep in mind is that MRI's garbage collector never returns memory to the system, and doesn't do a very good job in general. MRI has a tendency towards unbounded heap growth over time, especially in long-running processes. You might try JRuby if you don't have too many dependencies on C extensions. It uses the advanced garbage collection available in the JVM. -- Tony Arcieri medioh.com --0016e644cefa7eeb0e04695ea151--