<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.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>Segment7: Controlling Rails Process Size: Update</title>
    <link>http://blog.segment7.net/articles/2007/02/28/controlling-rails-process-size-update</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>The Blog</description>
    <item>
      <title>Controlling Rails Process Size: Update</title>
      <description>&lt;p&gt;A while back Simon Lundstr&amp;ouml;m wrote me because he was having problems limiting process sizes using the Process::setrlimit as described in my previous post, &lt;a href="/articles/2006/09/13/controlling-rails-process-size"&gt;Controlling Rails Process Size&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;After some back-and-forth we found that on Debian, to limit process sizes use the &lt;code&gt;Process::RLIMIT_MEMLOCK&lt;/code&gt; and &lt;code&gt;Process::RLIMIT_AS&lt;/code&gt; constants.&lt;/p&gt;


	&lt;p&gt;On &lt;span class="caps"&gt;OS X&lt;/span&gt; we couldn&amp;#8217;t find any &lt;code&gt;RLIMIT_*&lt;/code&gt; constants that would effect a limit, nor when setting limits using the ulimit shell builtin.  (Probably because &lt;span class="caps"&gt;OS X&lt;/span&gt; doesn&amp;#8217;t use the UNIXy brk(2) syscall when you malloc(3) memory.)  If somebody knows the magic to limit process size on &lt;span class="caps"&gt;OS X&lt;/span&gt;, I&amp;#8217;d like to hear it.&lt;/p&gt;
</description>
      <pubDate>Wed, 28 Feb 2007 12:56:24 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:660acfb7-93ab-4b28-be47-441b06b11605</guid>
      <author>drbrain@segment7.net (Eric Hodel)</author>
      <link>http://blog.segment7.net/articles/2007/02/28/controlling-rails-process-size-update</link>
      <category>Ruby</category>
    </item>
  </channel>
</rss>
