Re: [mapserver-users] WMS Server Optimization?
Hi, thats an interesting case. Like Jukka said, could you check your Apache log files and identify the request URL send by AutoCad? I would run these request by hand and check the resulting image. For comparison it would be interesting to do this also with a request from GrobalMapper or other clients who run normally. MapServer itself can also write timing information to the log file. Enable debugging by adding DEBUG 3 at map level (see docs for more settings). Than you will see how much time each layer as well as the whole map needed to complete. Maybe these information can help. Best wishes, Lars On 02.04.2014 23:28, gom wrote: Thanks for the tip Andrea. I tried the settings but it makes no difference. I have included my map file to be sure I am am asking the question clearly and to be sure I am implelemnting you suggestion correctly. MAP NAME RasterSample SIZE 300 450 EXTENT 496500.000 6234300.00 597000.000 6401200.000 SHAPEPATH D:/mapserv/shapes CONFIG PROJ_LIB D:/proj/SHARE/ WEB IMAGEPATH D:\tmp METADATA wms_title WMS Demo Server wms_onlineresource http://myserver:8080/cgi-bin/mapserv.exe?map=d:/mapserv/images/images.map; wms_srs EPSG:26910 wms_enable_request GetMap GetCapabilities END END PROJECTION init=epsg:26910 END OUTPUTFORMAT NAME png8 DRIVER AGG/PNG8 MIMETYPE image/png; mode=8bit IMAGEMODE RGB EXTENSION png FORMATOPTION QUANTIZE_FORCE=on FORMATOPTION QUANTIZE_COLORS=256 END LAYER NAME 2013-12-23_5m EXTENT 496500.000 6234300.00 597000.000 6401200.000 METADATA wms_title2013-12-23_5m wms_extent 496500.000 6234300.00 597000.000 6401200.000 END TYPE RASTER STATUS OFF TILEINDEX 2013-12-23_be_5m.shp TILEITEM LOCATION PROJECTION init=epsg:26910 END MINGEOWIDTH 8000.01 MAXGEOWIDTH 25000 END LAYER NAME 2013-12-23 EXTENT 496500.000 6234300.00 597000.000 6401200.000 METADATA wms_title2013-12-23 wms_extent 496500.000 6234300.00 597000.000 6401200.000 END TYPE RASTER STATUS OFF TILEINDEX 2013-12-23_be.shp TILEITEM LOCATION PROJECTION init=epsg:26910 END MAXGEOWIDTH 8000 END END Andrea Peri wrote I set always the EXTEND information at the layer level. This speed really the startup of mapserver. Without the EXTENT al layer level the WMS try to calculate it to respond at a GetCapability request. I guess the wms_extents is not sufficient to speed up mapserver. hope to help. Andrea. 2014-04-02 21:55 GMT+02:00 gom lt; gord.mckenzie@ gt;: I have created a Mapserver site and published a couple of large raster layers through WMS. They work as expected and perform quiite well. When i add the wms layers to Gaia or to Global Mapper they add and display great. I want to display the layers in AutoCAD Map. When I add the WMS layer there it takes 1.5 to 3 minutes to add the layer. After that it works fine. No other WMS layers behave like that in AutoCAD Map and as I mentioned previously, the layers don't work like that in any other program. The layers are made up of about 1600 PNG images that are referenced in the .map file by tileindexes. One layer is at 2 metre pixels and the other at 5 metre pixels. If I remove the layer that references the 2 metre images and only use the 5 metre images, the layer is attached quite quickly. If I switch and use only the 2 metre image layer the speed is slow again. My output format is PNG8. The images are stored in the same projection as they are being queried. I have added the wms_extents metadata to each layer. The MAXGEOWIDTH is such that no data is queried on inital loading of the layer. I have asked the question in the AutoCAD support forums, from the AutoCAD MAp perspective, but was hoping there might be some suggestions as to configuration/map options, in Mapserver, that might help speed up this operation. Thanks -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@.osgeo
[mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries
Hi, I'm looking for a way to have GetFeatureInfo return three dimensions (x,y,z) from an Oracle spatial data source. Right now it is returning 2D as GML. The z value contains a measure that is required to determine direction for distance calculations in the client (OpenLayers). Any suggestions welcome. Regards, Andrew Andrew Parry | Software Engineer II Bentley Systems (UK) Ltd E-mail: andrew.pa...@bentley.commailto:gopi.kumarap...@bentley.com | www.bentley.comhttp://www.bentley.com/ Bentley Systems (UK) Ltd, 9th Floor, 20 Gracechurch Street, London EC3V 0BG Registered in England No. 2957722 inline: Picture (Device Independent Bitmap) 1.jpg___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] Which north polar projection works best with MapServer?
I've been trying to serve a BlueMarble tiff in MapServer that adds a backdrop to a North Polar projection, specifically epsg:3413. I cut the standard BlueMarble tiff to the bounds extent of this projection as defined at: http://spatialreference.org/ref/epsg/3413/ I've tried to both to reproject this tiff to epsg:3413 from epsg:4326 (which produces some odd artefacts) and I've tried to serve the tiff natively as epsg:3413 (which doesn't seem to work at all). I see there is an existing ticket polar reprojection bug revisited on github https://github.com/mapserver/mapserver/issues/2765 and I've added some screen dumps to it that best illustrate my issue. Obviously MapServer seems to have issues with this projection, so my question is which projection(s) could I use to show the north polar region, without any artefacts? Thanks James Passmore GIS and WWW Specialist --- British Geological Survey, Environmental Science Centre, KEYWORTH, United Kingdom, NG12 5GG Linked Data (vCard):http://data.bgs.ac.uk/ref/BritishGeologicalSurvey --- Phone:+44 (0)115 936 3125 Fax:+44 (0)115 936 3200 --- jp...@bgs.ac.uk http://www.bgs.ac.uk/ --- Skype:BGSjames @nmtoken This message (and any attachments) is for the recipient only. NERC is subject to the Freedom of Information Act 2000 and the contents of this email and any reply you make may be disclosed by NERC unless it is exempt from release under the Act. Any material supplied to NERC may be stored in an electronic records management system. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] mapserver.org down
The OSGeo Systems committee is looking at it: http://lists.osgeo.org/pipermail/sac/2014-April/004950.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] tutorial for python mapscript
quote author=Umberto Nicoletti The API reference is documented here: http://www.mapserver.org/mapscript/mapscript.html /quote This page seems to no longer exist. Is there an alternative? Thanks. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [EXTERNAL] WMS GetFeatureInfo and Oracle 3D geometries
Andrew, This is possible. You do need to do several things. 1. Mapserver needs to be compiled with USE_POINT_Z_M 2. You need to use an OGR output format 3. You need to define the output as a 2.5D geometry type, eg, if its a point then define the ows/wfs_geometry type as Point25D. See mapserver.org/output/ogr_output.html for more info Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: andrew.pa...@bentley.commailto:andrew.pa...@bentley.com andrew.pa...@bentley.commailto:andrew.pa...@bentley.com Date: Thursday, April 3, 2014 6:06 AM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries Resent-From: Michael Smith michael.sm...@usace.army.milmailto:michael.sm...@usace.army.mil Hi, I’m looking for a way to have GetFeatureInfo return three dimensions (x,y,z) from an Oracle spatial data source. Right now it is returning 2D as GML. The z value contains a measure that is required to determine direction for distance calculations in the client (OpenLayers). Any suggestions welcome. Regards, Andrew Andrew Parry | Software Engineer II Bentley Systems (UK) Ltd E-mail: andrew.pa...@bentley.commailto:gopi.kumarap...@bentley.com | www.bentley.comhttp://www.bentley.com/ Bentley Systems (UK) Ltd, 9th Floor, 20 Gracechurch Street, London EC3V 0BG Registered in England No. 2957722 [cid:118510028E45B84FAB68232766D92809@bentley.com] attachment: Picture (Device Independent Bitmap) 1.jpg___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] [EXTERNAL] WMS GetFeatureInfo and Oracle 3D geometries
Mike, Thank you very much for your reply. I will try it. Andrew From: Smith, Michael ERDC-RDE-CRREL-NH [mailto:michael.sm...@erdc.dren.mil] Sent: 03 April 2014 13:48 To: Andrew Parry; mapserver-users@lists.osgeo.org Subject: Re: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries Andrew, This is possible. You do need to do several things. 1. Mapserver needs to be compiled with USE_POINT_Z_M 2. You need to use an OGR output format 3. You need to define the output as a 2.5D geometry type, eg, if its a point then define the ows/wfs_geometry type as Point25D. See mapserver.org/output/ogr_output.html for more info Mike -- Michael Smith Remote Sensing/GIS Center US Army Corps of Engineers From: andrew.pa...@bentley.commailto:andrew.pa...@bentley.com andrew.pa...@bentley.commailto:andrew.pa...@bentley.com Date: Thursday, April 3, 2014 6:06 AM To: mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org mapserver-users@lists.osgeo.orgmailto:mapserver-users@lists.osgeo.org Subject: [EXTERNAL] [mapserver-users] WMS GetFeatureInfo and Oracle 3D geometries Resent-From: Michael Smith michael.sm...@usace.army.milmailto:michael.sm...@usace.army.mil Hi, I'm looking for a way to have GetFeatureInfo return three dimensions (x,y,z) from an Oracle spatial data source. Right now it is returning 2D as GML. The z value contains a measure that is required to determine direction for distance calculations in the client (OpenLayers). Any suggestions welcome. Regards, Andrew Andrew Parry | Software Engineer II Bentley Systems (UK) Ltd E-mail: andrew.pa...@bentley.commailto:gopi.kumarap...@bentley.com | www.bentley.comhttp://www.bentley.com/ Bentley Systems (UK) Ltd, 9th Floor, 20 Gracechurch Street, London EC3V 0BG Registered in England No. 2957722 inline: image001.jpg___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] tutorial for python mapscript
I'm afraid the mapserver web site is down atm. The page should still be there when it will come back ;-) Meanwhile, this is a link to the copy in Google's cache: http://webcache.googleusercontent.com/search?q=cache:vStf6-OEN3QJ:mapserver.org/mapscript/mapscript.htmlhl=itstrip=1 BR, Umberto On Thu, Apr 3, 2014 at 2:44 PM, Luís de Sousa luis.a.de.so...@gmail.comwrote: quote author=Umberto Nicoletti The API reference is documented here: http://www.mapserver.org/mapscript/mapscript.html /quote This page seems to no longer exist. Is there an alternative? Thanks. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] JSON template dependencies
I have two very similar computers. On one JSON templates work, the other not. The not-working one displays Malformed template name (dummy) where dummy is a non-existent file and the non-working version seems to ignore the OUTPUTFORMAT block. For example I can put invalid parameters in the block and they don't throw errors whereas on my working computer they do. So I'm wondering if there are any dependencies at either compile or run time that I'm missing. My working computer is Fedora with MapServer installed from a repo, my non-working computer is Amazon Linux (at Redhat derivative) with MapServer 6.0 and 6.2 built from source. Thanks, Rich -- Richard Greenwood richard.greenw...@gmail.com www.greenwoodmap.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Server Optimization?
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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=256WIDTH=154TRANSPARENT=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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=1024WIDTH=616TRANSPARENT=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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=921WIDTH=554TRANSPARENT=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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=761WIDTH=458TRANSPARENT=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Server Optimization?
Hi, AutoCAD is making funny requests: same BBOX but four different image size. Probably it is building a local cache from the maps for making zooming and panning fluent later, and perhaps it wants to fetch a high resolution image so that it can create better quality printouts. Anyway, the second and biggest request seems to timeout. You can of course increase the timeout of Apache server, but much better option is to make your service faster. Convert your images into tiled geotiffs with overviews and you will make both AutoCAD and users happy. Well, at least I guess so. -Jukka Rahkonen- gom wrote: 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.mapversion=1.3.0service= WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES= CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.0 0HEIGHT=256WIDTH=154TRANSPARENT=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.mapversion=1.3.0service= WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES= CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.0 0HEIGHT=1024WIDTH=616TRANSPARENT=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.mapversion=1.3.0service= WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES= CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.0 0HEIGHT=921WIDTH=554TRANSPARENT=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.mapversion=1.3.0service= WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES= CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.0 0HEIGHT=761WIDTH=458TRANSPARENT=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Server Optimization?
Here is what I have done. I tweaked the extents of my Mapfile and now the data is added to AutoCAD Map instantly. The changes are fairly small so it doesn't seem logical that the change in total area is the culprit. Does this suggest anything? New Extents 496500.000 6237500.00 595000.000 6395500.000 Old Extents 496500.000 6234300.00 597000.000 6401200.000 Jukka, I understand the point about better formats but the images are what they are. I have 2+ 8 bit PNG images on the network and the format works very well for other applications. The datasets expand all the time and reprocessing everything is not a viable option right now. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132949.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Server Optimization?
Here is what I have done. I tweaked the extents of my Mapfile and now the data is added to AutoCAD Map instantly. The changes are fairly small so it doesn't seem logical that the change in total area is the culprit. Does this suggest anything? New Extents 496500.000 6237500.00 595000.000 6395500.000 Old Extents 496500.000 6234300.00 597000.000 6401200.000 Jukka, I understand the point about better formats but the images are what they are. I have 2+ 8 bit PNG images on the network and the format works very well for other applications. The datasets expand all the time and reprocessing everything is not a viable option right now. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/WMS-Server-Optimization-tp5132723p5132950.html Sent from the Mapserver - User mailing list archive at Nabble.com. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Server Optimization?
Thi go in timeout: 192.168.0.21 - - [03/Apr/2014:09:53:54 -0600] GET /cgi-bin/mapserv.exe?map=/ mapserv/images/images.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=1024WIDTH=616TRANSPARENT=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.mcken...@canam.com: 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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=256WIDTH=154TRANSPARENT=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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=1024WIDTH=616TRANSPARENT=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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=921WIDTH=554TRANSPARENT=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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=761WIDTH=458TRANSPARENT=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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] WMS Server Optimization?
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 004BD1C0. 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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=1024WIDTH=616TRANSPARENT=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 lt; gord.mckenzie@ gt;: 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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=256WIDTH=154TRANSPARENT=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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=1024WIDTH=616TRANSPARENT=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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=921WIDTH=554TRANSPARENT=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.mapversion=1.3.0service=WMSREQUEST=GetMapEXCEPTIONS=XMLLAYERS=RasterSampleSTYLES=CRS=EPSG:26910SRS=EPSG:26910FORMAT=image/png; mode=8bitBBOX=496500.00,6234300.00,597000.00,6401200.00HEIGHT=761WIDTH=458TRANSPARENT=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@.osgeo http://lists.osgeo.org/mailman/listinfo/mapserver-users -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@.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. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users