Configuring microsoft com+ object pooling – Pitney Bowes MapXtreme User Manual

Page 122

Advertising
background image

Chapter 6: Understanding State Management

A Closer Look at the MapXtreme Session

MapXtreme v7.1

122

Developer Guide

Configuring Microsoft COM+ Object Pooling

The MapXtreme Session object is registered with the COM+ services on your system. This system
handles configuration and activation of any registered pooled objects. The runtime installer has the
logic to register and create default settings for the MapInfo Session object. By default the
MapXtreme Session object is configured with two pooled objects and a 60 second time-out.

Configuring the Pool Size

The MapXtreme Session is configurable using the system configuration methods for the appropriate
section. These settings are available in both the system dialogs in the Control Panel and the .NET
configuration files of your application. Web applications must manage these settings when using
pooled MapXtreme Sessions.

One important setting is the number of pooled objects created by the COM+ system to service your
running application. This setting is accessed using the Control Panel > Administrative Tools >
Component Services. Browse through the Component Services > Computers > My Computer >
COM+ Applications > MapInfo.CoreEngine > Components. Here you will find the MapInfo.Engine
Session object. Right click the icon and select Properties.

The Property dialog allows you to set various properties including the number of pooled objects per
application and the activation time-out for session creation. Setting the number of pooled objects
correctly directly impacts your applications performance. To set the number of pooled objects
correctly you need to understand your application and how it accesses data.

Background Map Affects Performance

Another aspect of the session that can directly impact your application's performance, is the startup
workspace that you define in the application Web.config file. This workspace defines which maps,
layers, and tables will be loaded when the session object is created. This happens in the COM+ pool
thread and outside your web application space.

Advertising