From: Grant Schoep Date: 2012-06-07T05:04:26+09:00 Subject: Re: XML::Parser, keeping file open >> >> I have an application that seems to not be cleaning up xml files as I >> read them. I can force it to clean up by manually running GC.start. But >> I'd like to understand how to really close this, like you can do > > Close it by switching to nokogiri. libxml-ruby has had a history of > memory leaks. Thanks, I was looking at this. Unfortunately I probably can't get nokogiri approved for use quickly(business related) . I'm going to continue to dig a bit to see if I can at least find a solution for the current libxml-ruby problem. If anyone has ideas fir libxml-ruby let me know. The GC will clean them up. I may just put a GC.start in my process loop, as I generally know when I am going to get a "delay" in incoming data. To keep "nice archives" of solutions, if I end up giving up. I will also post that. Archives of old messages are great, I just hate it when I see a thread "Hey thats my problem!" and there is never a follow up like "I fixed it by doing this" or "I gave up" -- Posted via http://www.ruby-forum.com/.