SlimFast Method (ServerManager collection)

               

 

This method is used to remove members of the ServerManager collection which are currently not in use.  The collections members are Server objects that represent open connections to PI servers and associated cached data from the server.  When the members not currently in use are removed those connections connections are closed and the underlying objects are released freeing memory and network resources. 

 

Syntax

object.SlimFast 

The object placeholder is an object expression that evaluates to a ServerManager collection.

 

Remarks

Over the lifetime of a ServerManager object, as users access different servers, the memory footprint will grow.  The ServerManager is caching both open connections and in turn the PI-SDK hierarchy from the Server object on down.  This provides good performance for users interested in servers and cached information that has been accessed by earlier callers.  This method provides a way for an application to trim down its memory usage by removing any connections and associated Server objects not currently in use. 

 

Enabling Operational Intelligence