[mapserver-users] How to use 01 connection for all layers in map file

Alphatran bicphuongonline at yahoo.com
Fri Aug 7 00:47:18 EDT 2009


I posted the question above because my website is too slow to load layers. I
think the problem is too many connections for each client

And I got error of connection when I tried testing with 4 clients at the
same time. Then if I shutdown and start ArcSDE again, all error of
connection is gone away.


Pavel Iacovlev wrote:
> 
> As I understood the question the fact that OpenLayers makes 17*N (N
> number of tiles) connections to the mapserver is a major slow down ?
> Here is an example of mapserver layer usage:
> http://openlayers.org/dev/examples/mapserver.html , so your request
> should be something like this:
> /map.map&layer=layer1&layer=layer2&mode=map
> PROCESSING "CLOSE_CONNECTION=DEFER" will also help you a lot in this
> case especially with oracle database that has high cost of connection
> time.
> So a user makes 1 request from OpenLayers, then mapserver request all
> your 17 raster/vector files create an image and return it back to OL.

=> I tried PROCESSING "CLOSE_CONNECTION=DEFER" and hope it make my website
is faster. But as I see It didn't make the site much faster. But the
connection error is gone away!

Jelmer Baas
Each OpenLayers WMS request is a new http request and in 1 session you
get 1 layer (openlayers -> mapserver). As I understood from docs
PROCESSING "CLOSE_CONNECTION=DEFER" will help then you have multiple
layer requests in 1 session (mapserver -> arcsde), and it will not
close the connection after a layer has been processed but after all
layers are processed and the work is done.

=> PROCESSING "CLOSE_CONNECTION=DEFER" will enable Connection Pooling which
has the function as Pavel Iacovlev said above. What do you mean of the
previous post of Jelmer Baas ?

Thanks for both of you for your help,

-- 
View this message in context: http://n2.nabble.com/How-to-use-01-connection-for-all-layers-in-map-file-tp3397242p3402377.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list