RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebRequestHandler.InactiveCount Property

Indicates the number of Web modules cached for later reuse.

Pascal
property InactiveCount: Integer;
C++
__property int InactiveCount;

Use InactiveCount to monitor the number of unused Web modules. Over time, this value provides an indication of the optimal value for the MaxConnections property. 

When CacheConnections is true, each time an Apache (cross-platform), ISAPI (Windows only), or NSAPI (Windows only) application receives an HTTP request message, it reactivates one of the inactive Web modules. The application generates a new instance of the Web module if InactiveCount is 0. After the response is returned to the Web client, the Web module is deactivated again, and counted by the InactiveCount property. 

When CacheConnections is false, a new Web module is created for each HTTP request message and destroyed when the response is returned. InactiveCount is always 0 when CacheConnections is false.

Note: InactiveCount is only meaningful for Apache (cross-platform), ISAPI (Windows only), or NSAPI (Windows only)
applications. Each CGI application handles only a single request message, so there is no need to cache unused data modules.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!