[mapguide-users] Map Tiled Perfomance

Trevor Wekel trevor.wekel at autodesk.com
Thu Feb 15 12:04:20 EST 2007


Hi Joel,

I did a little digging into DataCacheSize and my tuning suggestion was
completely off base.
   
DataCacheSize determines the number of features returned at a time from
a Feature Services select statement.  It may improve performance for
database providers and for layers with very simple geometry because it
reduces the number of round trips to the underlying Fdo provider.

Based on some of the profiling I have done, DataCacheSize may not
significantly improve performance for SDF or SHP feature sources.
However, if your MapGuide server is memory limited and it's going to
disk heavily then increasing DataCacheSize may help.  Reading more
features at once should force Fdo to read larger chunks from disk at the
same time.

You should see the majority of the performance gains by enabling data
connection pooling and having a CacheSize set large enough to retain the
class definitions and spatial contexts for each of the feature classes
you are serving.

Thanks,
Trevor 



-----Original Message-----
From: Joel Carranza [mailto:jec at gatekeeper.com] 
Sent: Monday, February 12, 2007 12:59 PM
To: MapGuide Users Mail List
Subject: Re: [mapguide-users] Map Tiled Perfomance

Trevor,

I think I understand most of these parameters, but can you provide a
little more insight into the DataCacheSize parameter?

Comments from serverconfig.ini
# DataCacheSize                    Max # of features to fetch
#                                       0 < Value <= 2147483647

I didn't realize that you were caching features at all. How did you
choose the value of"( >= number of distinct feature sources you are
serving)"  for this variable?

--Joel

Trevor Wekel wrote:
> Hi all,
>
> I'm not sure what version of MapGuide everyone is using but the 
> following performance tweaks do help in the trunk code base and may 
> help with the officially released streams:
>
> - Turn on data connection pooling and caching for all data sources 
> (including SDF and SHP) In serverconfig.ini:
> [FeatureServiceProperties]
> CacheSize = 100 (3 x the number of layers you are serving should be
> sufficient)
> DataCacheSize = 100 ( >= number of distinct feature sources you are
> serving)
> DataConnectionPoolEnabled = 1 (turn it on) 
> DataConnectionPoolExcludedProviders = none  (turn connection pooling 
> on for all feature sources) DataConnectionPoolSize = 100 ( >= number 
> of feature sources you are
> serving)
>
> When you turn connection pooling on for file based data sources, the 
> files remain open so you may not be able to remove or overwrite them.
> This will affect APIs like ApplyResourcePackage.
>   
> In trunk, a new API has been added to MgTileService which will make 
> cache generation scripts easier to write.  Take a look at RFC 11.
> http://wiki.osgeo.org/index.php/MapGuide_RFC_11_-_Stateless_Http_GETTI
> LE
> IMAGE_request
>
> Thanks,
> Trevor
>
> -----Original Message-----
> From: Kori Maleski [mailto:kmale at telus.net]
> Sent: Thursday, February 08, 2007 8:46 PM
> To: 'MapGuide Users Mail List'
> Subject: RE: [mapguide-users] Map Tiled Perfomance
>
> I resemble that remark. :-)
>
>  
>
> The only way to improve performance without auto-generation is to 
> manually pan around for each zoom threshold to generate the cache.
>
>  
>
>  
>
> We will be releasing a utility to do the auto-generation in the next 
> month or so.  Still tweaking...
>
>  
>
>  
>
>  
>
> Kori Maleski
>
>  
>
>  
>
>  
>
>  
>
>   _____
>
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Jason 
> Birch
> Sent: February 8, 2007 6:57 PM
> To: MapGuide Users Mail List
> Subject: RE: [mapguide-users] Map Tiled Perfomance
>
>  
>
> You have 37 layers each on its own base layer in the same map?
>
>  
>
> Or you have a single base layer with 37 layers in it?
>
>  
>
> The latter is immeasurably preferred.
>
>  
>
> If they are already all in a single base layer, you may want to look 
> at auto-generating the tiles.
>
>  
>
> Certain folks that have already done this internally would be well 
> looked upon if they released their source :)
>
>  
>
> Jason
>
>  
>
>   _____
>
> From: Kencana
> Subject: [mapguide-users] Map Tiled Perfomance
>
> currently i have 37 layers in the base layers. and the performance of 
> the first map tiled loading will take arround 30 seconds. any idea on 
> how to make it faster in the first map loading?
>
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
>
>
>   





More information about the mapguide-users mailing list