ArcSDE, FastCGI+IIS
Mike Saunt
mikesaunt at GMAIL.COM
Thu Dec 21 02:20:11 PST 2006
Thanks Howard and Paul
I think incorporating ArcSDE / FastCGI in the Buildkit for MS4W would be
great as this is the only real method of getting it working in a
satisfactory manner - speed wise.
We seem to be bombing out around every 6th or 7th request so within our
wrappers we've allowed it to re run MapServer up to 5 times - not the best
method but should suffice. I guess the fun part now is to see how we can
DEBUG this to find out where the memory issues may lie. Saying that it may
be our configuration of FastCGI / ArcSDE and not MapServer - I'll have to
look into this further.
We'll definitely pass back our findings regarding the IIS / FastCGI / ArcSDE
/ MapServerCGI but will also try everything running on Apache / Windows to
see if that is better.
Does anyone know of any good process / memory monitoring software to try and
understand where these leaks could be (if they exist)???
For some background we use the MapServer CGI which is all wrapped up in some
C# wrappers that has an XML template (as opposed to an HTML Template) of all
the parameters returned by MapServer. We did this for two reasons -
simplicity / stability due to the pure speed of the CGI (great being able to
test why something hasn't worked if you have the whole query / url string)
but also that the CGI is so flexible. We have recently realised that using
nquery you can specify lots of layers with their own template and their own
query types / to9lerances - we used to query every layer one by one by re
running the CGI but when we hit ArcSDE the speed dropped from about 6
seconds (we hit about 30 layers for information) to over 30 hence why we
really needed FastCGI. We now hit MapServer with all thirty layers in one
go and testing against shape files the results are returned in around a
second (from the 6) - we're hoping that ArcSDE should be about 3 seconds.
As always - much appreciated
Regards
Mike
What we have now done is that is we get an error back when
On 21/12/06, Howard Butler <hobu at iastate.edu> wrote:
>
> On Dec 20, 2006, at 5:29 PM, Mike Saunt wrote
> >
> > Hi All
> >
> > Wondering about the users out there who have had experience with
> > ArcSDE +
> > FastCGI with IIS or with Apache
> >
> > We got it all going today which we were very happy about!
> >
> > I'm wondering if anyone has experience with the setting up of the
> > FASTCGI /
> > IIS - we got there eventually (and we'll document and post our
> > experiences)
> > but we're now wondering whether the combination of the three will
> > be the
> > best or whether we should move ArcSDE / FastCGI / MapServer CGI
> > across onto
> > Apache - still running on Windows. Bascially FastCGI processes
> > seem to bomb
> > out every now and then (says SDE client memory errors, network
> > errors) and
> > I'm wondering whether the FastCGI on IIS is the most stable. When
> > looking
> > at the mapserv.exe processes in the Task Manager they increase in
> > memory
> > until they drop out.
> >
> > There seems to have been alot more experiences of FastCGI on Apache...
> >
> > Any thoughts / insights appreciated.
> >
>
> On Dec 20, 2006, at 6:17 PM, Paul Ramsey wrote:
> > I am pretty sure FastCGI + Apache is the more-tested combination, so
> > probably more stable.
> > Growing processes is Bad News (tm). Mapserv.exe shouldn't be leaking
> > but perhaps it is. As a stopgap, set your fcgi workers to shut down
> > after 50 or 100 accesses. That way they shut down cleanly sooner
> > rather than nastily later. You'll spawn workers slightly more often,
> > but the penalty isn't too bad amortized over a few hundred requests.
>
> Mike,
>
> I have also had the experience of FastCGI+Apache+SDE hangup and
> crash. My experience was on Linux, and
> while it wasn't always pleasant, the speed improvements were well
> worth it. I also used Paul's strategy of having
> FastCGI shutdown the mapserv processes after about 200 requests. Use
> a reasonable combination of the
> number of requests x the number of clients you expect to service to
> come up with a good number.
>
> There are many places MapServer could be leaking memory, including in
> the SDE code. MapServer's natural
> environment is not in long-running processes. Another thing to
> consider is each mapserv.exe will eat a license
> seat and connection to your SDE server. This may cause problems for
> other clients you may have connecting
> to the server.
>
> It would be greatly appreciated if you could document your
> experiences as far as what you had to do to get
> MapServer + FastCGI running on IIS in a comment on <http://
> mapserver.gis.umn.edu/docs/howto/fastcgi>. I will
> make sure to incorporate them into the document. If it is
> straightforward enough, Jeff and I might copy what you
> did into the Buildkit, so that support for this makes it into MS4W in
> a future release.
>
> Howard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061221/5e632e8e/attachment.htm>
More information about the MapServer-users
mailing list