Re: [mapserver-users] mapserver defunct

2011-01-11 Thread Stephen Woodbridge

Wim,

I'm not sure I have any magic bullet for this problem, because I'm not 
sure what is causing it. If this was my project, I would tackle it like 
this:


1. alert people we have a problem that might impact the release date if 
you have not already done that

2. divide the problem to try and localize what is causing it

a. do the tiles that fail, always fail? this points at a potential 
mapserver related issue as opposed to a load issue

a.1 have you turned on mapfile DEBUG output? can you identify the layer
a.2 you can get some maybe useful output from:

strace /path/to/mapserv QUERY_STRING=''

gdb /path/to/mapserv
run QUERY_STRING=''
where
quit

valgrind /path/to/mapserv QUERY_STRING=''

a.3 you can run it with shp2img ...

b. is it fastcgi, do you see the same problem if you build it as cgi
c. is it lighttpd, do you see the same problem if you run it with apache 
fastcgi? what about apache cgi?


Intermittent problems are the hardest to diagnose because they often are 
not reproducable in a debuging environment. We might be able to help you 
with more information.


I have done a lot of load testing on various versions of mapserver and 
tiled all of US and Canada about 4-5 different times using mapserver. I 
have not used FastCGI/Lighty and lighttpd, so I'm not sure about what 
influence that might have on the problem.


Hope this gives you some ideas.

Best regards,
  -Steve W
   http://imaptools.com/

On 1/11/2011 3:15 PM, Wim Vanbelle wrote:

Well, the problem is that the requests are not always served.

During load testing, say about 10 concurrent requests I also load the
map. But there are randomly tiles that are never loaded. I thought this
would be related to the defunct processes, but that is not a certainty.

My setup is lighttpd + fastcgi.
To be honest I'm in a pretty bad situation now, considering we go live
with this in 9 days.

Not sure what else I can do honestly.


On 11 January 2011 19:05, Stephen Woodbridge mailto:wood...@swoodbridge.com>> wrote:

Here is an explanation of defunct processes:

http://www.webmasterworld.com/forum40/1032.htm

I'm sure there are others. So since you are running fastcgi, it is
the responsibility of the fastcgi parent process to clean up dead
child processes. It is likely that it is busy because you are doing
load testing or there is some subtle issue that is occurring. If you
are getting good responses from mapserver, you probably do not need
to worry about it unless you are getting tons of them.

If you are using apache, I believe there is a parameter that you can
set for fastcgi processes which will let them die after N requests.
This should clean those up and apache will spawn a new process if
needed to replace the that died.

-Steve W


On 1/11/2011 10:04 AM, Wim Vanbelle wrote:

Hi all,

I'm getting a lot of

27098 x  20   0 000 Z1  0.0   0:00.03 mapserv

27104 x  20   0 000 Z1  0.0   0:00.03 mapserv


while load testing mapserver. Is there any way I can go about
checking
out why this is happening? Especially when doing concurrency
tests it
seems to go sideways.

Currently i'm using :

MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP
OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE

using FastCGI/Lighty.

Do note that the mapfile itself seems to be fine, since it does
render
content when i'm the single user using it.

Thanks for your expert insight :D.



___
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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] ArcGIS Server layer

2011-01-11 Thread Robert Sanson
Yes - two ways:
 
1. Connect to a WMS service on ArcGIS Server:
 
LAYER
  NAME nz50ktm
  GROUP "Toposcans"
  TYPE RASTER
  STATUS ON
  CONNECTION 
"http://myserver/arcgis/services/mapservice_topography_raster/MapServer/WMSServer?";
  CONNECTIONTYPE WMS
  MAXSCALE 6
  MINSCALE 1
  
  METADATA
   # OGC:WMS specific tags
   "ows_title""NZ 1:50k scale NZTM"
   "ows_abstract""This layer came from the LINZ Topo50 series maps in NZTM"
   "WMS_FORMAT" "image/png"
   "wms_server_version" "1.1.1"
   "wms_opaque""1"
   "wms_group_title" "Toposcans"
   "wms_resx" "4.233"
   "wms_resy" "4.233"
   "ows_extent" "1083997.88 4722000.45 2092003.23 6234002.12"
   "wms_srs"   "EPSG:2193"
   "WMS_NAME" "3"
   "wms_exceptions_format" "application/vnd.ogc.se_xml"
  END
 END
2. Direct connection to the underlying ArcSDE database:
 
LAYER
  NAME farm
  GROUP "CRS"
  TYPE POLYGON
  STATUS ON
  # actual data pointer
  CONNECTIONTYPE SDE
  CONNECTIONTYPE PLUGIN
  CONNECTION "server,port:,cadastre,user,passwd"
  DATA "CADASTRE.SDEADMIN.VW_FARM_PARCEL_SP,SHAPE"
  PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll"
  CLASS
NAME "Farm"
STYLE
  WIDTH 3
  OUTLINECOLOR 255 0 0
  COLOR 255 140 0
END
  END #CLASS
  
  METADATA
   "ows_title""Farm"
   "ows_abstract""This shows land parcels linked to a given farm_id in NZTM"
   "ows_keywordlist""AgriBase,LINZ,farm_id,PARCELS"
   "wms_opaque""1"
   "wms_group_title" "CRS"
   "ows_extent" "773500 4615000 2602100 6324500"
   "wms_srs"   "EPSG:2193"
   "wms_exceptions_format" "application/vnd.ogc.se_xml"
  END
 END
 
Regards,
 
Robert S

>>> qazi iqbal  12/01/2011 2:13 p.m. >>>
I want to know if there is any way to add ArcGIS server layer to mapserver 
mapfile?



Click here ( https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== ) to 
report this email as spam.


This email and any attachments are confidential and intended solely for the 
addressee(s). If you are not the intended recipient, please notify us 
immediately and then delete this email from your system.

This message has been scanned for Malware and Viruses by Websense Hosted 
Security.
www.websense.com
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] ArcGIS Server layer

2011-01-11 Thread qazi iqbal
I want to know if there is any way to add ArcGIS server layer to mapserver
mapfile?
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver defunct

2011-01-11 Thread Wim Vanbelle
Well, the problem is that the requests are not always served.

During load testing, say about 10 concurrent requests I also load the map.
But there are randomly tiles that are never loaded. I thought this would be
related to the defunct processes, but that is not a certainty.

My setup is lighttpd + fastcgi.
To be honest I'm in a pretty bad situation now, considering we go live with
this in 9 days.

Not sure what else I can do honestly.


On 11 January 2011 19:05, Stephen Woodbridge wrote:

> Here is an explanation of defunct processes:
>
> http://www.webmasterworld.com/forum40/1032.htm
>
> I'm sure there are others. So since you are running fastcgi, it is the
> responsibility of the fastcgi parent process to clean up dead child
> processes. It is likely that it is busy because you are doing load testing
> or there is some subtle issue that is occurring. If you are getting good
> responses from mapserver, you probably do not need to worry about it unless
> you are getting tons of them.
>
> If you are using apache, I believe there is a parameter that you can set
> for fastcgi processes which will let them die after N requests. This should
> clean those up and apache will spawn a new process if needed to replace the
> that died.
>
> -Steve W
>
>
> On 1/11/2011 10:04 AM, Wim Vanbelle wrote:
>
>> Hi all,
>>
>> I'm getting a lot of
>>
>> 27098 x  20   0 000 Z1  0.0   0:00.03 mapserv 
>> 27104 x  20   0 000 Z1  0.0   0:00.03 mapserv 
>>
>> while load testing mapserver. Is there any way I can go about checking
>> out why this is happening? Especially when doing concurrency tests it
>> seems to go sideways.
>>
>> Currently i'm using :
>>
>> MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>> OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
>> SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
>> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
>> SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
>> SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
>> INPUT=SHAPEFILE
>>
>> using FastCGI/Lighty.
>>
>> Do note that the mapfile itself seems to be fine, since it does render
>> content when i'm the single user using it.
>>
>> Thanks for your expert insight :D.
>>
>>
>>
>> ___
>> 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] opacity and mode=legend

2011-01-11 Thread Steve . Toutant
Hi,
I'm using mode=legend and in my template I'm trying to get the OPACITY 
value in the layer definition.
I tried this [if name=layer_opacity oper=isset]75[/if];
that returns nothing. 

is it possible to verify if the OPACITY is set for a layer? If yes, how to 
get the value?
thanks
Steve___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] mapserver defunct

2011-01-11 Thread Stephen Woodbridge

Here is an explanation of defunct processes:

http://www.webmasterworld.com/forum40/1032.htm

I'm sure there are others. So since you are running fastcgi, it is the 
responsibility of the fastcgi parent process to clean up dead child 
processes. It is likely that it is busy because you are doing load 
testing or there is some subtle issue that is occurring. If you are 
getting good responses from mapserver, you probably do not need to worry 
about it unless you are getting tons of them.


If you are using apache, I believe there is a parameter that you can set 
for fastcgi processes which will let them die after N requests. This 
should clean those up and apache will spawn a new process if needed to 
replace the that died.


-Steve W

On 1/11/2011 10:04 AM, Wim Vanbelle wrote:

Hi all,

I'm getting a lot of

27098 x  20   0 000 Z1  0.0   0:00.03 mapserv 
27104 x  20   0 000 Z1  0.0   0:00.03 mapserv 

while load testing mapserver. Is there any way I can go about checking
out why this is happening? Especially when doing concurrency tests it
seems to go sideways.

Currently i'm using :

MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE

using FastCGI/Lighty.

Do note that the mapfile itself seems to be fine, since it does render
content when i'm the single user using it.

Thanks for your expert insight :D.



___
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] keyimage size and url

2011-01-11 Thread Steve . Toutant
Hi,
In my mapfile I have a layer defined as a external WMS layer 
(CONNECTIONTYPE WMS, .)

I use KEYIMAGE to set the icon in my geoext legend.
For a layer the legend is complex and the icon is very small. is it 
possible to change the size of a KEYIMAGE?

Also, is it possible to use a getLegendGraphic request to get the legend 
icon instead of using KEYIMAGE (it seems that we cannot provide a url with 
KEYIMAGE)?

Does KEYIMAGE is the appropriate solution?
thanks for your help,
Steve___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How would I modify a map file so that whena getcapabilities is run it outputs as tiled layers (wms-t) includinglisting resolutions listed below:

2011-01-11 Thread Rahkonen Jukka
Hi,

Just guessing, but sending resolutions with GetCapabilities could make sense 
for example with a client like uDig which can cache WMS-C tiles locally.  The 
WMS calls uDig sends in this case are just plain WMS requests and Mapserver 
would handle them nicely. Perhaps John would like to do something similar.

One alternatively might be to use a local, edited GetCapabilities document 
instead of letting Mapserver to create it on-the-fly. 

-Jukka Rahkonen-


-Alkuperäinen viesti-
Lähettäjä: mapserver-users-boun...@lists.osgeo.org puolesta: Yewondwossen Assefa
Lähetetty: ti 11.1.2011 18:05
Vastaanottaja: John Mitchell
Kopio: mapserver-users@lists.osgeo.org
Aihe: Re: [mapserver-users] How would I modify a map file so that whena 
getcapabilities is run it outputs as tiled layers (wms-t) includinglisting 
resolutions listed below:
 
Hi,

  Not sure I understand well the question: Mapserver does not support 
tiled layers by itself. Usually when doing tiles, you will use tilecache 
servers (tilecache.org, or mode-geocache 
http://code.google.com/p/mod-geocache/  ) that can be set up to   
possibly use MapServer as rendering engine .

  Wehn you mention getcapabilities, are referring to the getcapabilities 
support in the WMTS (web map tiling service from OGC)? If that is the 
case, I would recommend again to  check the tilecache libraries 
mentioned above.
If this does not reflect what you intend to accomplish, please give more 
details on what you expect from MapServer.

best regards,



On 11/01/2011 10:15 AM, John Mitchell wrote:
> How would I modify a map file so that when a getcapabilities is run it 
> outputs as tiled layers (wms-t) including listing resolutions listed 
> below:
>
> 
>
> 0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.1457672119140625E-5,1.0728836059570312E-5,5.364418029785156E-6,2.682209014892578E-6,1.341104507446289E-6,6.705522537231445E-7,3.3527612686157227E-7
>
> 
>
> Thanks,
>
> John
>
> -- 
> John J. Mitchell
>
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


-- 

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] How would I modify a map file so that when a getcapabilities is run it outputs as tiled layers (wms-t) including listing resolutions listed below:

2011-01-11 Thread Yewondwossen Assefa

Hi,

 Not sure I understand well the question: Mapserver does not support 
tiled layers by itself. Usually when doing tiles, you will use tilecache 
servers (tilecache.org, or mode-geocache 
http://code.google.com/p/mod-geocache/  ) that can be set up to   
possibly use MapServer as rendering engine .


 Wehn you mention getcapabilities, are referring to the getcapabilities 
support in the WMTS (web map tiling service from OGC)? If that is the 
case, I would recommend again to  check the tilecache libraries 
mentioned above.
If this does not reflect what you intend to accomplish, please give more 
details on what you expect from MapServer.


best regards,



On 11/01/2011 10:15 AM, John Mitchell wrote:
How would I modify a map file so that when a getcapabilities is run it 
outputs as tiled layers (wms-t) including listing resolutions listed 
below:




0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.1457672119140625E-5,1.0728836059570312E-5,5.364418029785156E-6,2.682209014892578E-6,1.341104507446289E-6,6.705522537231445E-7,3.3527612686157227E-7



Thanks,

John

--
John J. Mitchell


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



--

Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] How would I modify a map file so that when a getcapabilities is run it outputs as tiled layers (wms-t) including listing resolutions listed below:

2011-01-11 Thread John Mitchell
How would I modify a map file so that when a getcapabilities is run it
outputs as tiled layers (wms-t) including listing resolutions listed below:



0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,6.866455078125E-4,3.4332275390625E-4,1.71661376953125E-4,8.58306884765625E-5,4.291534423828125E-5,2.1457672119140625E-5,1.0728836059570312E-5,5.364418029785156E-6,2.682209014892578E-6,1.341104507446289E-6,6.705522537231445E-7,3.3527612686157227E-7



Thanks,

John

-- 
John J. Mitchell
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] mapserver defunct

2011-01-11 Thread Wim Vanbelle
Hi all,

I'm getting a lot of

27098 x  20   0 000 Z1  0.0   0:00.03 mapserv 
27104 x  20   0 000 Z1  0.0   0:00.03 mapserv 

while load testing mapserver. Is there any way I can go about checking out
why this is happening? Especially when doing concurrency tests it seems to
go sideways.

Currently i'm using :

MapServer version 5.6.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE
SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER
SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS
SUPPORTS=RGBA_PNG INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE

using FastCGI/Lighty.

Do note that the mapfile itself seems to be fine, since it does render
content when i'm the single user using it.

Thanks for your expert insight :D.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Labels are cut at the borders of the tiles

2011-01-11 Thread Wim Vanbelle
Thanks for clearing that out Thomas. We were having similar issues here.

Is there a similar setting for linestring drawing? Eg when using pixel
offset the lines get cut off at the end of the tiles.

This is resolved using the gutter parameter in openlayers as  you have
mentioned, but is still a problem for google and bing maps.

thanks.

On 10 January 2011 16:46, thomas bonfort  wrote:

> it does not seem to be documented.
>
> when set to "ON", what happens is that labels are fixed to a
> geographical location on the feature, instead of being adjusted to fit
> in the pixel range of the created map. this is essentially used for
> tiling, as in that case each feature will be labeled exactly once,
> instead of once per tile.
>
> --
> thomas
>
> On Mon, Jan 10, 2011 at 16:34, Niccolo Rigacci 
> wrote:
> > On Mon, Jan 10, 2011 at 10:43:22AM -0400, Jeff McKenna wrote:
> >>
> >>PROCESSING "LABEL_NO_CLIP=1"
> >
> > Please, do you know if that directive is documented somewhere?
> >
> > I searched www.mapserver.org (with the Quick search box and with
> > Google), but nothing is found.
> >
> > --
> > Niccolo Rigacci
> > Firenze - Italy
> > ___
> > 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 mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users