[mapserver-users] MapServer consuming 100% CPU
Desarrollo Desarrollo
devmapserver at gmail.com
Thu Feb 21 23:43:38 PST 2008
Thank you very much for your answer,
Therefore, Should I think that Shapefiles / DBF data is not suitable for
MapServer if the number of features in the shapefile is a "big" number like
473815 line strings in the Streets.shp? I've tried with MajHwys.shp
(35295 linestrings features) labeling and using expressions and works ok.
Streets.shp with its 473815 linestrings is rendered fast if there is not DBF
access (not labeling neither expressions), but when DBF access is needed
Mapservers hangs up!
Will MySQL spatial data increase the speed and number of features that
MapServer can manage?
Best regards
2008/2/21, Bart van den Eijnden (OSGIS) <bartvde at osgis.nl>:
>
> 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
> >
> >
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080222/e23462d5/attachment.htm>
More information about the MapServer-users
mailing list