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.

Steve

From: [email protected] 
[mailto:[email protected]] On Behalf Of Thomas Joseph
Sent: Thursday, July 05, 2012 5:13 AM
To: [email protected]
Subject: [mapserver-users] mapserver fastcgi warnings when msQueryByPoint() 
Search returns no results

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.

We are using the following setup:
Ubuntu 64bit Server - 10.10
Mapserver 6.0.1
Apache/2.2.16
mod-fastcgi 2.4.6-1

Below I have included a except of the mapserver MS_ERRORFILE and the apache2 
error log:

MS_ERRORFILE
[Thu Jul  5 21:42:22 2012].92065 CGI Request 2 on process 27946

[Thu Jul  5 21:42:22 2012].231782 msQueryByPoint(): Search returned no results. 
No matching record(s) found.

[Thu Jul  5 21:42:22 2012].231829 msFreeMap(): freeing map at 0x8f983d0.


/var/log/apache2/error.log
[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'

[Thu Jul 05 21:42:22 2012] [warn] FastCGI: server 
"/usr/lib/cgi-bin/mapserv.fcgi" restarted (pid 27948)




________________________________

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.

________________________________
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to