Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-20 Thread James Perrins
A couple of issues / tips we have found in this sort of scenario. 1) Edit your epsg file to contain only the projections you want - this can make a big difference - presumably because its doind a slow string search each time 2) If using OpenLayers (or google maps etc) - the tiling sends multiple

Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-19 Thread Christopher Schmidt
On Fri, Sep 19, 2008 at 03:34:42PM +0100, John Westwood wrote: Hi Everybody, I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives in the OpenLayers directory and is used by gbhgis_openlayers.html. The test address

Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-19 Thread Guillaume Sueur
I guess that wms makes a reprojection job as the request comes with an EPSG code and the map projection is set by a proj string. Even if they are equivalent, can MapServer know that and forget about reprojection ? The cgi is rather straight forward as no EPSG is required. As the layers don't have

Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-19 Thread Guillaume Sueur
Hi John, Could you try to set your map projection with its EPSG code instead of the proj string, and see what happens ? Regards, Guillaume John Westwood a écrit : Hi Everybody, I am attaching a cut down version of my html, javascript and map files. On our server the EmbeddedMap.js lives

Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-18 Thread John Westwood
Hi Paul and other MapServer Gurus, I have discovered a huge speed increase by using OpenLayers.MapServer (native) layers instead of OpenLayers.WMS layers. It is about ten times faster, I do not exaggerate. Why is WMS so slow? I have read that MapServer is a fast WMS server, have I done

Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-18 Thread John Westwood
Okay, maybe not ten times faster - but at least five times as fast - if not more. Anyway, ALOT faster than WMS :) Paul Ramsey [EMAIL PROTECTED] 17/09/08 5:15 PM John, The idea that CGI is naturally a much slower situation than a long-running process is a bit of a red herring in the case of

Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-18 Thread Stephen Woodbridge
John Westwood wrote: Hi Paul and other MapServer Gurus, I have discovered a huge speed increase by using OpenLayers.MapServer (native) layers instead of OpenLayers.WMS layers. It is about ten times faster, I do not exaggerate. Why is WMS so slow? I have read that MapServer is a fast WMS server,

Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-18 Thread Christopher Schmidt
On Thu, Sep 18, 2008 at 08:59:51PM +0100, John Westwood wrote: Hi Paul and other MapServer Gurus, I have discovered a huge speed increase by using OpenLayers.MapServer (native) layers instead of OpenLayers.WMS layers. It is about ten times faster, I do not exaggerate. Why is WMS so slow? I

[mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-17 Thread John Westwood
Hi, I am trying to use fast_cgi with MapServer, specifically mod_fcgid on SLES 10.2. I have mod_fcgid correctly set up within Apache because it works with another FCGI application (IIPImage). I have successfully compiled MapServer 5.2 with fast_cgi support. I used this page to help me:

Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-17 Thread Paul Ramsey
John, The idea that CGI is naturally a much slower situation than a long-running process is a bit of a red herring in the case of Mapserver, and I say that as someone who is anal retentive about these things. Unless your Mapserver installation has some naturally latent components (database

Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-17 Thread John Westwood
Hi Paul, Thanks for the useful information. The performance is pretty terrible, so I will have to do some more investigating. The MapServer executable almost completely maxes out two cores and it can take 30 seconds or more to fetch all the tiles for a particular view. I do connect to Postgres

Re: [mapserver-users] Using Fast CGI with MapServer to alleviate poor performance

2008-09-17 Thread Paul Ramsey
Pull out your command-line, you probably have a linking library problem, and mapserv is just dying unceremoniously. So first: can you just run mapserv on the command line. If not, what's the error? is it instructive? Second, if just a plain mapserv runs, what happens when you feed it your