[mapserver-users] WMS Server Optimization?

gom gord.mckenzie at canam.com
Thu Apr 3 13:50:17 PDT 2014


This is what is in the ms_error.txt file when debug is turned on.

[Thu Apr 03 14:34:17 2014].276000 CGI Request 1 on process 8516
[Thu Apr 03 14:34:17 2014].276000 msWMSLoadGetMapParams(): enabling
non-square pixels.
[Thu Apr 03 14:34:17 2014].276000 msDrawMap(): kicking into non-square pixel
preserving mode.
[Thu Apr 03 14:34:17 2014].276000 msDrawMap(): rendering using outputformat
named png8 (AGG/PNG8).
[Thu Apr 03 14:34:17 2014].276000 msDrawMap(): WMS/WFS set-up and query,
0.000s
[Thu Apr 03 14:34:17 2014].292000 msDrawRasterLayerLow(proene01_2013-12-23):
entering.
[Thu Apr 03 14:37:12 2014].838000 msDrawMap(): Layer 0
(proene01_2013-12-23), 175.562s
[Thu Apr 03 14:37:12 2014].838000 msDrawMap(): Drawing Label Cache, 0.000s
[Thu Apr 03 14:37:12 2014].838000 msDrawMap() total time: 175.562s
[Thu Apr 03 14:38:12 2014].866000 msSaveImage(stdout) total time: 60.028s
[Thu Apr 03 14:38:12 2014].866000 mapserv request processing time (msLoadMap
not incl.): 235.590s
[Thu Apr 03 14:38:12 2014].866000 msFreeMap(): freeing map at
00000000004BD1C0.


Andrea Peri wrote
> Thi go in timeout:
> 
> 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
> /cgi-bin/mapserv.exe?map=/
> mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=1024&WIDTH=616&TRANSPARENT=TRUE
> HTTP/1.1" 504 247
> 
> set the mapfile to DEBUG 5
> and set mapfile to write on a error_log file
> after try to call it from a browser web.
> And wait for response.
> An option is that the mapserver is crashing or go in a loop.
> 
> After this you can try to read in the debug file if there is some
> interesting information.
> 
> A.
> 
> 
> 
> 2014-04-03 18:22 GMT+02:00 gom <

> gord.mckenzie@

> >:
> 
>> Thanks for all the tips.  I checked the logs and this is what I found.
>>
>> The following 4 requests are sent to the server when AutoCAD connects to
>> the
>> server.  The 1st, 3rd and 4th requests all execute almost instantly when
>> pasted into the browser command line.  The second statement runs for
>> about
>> 70 seconds and returns a
>>
>> *Gateway Timeout*.
>> "The gateway did not receive a timely response from the upstream server
>> or
>> application."
>>
>> 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
>>
>> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>>
>> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=256&WIDTH=154&TRANSPARENT=TRUE
>> HTTP/1.1" 200 113
>>
>> 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] "GET
>>
>> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>>
>> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=1024&WIDTH=616&TRANSPARENT=TRUE
>> HTTP/1.1" 504 247
>>
>> 192.168.0.21 - - [03/Apr/2014:09:54:59 -0600] "GET
>>
>> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>>
>> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=921&WIDTH=554&TRANSPARENT=TRUE
>> HTTP/1.1" 200 171
>>
>> 192.168.0.21 - - [03/Apr/2014:09:55:01 -0600] "GET
>>
>> /cgi-bin/mapserv.exe?map=/mapserv/images/images.map&version=1.3.0&service=WMS&REQUEST=GetMap&EXCEPTIONS=XML&LAYERS=RasterSample&STYLES=&CRS=EPSG:26910&SRS=EPSG:26910&FORMAT=image/png;
>>
>> mode=8bit&BBOX=496500.000000,6234300.000000,597000.000000,6401200.000000&HEIGHT=761&WIDTH=458&TRANSPARENT=TRUE
>> HTTP/1.1" 200 151
>>
>> To fill out details asked by others.
>>
>> I have tried AutoCAD Map on two different machines. Windows 7, 64 bit Map
>> 2012 and 2014. Same results.
>>
>> The server is Windows 2008 R2, 64 bit running latest Mapserver from
>> GISInternals on apache 2.4.7
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132918.html
>> Sent from the Mapserver - User mailing list archive at Nabble.com.
>> _______________________________________________
>> mapserver-users mailing list
>> 

> mapserver-users at .osgeo

>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>
> 
> 
> 
> -- 
> -----------------
> Andrea Peri
> . . . . . . . . .
> qwerty àèìòù
> -----------------
> 
> _______________________________________________
> mapserver-users mailing list

> mapserver-users at .osgeo

> http://lists.osgeo.org/mailman/listinfo/mapserver-users





--
View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132975.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list