[mapserver-users] MapServer consuming 100% CPU

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Thu Feb 21 05:12:12 PST 2008


It is because Mapserver cannot use any attribute indexes on the DBF.

Put your shapefile in a spatial database like PostGIS I would suggest and
create attribute indexes.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Paul Spencer <pspencer at dmsolutions.ca>
Naar: Desarrollo Desarrollo <devmapserver at gmail.com>
Cc: mapserver-users at lists.osgeo.org
Onderwerp: Re: [mapserver-users] MapServer consuming 100% CPU
Datum: 21/02/08 11:09

> See:
> 
> http://mapserver.gis.umn.edu/docs/howto/mapfiletuning
> http://mapserver.gis.umn.edu/docs/howto/optimizevector
> http://mapserver.gis.umn.edu/docs/howto/tileindex
> 
> Cheers
> 
> Paul
> 
> On 21-Feb-08, at 2:56 AM, Desarrollo Desarrollo wrote:
> 
> > Hi,
> >
> >    I am developing an application with  MapServer v2.2.7 with  
> > Apache  on Windows XP, but I have a serious problem, below I  
> > describe it:
> >
> > Using Navteq demo maps from Paris, the Streets.shp have around  
> > 500000 line strings features, when mapserver renders the layer  
> > without using DBF data (only  draw lines) everything is OK and fast, 

> > but when mapserver needs to access to the DBF to render labels or  
> > use expressions to filter data, mapserver starts to consuming 100%  
> > CPU and nothing is rendered after to spends a long time.
> >
> > Using Teleatlas demo maps for a medium city of Spain, the Street.shp 

> > with around 11000 line strings features doesn't show any trouble and 

> > mapserver  renders the images OK and fast even accessing to DBF to  
> > render labels
> >
> > Could somebody help me with this problem? Why does it happen? How do 

> > I solve it?
> >
> >
> > Thank you very much.
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 
> __________________________________________
> 
>     Paul Spencer
>     Chief Technology Officer
>     DM Solutions Group Inc
>     http://www.dmsolutions.ca/
> 
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
> 
> 






More information about the MapServer-users mailing list