[mapserver-users] why is my website with Mapserver loading so slowly
Stephen Woodbridge
woodbri at swoodbridge.com
Wed Jul 3 10:33:40 PDT 2013
On 7/3/2013 12:56 PM, Karina Guardado wrote:
> Hi, I have my website with openlayers, mapfish, mapserver and
> postgresql/postgis and Apache web server but it is not loading at the
> first time so I have to reload or refresh the page as long as
> visualizing the map and the information.
>
> Does some know which could be the problem?
It is a little hard to know without more information about your setup.
In general, if you are pulling data from shapefiles, make sure you run
shptree file.shp for every shapefile. On Linux you can run:
find /path/to/data -name \*.shp -exec shptree {} \;
If you are pulling vector data from postgis, then you need to make sure
you have spatial indexes on all your tables.
If you are working with raster data, we need to know what type of files
and how many there are.
If you want to find out which layers are slow you can add these lines to
the MAP object of the mapfile:
DEBUG ON # or use a value between 0 and 5
CONFIG "MS_ERRORFILE" "/path/to/my-error.log"
Then refresh you browser and look in that file.
-Steve W
More information about the MapServer-users
mailing list