[mapserver-users] MapServer as fast-cgi

Lars Lingner ml at lingner.eu
Sun May 30 12:34:39 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 30.05.2010 17:44, Kai-Behncke at gmx.de wrote:
> Hi Lars, also working on a sunday :-)

Oh, its sunday already? :)

>
> Thank you very much for your reply.
>
> The fcgid-module is enabled/installed.
>
>
> I changed the pathes in the pathes you use,
> in the access.log of apache is written:
>
>
>
> 131.173.59.53 - - [30/May/2010:17:31:55 +0200] "GET
> /blabla/blabla/Testkarte12752335142537.jpg HTTP/1.1" 200 26397
> "http://www.mydomain.de/fcgi-bin/mapserv?map=/my_path/mapdatei.map" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3)
> Gecko/20100401 Firefox/3.6.3 GTB7.0 ( .NET CLR 3.5.30729)"
>
> ...what looks quite good I think.

Yes. And you get an image back which looks fine, right?

>
> If I restart apache I get:
>
>
> [Sun May 30 17:35:25 2010] [notice] mod_fcgid: process /blabla/cgi-bin/mapserv(2537) exit(shutting down), terminated by calling exit(), return code: 0
> [Sun May 30 17:35:26 2010] [notice] Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny8 with Suhosin-Patch configured -- resuming normal operations
>
> ....but I don`t get something like:
>
> [Sun May 30 16:38:27 2010] [info] mod_fcgid: server
> /var/www/clients/client1/web1/fcgi-bin/mapserv(21099) started


Probably you have set your log level to notice and not to info. But as
the mod_fcgid process get shutted down, it definitely was started up
before :)

So in the end I think fast cgi is already working.

>
>
> ----
>> With fcgi your MapServer processes will stay in memory. You should see
>> them within "top" even when the map is already delivered. And with
>> CLOSE_CONNECTION=DEFER you can then reuse database connections which in
>> turn will make your application faster.
>
> I`m not sure if I understand. What do you mean with:
> "You should see them within "top" even when the map is already delivered."
>

I meant you can monitor with the command "top" (or "htop") your
processes. You would see one or more mapserv processes staying there.
Would it be an cgi process it would only be live until the request is
completed.


> And  can`t I check it with the "Debug 5" in the log-file?

You don't see any information about fcgi/cgi in the MapServer logile, as
far as I know.

Lars
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwCk58ACgkQ0GRF77ebR/kR6ACfQnv4JDFmbbthTSyrC/OFi5Cn
sx8AoJPZ9L38sKx78PGh5WB4lPyyhTN5
=z8PH
-----END PGP SIGNATURE-----


More information about the mapserver-users mailing list