<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 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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"><span style="color:#1F497D">Not a fcgi expert, but looking at the code any error calls writeError() in mapserv.c which ends with exit(0). So as written the behavior you’re seeing is expected. I don’t believe there is much overhead with
 restarting though.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Steve<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> mapserver-users-bounces@lists.osgeo.org [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Thomas Joseph<br>
<b>Sent:</b> Thursday, July 05, 2012 5:13 AM<br>
<b>To:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> [mapserver-users] mapserver fastcgi warnings when msQueryByPoint() Search returns no results<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am not sure if this is a problem or not but I was wondering if anyone else has experienced fastcgi warnings with every msQueryByPoint that returns no results ?  Everything works as expected when querying a point that returns a result
 or simply panning or zooming the map.  However, when a user clicks on the map and the query returns no results the fastcgi terminates the pid and creates a new one.  Is this normal behavior ?  I am very much a novice with fastcgi but it seems like this will
 slow things down and is counter intuitive to using fastcgi.  The user experience is not affected but if we could make things faster that would always be good.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">We are using the following setup:<o:p></o:p></p>
<p class="MsoNormal">Ubuntu 64bit Server – 10.10<o:p></o:p></p>
<p class="MsoNormal">Mapserver 6.0.1<o:p></o:p></p>
<p class="MsoNormal">Apache/2.2.16 <o:p></o:p></p>
<p class="MsoNormal">mod-fastcgi 2.4.6-1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Below I have included a except of the mapserver MS_ERRORFILE and the apache2 error log:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">MS_ERRORFILE<o:p></o:p></p>
<p class="MsoNormal">[Thu Jul  5 21:42:22 2012].92065 CGI Request 2 on process 27946<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[Thu Jul  5 21:42:22 2012].231782 msQueryByPoint(): Search returned no results. No matching record(s) found.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[Thu Jul  5 21:42:22 2012].231829 msFreeMap(): freeing map at 0x8f983d0.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">/var/log/apache2/error.log<o:p></o:p></p>
<p class="MsoNormal">[Thu Jul 05 21:42:22 2012] [warn] FastCGI: server "/usr/lib/cgi-bin/mapserv.fcgi" (pid 27946) terminated by calling exit with status '0'<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[Thu Jul 05 21:42:22 2012] [warn] FastCGI: server "/usr/lib/cgi-bin/mapserv.fcgi" restarted (pid 27948)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p> <o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<hr size="2" width="100%" align="center">
</span></div>
<p>THIS EMAIL IS CONFIDENTIAL.  Its use or disclosure by any person other than the addressee is unauthorised.  Anyone other than the intended recipient must not rely on the content of this email or any attachment to it.  The sender cannot guarantee that this
 email or any attachment to it is free of computer viruses or other conditions which may damage or interfere with other computer systems.<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">
<hr size="2" width="100%" align="center">
</span></div>
</div>
</body>
</html>