<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Robby on Rails: ALERT - Ruby fcgi 0.8.5 memory leak</title>
    <link>http://www.robbyonrails.com/articles/2005/05/12/alert-ruby-fcgi-0-8-5-memory-leak</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>thoughts.sort_by{|t| t[:topic]}.collect </description>
    <item>
      <title>ALERT - Ruby fcgi 0.8.5 memory leak</title>
      <description>&lt;p&gt;Just a &lt;span class="caps"&gt;FYI&lt;/span&gt;. If you have installed fcgi from &lt;a href="http://rubyforge.org/projects/rubygems/"&gt;RubyGems&lt;/a&gt;, the version that is currently available as a gem (0.8.5) has a &lt;a href="http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/134712"&gt;known memory leak&lt;/a&gt;... which has crippled one of our servers a few times this past week as it slowly sucks the life out of the machine.
&lt;br /&gt;&lt;br /&gt;
I hope that we can get the fix in 0.8.6 which you can download &lt;a href="http://sugi.nemui.org/prod/ruby-fcgi/"&gt;here&lt;/a&gt; available as a gem in the near future. I think that a lot of people will unknowingly use the one in &lt;a href="http://rubyforge.org/projects/rubygems/"&gt;RubyGems&lt;/a&gt; and not be aware of this major problem (as I was until this morning when I finally tracked the root of the problem). 
&lt;br /&gt;&lt;br /&gt;
Thanks to the Typo people for alerting me of this issue&amp;#8230; especially when I saw that this blog alone was using more than 100 MB of Ram after 2 hours of being up. I almost began to think that Java might be more efficient. ;-)
&lt;br /&gt;&lt;br /&gt;
If you are not sure what version you are running, you can find out by doing this on a &lt;span class="caps"&gt;UNIX&lt;/span&gt; machine:
&lt;br /&gt;
&lt;pre&gt;
# gem list|grep cgi
fcgi (0.8.5)
&lt;/pre&gt;
&lt;br /&gt;&lt;br /&gt;
Download and install &lt;a href="http://sugi.nemui.org/prod/ruby-fcgi/"&gt;fcgi 0.8.6&lt;/a&gt;, uninstall 0.8.5 from rubygems if necessary (I did just to be sure that apache/fcgi was using the new version) and restart your web server(s).
&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
</description>
      <pubDate>Thu, 12 May 2005 16:18:12 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:6880cf0771c86e37e544c23b27a5aaf8</guid>
      <author>Robby Russell</author>
      <link>http://www.robbyonrails.com/articles/2005/05/12/alert-ruby-fcgi-0-8-5-memory-leak</link>
      <category>Business</category>
    </item>
  </channel>
</rss>
