<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Over the past few months we have been experiencing stability issue with our MapServer 6.4.1 windows builds running under IIS 7.5 (configured as FastCGI module).
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We discovered that IIS was restarting mapserv.exe instance after each request containing a POST body.    After investigation, I have found  that other projects using libfcgi were suffering from the exact same behavior.  The problem is well
 documented on <a href="http://forums.iis.net/t/1150498.aspx?FastCGI+Error+Number+233+for+Ruby+on+Rails+Configuration">
http://forums.iis.net/t/1150498.aspx?FastCGI+Error+Number+233+for+Ruby+on+Rails+Configuration</a> and
<a href="http://www.perlmonks.org/?node_id=862506">http://www.perlmonks.org/?node_id=862506</a>.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">As suggested in the forum threads, I have applied the libfcgi patch available at:
<a href="http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/fcgi2.git;a=commitdiff;h=c4d74207308dfafa652925306c6b2828843e0e97">
http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/fcgi2.git;a=commitdiff;h=c4d74207308dfafa652925306c6b2828843e0e97</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Once the patch applied,  Mapserv.exe was able to serve more than one request  before being recycled.  However, after performing stress tests with JMeter we were still getting an  error rate of ~10%.    So even with the libfcgi patch applied,
  we keep having issues with POST requests. <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The problem is difficult to reproduce, but at some point Mapserver.exe instances start hanging and the instance finally get killed by IIS.  I’m convinced that issue is caused by a bad libfcgi communication/behavior: each time the process
 hang, the application seems to be blocked on a FCGI_Accept call, which let us think the Mapserver’s core code is not the root of the problem.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Looking at libfcgi website, I can see that version is 2.4.6 and have not been updated since 2007 and their mailing list seems to be dead, so it looks like it will be very difficult to get support from that project.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m interested in your thoughts and suggestion about this.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Michel D’Astous<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>