<?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 'Ruby IIS FastCGI'</title><link>http://forums.iis.net/search/SearchResults.aspx?o=DateDescending&amp;tag=Ruby+IIS+FastCGI&amp;orTags=0</link><description>Search results matching tag 'Ruby IIS FastCGI'</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>Re: Where is RubyforIIS (rubyforiis.sosukodo.org) has disappeared!</title><link>http://forums.iis.net/p/1154233/1889733.aspx#1889733</link><pubDate>Mon, 12 Jan 2009 19:09:33 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1889733</guid><dc:creator>ruslany</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;The instructions have been updated with new location where to download RubyForIIS from:&lt;/p&gt;
&lt;p&gt;&lt;span style="FONT-SIZE:12pt;FONT-FAMILY:&amp;#39;Times New Roman&amp;#39;,&amp;#39;serif&amp;#39;;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-ansi-language:EN-AU;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;a href="http://wiki.rubyonrails.org/rails/pages/HowToConfigureIIS7"&gt;http://wiki.rubyonrails.org/rails/pages/HowToConfigureIIS7&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>FastCGI Error</title><link>http://forums.iis.net/p/1148281/1864752.aspx#1864752</link><pubDate>Thu, 06 Mar 2008 07:31:19 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1864752</guid><dc:creator>oferpld</dc:creator><cs:applicationKey>fastcgi_handler-40</cs:applicationKey><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Currently I am trying to run PHP pages (PHP 5.2.5) under IIS 6 (windows server 2003) without any luck. I keep getting the following pages:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FastCGI Error&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The FastCGI Handler was unable to process the request. &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error Details:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;The FastCGI process exited unexpectedly&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Error Number: -1073741819 (0xc0000005).&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Error Description: Unknown Error&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I did not see any refference to the that kind of error message.&lt;/p&gt;
&lt;p&gt;Please advice, Ofer.&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></channel></rss>