Mercurial > dive4elements > river
view flys-artifacts/doc/conf/mapserver/mapfile.vm @ 5779:ebec12def170
Datacage: Add a pool of builders to make it multi threadable.
XML DOM is not thread safe. Therefore the old implementation only allowed one thread
to use the builder at a time. As the complexity of the configuration
has increased over time this has become a bottleneck of the whole application
because it took quiet some time to build a result. Furthermore the builder code path
is visited very frequent. So many concurrent requests were piled up
resulting in long waits for the users.
To mitigate this problem a round robin pool of builders is used now.
Each of the pooled builders has an independent copy of the XML template
and can be run in parallel.
The number of builders is determined by the system property
'flys.datacage.pool.size'. It defaults to 4.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Sun, 21 Apr 2013 12:48:09 +0200 |
parents | 2fdbe78a8fc2 |
children |
line wrap: on
line source
MAP NAME "FLYS-Map" STATUS ON SIZE 600 400 MAXSIZE 4000 EXTENT 3233232.55407617 5303455.37850183 3421524.44644752 5585825.50888523 UNITS DD SHAPEPATH "$SHAPEFILEPATH" FONTSET "$CONFIGDIR/mapserver/fontset.txt" SYMBOLSET "$CONFIGDIR/mapserver/symbols.sym" IMAGECOLOR 255 255 255 PROJECTION "init=epsg:31467" END DEBUG 5 CONFIG "MS_ERRORFILE" "/tmp/flys-user-wms.log" WEB METADATA "wms_title" "FLYS Web Map Service" "wms_onlineresource" "$MAPSERVERURL" "wms_accessconstraints" "none" "wms_fees" "none" "wms_addresstype" "postal" "wms_address" "Any Street" "wms_city" "Any City" "wms_stateorprovince" "Any state" "wms_postcode" "My Postalcode" "wms_country" "Any Country" "wms_contactperson" "Any Person" "wms_contactorganization" "Any Orga" "wms_contactelectronicmailaddress" "any-email@example.com" "wms_contactvoicetelephone" "Any's telephone number" "wms_srs" "EPSG:4326 EPSG:31466 EPSG:31467" "wms_feature_info_mime_type" "text/html" "ows_enable_request" "*" END END LEGEND KEYSIZE 20 20 STATUS ON TRANSPARENT ON LABEL COLOR 150 150 150 OUTLINECOLOR 255 255 255 TYPE truetype FONT "FreeSans" SIZE 12 POSITION AUTO END END ## Don't change the following lines. #foreach ($LAYER in $LAYERS) include "$LAYER" #end END