MIME-Version: 1.0 Message-ID: <82dd1994-e523-4d39-a946-892c2785e556@e25g2000prg.googlegroups.com> Date: Tue, 19 Feb 2008 17:49:11 -0800 (PST) Received: by 10.141.176.6 with SMTP id d6mr325428rvp.15.1203472151460; Tue, 19 Feb 2008 17:49:11 -0800 (PST) In-Reply-To: <8f5234d1-ab0a-4c2a-bb22-601c1a528100@s8g2000prg.googlegroups.com> X-IP: 208.84.6.213 References: <0e904c2f-6a80-4a8d-9b33-e0b81e6bfb51@d4g2000prg.googlegroups.com> <68c6cc16-d7d2-49c6-bc02-7f6ccb6accbf@d70g2000hsb.googlegroups.com> <26cf0239-69f0-4660-b51e-4415f235d410@s13g2000prd.googlegroups.com> <0e063b34-73b9-46d0-8eef-a767b27d3c59@e30g2000hsa.googlegroups.com> <6a93d36a-42c4-42f9-a982-98bf19415760@s8g2000prg.googlegroups.com> <8f5234d1-ab0a-4c2a-bb22-601c1a528100@s8g2000prg.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/523.12.2 (KHTML, like Gecko) Version/3.0.4 Safari/523.12.2,gzip(gfe),gzip(gfe) Subject: Re: God's memory leak - a scientific treatment From: Tom Werner To: "god.rb" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Experiment I: This experiment tests my exploratory narrowing of logging code to a single method in log_line. The codebase is http://github.com/mojombo/god/tree/b2a50c284036e094e1f751d5745501f8e5d836c3 This is a standard 10000 second test on Ruby 1.8.5 with 8 watches. 14240 (1) ... 13104 (10000) So the leak is caused somewhere in applog, but only for multiple watches. Curious indeed. Here is the specific line that causes the leak (and does not when commented out): http://github.com/mojombo/god/tree/b2a50c284036e094e1f751d5745501f8e5d836c3/lib/god/task.rb#L420