Problems with FastCGI in 4.4-beta1
Frank Warmerdam
warmerdam at POBOX.COM
Thu Oct 28 12:34:01 PDT 2004
Jean-Francois Doyon wrote:
> Hello,
>
> I'm trying to get the FactCGI version working, but am not having any luck:
>
> [Thu Oct 28 14:45:40 2004] [notice] Apache/1.3.31 (Unix) mod_fastcgi/2.4.2
> configured -- resuming normal operations
> [Thu Oct 28 14:45:40 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
> [Thu Oct 28 14:45:44 2004] [warn] FastCGI: server
> "/usr/local/apache/cgi-bin/mapserv" (pid 9471) terminated by calling exit
> with status '1'
...
> Where the mapserv executable was in apache's default cgi-bin directory.
>
> I'm on CentOS (RHEL 3), with apache 1.3.31 and FastCGI 2.4.2 ...
>
> Anybody else tried this yet? Any success?
JF,
I am locally working with it on FC2 with Apache2. It looks like mapserv is
terminating with an exit(1) somewhere somewhat early. Does the mapserv
work properly in plain cgi-mode? The same executable build should operate in
either mode. I usually like to start by debugging in plain cgi mode to verify
that works, and then invoke it in fastcgi mode.
Also, are you using it in WMS or "traditional mapserver" mode? Currently only
WMS is formally supported. I do hope to fix up traditional mode though.
> I'm starting to look at and evaluate 4.4 as an upgrade from 3.6.6 (Yup, I'm
> still using it, works so well!), and I just have a couple of questions ...
>
> 1) Is FastCGI deemed stable and reliable in 4.4 ? I'd LOVE to use it.
I think we would have to consider it an experimental feature in 4.4 since it
is so new. But I am keen to fix any problems. I'd love you to use it, and
point out problems!
BTW, are you interested in FastCGI primarily for database connection
preservation or what? I think that is the main case where it offers a
substantial performance boost.
> 2) If I use FastCGI, I need it thread safe enough?
FastCGI with the main mapserver executable is effectively single threaded.
Each fastcgi process accepts one request at a time, and finishes it before
accepting another. Several fastcgi processes can run at the same time of
course.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list