This document is archived and information here might be outdated.  Recommended version.

IServerObjectConfiguration.MaxInstances Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IS > IServerObjectConfiguration Interface > IServerObjectConfiguration.MaxInstances Property
ArcGIS Developer Help

IServerObjectConfiguration.MaxInstances Property

The maximum number of server object instances for a server object configuration.

[Visual Basic .NET]
Public Property MaxInstances As Integer
public int MaxInstances {get; set;}
HRESULT get_MaxInstances(
  System.Int32* instances
HRESULT put_MaxInstances(
  long instances
instances [out, retval]

instances is a parameter of type long* instances [in]
instances is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


The MaxInstances property indicates the maximum number of server objects that can be running and handle requests at any one time. if the maximum number of server objects are running and busy, additional requests will be queued until a server object becomes free.

For a pooled server object, the MaxInstances represents the maximum simultaneus requests that can be processed by the server object configuration. For a non-pooled server object, the MaxInstances represents the maximum number of simlutaneus application users of that particular server object configuration.

The MaxInstances property must be greater than 0 and must be greater than the MinInstances property.

See Also

IServerObjectConfiguration Interface