From: Keith Barr Date: 2008-02-22T12:54:45+09:00 Subject: Re: Newbie Mem Leak Issue Joel VanderWerf wrote: > Keith Barr wrote: >> I am fairly new to Ruby and a program that I have created seems to have >> a memory leak. I have generated a small program which does the basics >> of my program that leaks, and the test program also seems to leak. Can >> anyone spot the design flaw? >> >> Any help you can provide is greatly appreciated. > > Does not seem to leak with ruby-1.8.6p111 on linux. (I replaced > "C:/Program Files" with the mount point of my ntfs partition.) It stays > under 18Mb of VM. Interesting. I am running (obviously) on Windows and I also have a Linux box, both on patch 111, and both leaking. It isn't a quick leak, if you run for an a while it might show up. How long did you let it go? If you don't ever see anything leaking, I wonder what could be different in our setup or builds. I certainly don't see anything in there that looks like a memory leak, but it certainly grows over time on my boxes. Very difficult problem. KB -- Posted via http://www.ruby-forum.com/.