<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Search results matching tag 'rails'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=rails&amp;orTags=0</link><description>Search results matching tag 'rails'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Limitations regarding InstanceMaxRequests and IdleTimeout IIS6 fcgiext 1.5</title><link>http://forums.iis.net/p/1161714/1921113.aspx#1921113</link><pubDate>Sun, 18 Oct 2009 10:23:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1921113</guid><dc:creator>bg</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Dear WenJun Zhang,&lt;/p&gt;
&lt;p&gt;Thank you for answer. It was indeed the application pool´s idle shutdown feature that caused the shut down of the idle processes. &lt;/p&gt;
&lt;p&gt;I have now created a new application pool for my RoR site, trying to find settings that give acceptable performance for my application. Avoiding idle timeout of the Ruby processes in my pool helped to some degree but I have so far not been able to prevent the processes from dying after about 120 requests, regardless of the load I put on the IIS. So this is still a major problem.&lt;/p&gt;
&lt;p&gt;The typical behaviour when testing the site with low load is a response time, when a ruby process in the pool starts, of 10 seconds. The following consecutive requests render a response in 90-120 ms, until the process dies and starts over. One Ruby process occupies about 35 Mb of memory, and there is plenty of memory on my server to accommodate many Ruby processes at the same time. During my resent tests I have limited the number of instances to 4. (MaxInstances=4)&lt;/p&gt;
&lt;p&gt;In my application pool I now run with these settings:&lt;/p&gt;
&lt;p&gt;Recycling panel: &amp;nbsp;&lt;br /&gt;Recycle worker processes (in minutes): unchecked, &lt;br /&gt;Recycle worker processes (number of requests): unchecked, &lt;br /&gt;Recycle worker processes at the following times: unchecked, &lt;br /&gt;Memory recycling: Maximum virtual memory: unchecked, &lt;br /&gt;Maximum used memory: unchecked&lt;/p&gt;
&lt;p&gt;Performance panel: &lt;br /&gt;Idle timeout: unchecked, &lt;br /&gt;Request queue limit: unchecked, &lt;br /&gt;Enable CPU monitoring: unchecked, maximum number of worker processes: 4&lt;/p&gt;
&lt;p&gt;Health panel: &lt;br /&gt;Enable pinging: checked, &lt;br /&gt;Enable rapid-fail protection, unchecked, &lt;br /&gt;Startup time limit: 100, &lt;br /&gt;Shutdown time limit: 90&lt;/p&gt;
&lt;p&gt;Fcgiext.init: &lt;br /&gt;ExePath=D:\ruby\bin\ruby.exe &lt;br /&gt;Arguments=D:\rails\Ruby\public\dispatch.fcgi &lt;br /&gt;IgnoreDirectories=0 &lt;br /&gt;IgnoreExistingFiles=1 &lt;br /&gt;QueueLength=1000 &lt;br /&gt;MaxInstances=4 &lt;br /&gt;InstanceMaxRequests=100000 &lt;br /&gt;IdleTimeout=43200 &lt;br /&gt;StderrMode=IgnoreAndReturn200 &lt;br /&gt;ResponseBufferLimit=8388608 &lt;br /&gt;EnvironmentVars=RAILS_ENV:production &lt;/p&gt;
&lt;p&gt;Are there any other settings I could try to manipulate in order to make my ruby processes survive more than 120 requests, even at low load conditions (two requests per second)&lt;/p&gt;
&lt;p&gt;I really would appreciate suggestions how to resolve this problem.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>Simultaneous requests to Rails</title><link>http://forums.iis.net/p/1146203/1855969.aspx#1855969</link><pubDate>Wed, 05 Sep 2007 17:04:40 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855969</guid><dc:creator>chrisortman</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;I&amp;#39;ve managed to get a rails app working under IIS using FastCGI, however I&amp;#39;ve run into a bit of a snag. As a test I have a client program send 10 simultaneous requests to the same rails page (simple render &amp;#39;hello world&amp;#39;)&lt;/p&gt;&lt;p&gt;However when I slowly ramp up and get 10 ruby processes sitting idle on the webserver I can get all 10 simultaneous requests to complete successfully. I&amp;#39;m not sure if I would want a way to always have at least N workers or if there needs to be a way to get ruby.exe to start faster?&lt;/p&gt;&lt;p&gt;Thanks&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Error 0x80004005 occurred processing request.</title><link>http://forums.iis.net/p/1146196/1855907.aspx#1855907</link><pubDate>Tue, 04 Sep 2007 22:26:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1855907</guid><dc:creator>dfunky</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;I followed &amp;quot;10 steps to get Ruby on Rails running on Windows with IIS FastCGI&amp;quot; to get my app running on two different W2K3 servers. &lt;/p&gt;
&lt;p&gt;Everything went fine with the first installation but I just can&amp;#39;t get it work on the second server. I&amp;#39;ve repeated the steps over and over and I still get the same error:&lt;/p&gt;
&lt;p&gt;Error 0x80004005 occurred processing request. &lt;br /&gt;&lt;br /&gt;&lt;i&gt;The FastCGI process exited unexpectedly&lt;/i&gt; &lt;/p&gt;
&lt;p&gt;This is what I get in the fastcgi.crash.log after trying the test controller:&lt;/p&gt;
&lt;p&gt;[04/Sep/2007:18:13:51 :: 6296] Ignoring unsupported signal USR2.&lt;br /&gt;[04/Sep/2007:18:13:51 :: 6296] Ignoring unsupported signal HUP.&lt;br /&gt;[04/Sep/2007:18:13:51 :: 6296] Ignoring unsupported signal SIGTRAP.&lt;br /&gt;[04/Sep/2007:18:13:51 :: 6296] starting&lt;br /&gt;[04/Sep/2007:18:13:51 :: 6296] Dispatcher failed to catch: You have a nil object when you didn&amp;#39;t expect it!&lt;br /&gt;You might have expected an instance of Array.&lt;br /&gt;The error occurred while evaluating nil.split (NoMethodError)&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/1.8/cgi.rb:897:in `parse&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/cgi_ext/raw_post_data_fix.rb:45:in `initialize_query&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/1.8/cgi.rb:2274:in `initialize&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/site_ruby/1.8/fcgi.rb:592:in `new&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/site_ruby/1.8/fcgi.rb:592:in `each_cgi&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in `process_each_request!&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:55:in `process!&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:25:in `process!&amp;#39;&lt;br /&gt;&amp;nbsp; E:/aweb/LocalUser/xxxx/public/dispatch.fcgi:24&lt;br /&gt;almost killed by this error&lt;br /&gt;[04/Sep/2007:18:13:51 :: 6296] Dispatcher failed to catch: You have a nil object when you didn&amp;#39;t expect it!&lt;br /&gt;You might have expected an instance of Array.&lt;br /&gt;The error occurred while evaluating nil.split (NoMethodError)&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/1.8/cgi.rb:897:in `parse&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/cgi_ext/raw_post_data_fix.rb:45:in `initialize_query&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/1.8/cgi.rb:2274:in `initialize&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/site_ruby/1.8/fcgi.rb:592:in `new&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/site_ruby/1.8/fcgi.rb:592:in `each_cgi&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in `process_each_request!&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:55:in `process!&amp;#39;&lt;br /&gt;&amp;nbsp; C:/Ruby/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:25:in `process!&amp;#39;&lt;br /&gt;&amp;nbsp; E:/aweb/LocalUser/xxxx/public/dispatch.fcgi:24&lt;br /&gt;killed by this error&lt;/p&gt;
&lt;p&gt;The only thing that went different from the first installation to the other was the &amp;quot;MSVCR71.dll was not found&amp;quot; error I got durring the 2nd install.&amp;nbsp;Still&amp;nbsp;the &amp;quot;require &amp;#39;fcgi&amp;#39;&amp;quot;&amp;nbsp;instruction resulted to true so I assumed to installation was ok...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Please help me !&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>FastCGI with Ruby on Rails - IIS 5.1 / IIS 6 - Http POST issue.</title><link>http://forums.iis.net/p/1122392/1755757.aspx#1755757</link><pubDate>Fri, 15 Jun 2007 01:30:51 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1755757</guid><dc:creator>mspeight</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;&lt;span&gt;I have got IIS and Multiple App&amp;#39;s to talk
using same technique’s as I used with isap_fcgi.dll, all works fine apart from an
intermittent problem.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span&gt;After returning data from a POST, the
rubyw.exe process is left in some funny state, and the next request causes
rubyw.exe to exit. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span&gt;The same request may work 3 times, then crash
on the 4&lt;sup&gt;th&lt;/sup&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span&gt;Steps are as follows&lt;span&gt;&amp;nbsp; &lt;/span&gt;POST -&amp;gt;&lt;span&gt;&amp;nbsp;
&lt;/span&gt;Returns a Redirect -&amp;gt; GET on Redirfect fails to return (ruby.exe
exits) -&amp;gt; Browser has another go new instance of ruby.exe started and page
returned&lt;/span&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span&gt;Other Steps are POST -&amp;gt; Returns just
render_text -&amp;gt; Another browser instance goes to url -&amp;gt; No page/error is
returned (i.e. the new request got to rubyw but it crashed)&lt;/span&gt;&lt;/p&gt;





&lt;p class="MsoNormal"&gt;&lt;span&gt;I have duplicated this with a simple form,
that posts and returns itself. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span&gt;It seems to be a timing thing, But I cant
figure out the cause.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span&gt;PS: I have patched the cgi.rb (To remove the
IIS reference, if you don’t you get random crashes ay any time) &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span&gt;Anyone come across this before.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;-----------------&amp;nbsp;&lt;/p&gt;





&lt;p class="MsoNormal"&gt;&lt;span&gt;By set-up is detailed here &lt;a href="http://mspeight.blogspot.com/2007/05/how-to-run-multiple-rails-apps-under.html"&gt;http://mspeight.blogspot.com/2007/05/how-to-run-multiple-rails-apps-under.html&lt;/a&gt;
&lt;span&gt;&amp;nbsp;&lt;/span&gt;(but uses fcgiext.dll instead of &lt;span&gt;&amp;nbsp;&lt;/span&gt;isapi_fcgi.dll).&amp;nbsp; I did need to repatch the
&amp;quot;AbstractRequest:request_uri&amp;quot; differently as this FastCGI does
provide REQUEST_URI&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Directory Listing Denied</title><link>http://forums.iis.net/p/1115802/1729052.aspx#1729052</link><pubDate>Mon, 28 May 2007 22:26:16 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1729052</guid><dc:creator>armanddp</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;I know this is probably not directly related to the FastCGI handler but after configuring my site in IIS to support Ruby on Rails following the 10 steps instructions over &lt;a href="http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx"&gt;here&lt;/a&gt; I can&amp;#39;t get the default document to work. i.e., when people browse to http://mysite.com/ they get directory listing denied but when browsing to a controller fastcgi kicks in and my Rail application works. &lt;/p&gt;&lt;p&gt;I know I&amp;#39;m missing something obvious but for the life of me can&amp;#39;t get it to serve a default document. I&amp;#39;ve tried various default document combinations. Tried the isapirewrite4 filter to rewrite requests to dispatch.fcgi and in a short ritual offered a small chicken to the web gods but still no luck.&lt;/p&gt;&lt;p&gt;Any suggestions would really be appreciated. (Great work on the fastcgi handler, apart from the default doc issue it seems to be working like a charm)&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>