Hi! I'm running GeoServer 1.7.3 with PostgreSQL 8.1/PostGIS. I have a single table containing six polygons. I am using OpenLayers to visualize this data. The server is Debian Etch.
I'm finding the loading of the WMS data seems to be a bit slow. Here is a screenshot showing the details from Firebug:
http://files.britishideas.com/public/mapping/wmsload.gif
As you can see the four accesses to the WMS server all took longer than 47 seconds. The PC accessing the web page is on the same wired LAN as the server running GeoServer. I have no speed problems getting Osmarender tiles from a remote server in other tests.
Are there any hints or tips on how I can speed this up? Here is a snippet of Javascript that I am using:
--------------------------------------------------
map = new OpenLayers.Map ("map", {
controls:[
new OpenLayers.Control.Navigation(),
new OpenLayers.Control.PanZoomBar(),
new OpenLayers.Control.Attribution(),
new OpenLayers.Control.LayerSwitcher()],
maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
maxResolution: 156543.0399,
numZoomLevels: 19,
units: 'm',
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326")
} );
var wms = new OpenLayers.Layer.WMS("Test", "http://myserver.net:8080/geoserver/wms",
{
layers: 'test:pima', tiled: 'true'
},
{buffer: 0}
);
map.addLayer(wms);
var lonLat = new OpenLayers.LonLat(lon, lat).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject());
map.setCenter (lonLat, zoom);
--------------------------------------------------
I've tried it with and without the buffer option.
thanks, Andy
--
Andy
PGP Key ID: 0xDC1B5864