RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebRequestHandler.ActiveCount Property

Indicates the number of active connections currently being serviced by the application.

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

Use ActiveCount to monitor the number of HTTP request messages the application is servicing at any one time. Over time, this value provides an indication of the optimal value for the MaxConnections property.  

Each time an Apache (cross-platform), ISAPI (Windows only), or NSAPI (Windows only) application receives an HTTP request message, it generates a new instance of the Web module. After the response is returned to the Web client, the Web module is either destroyed or deactivated and cached for later reuse. Each active Web module resides in a separate execution thread. 

ActiveCount is the number of Web modules currently in use. InactiveCount is the number of deactivated Web modules cached for later reuse. MaxConnections is the maximum number of Web modules that can be active at any time. ActiveCount can never exceed MaxConnections.

Note: ActiveCount is only meaningful for Apache (cross-platform), ISAPI (Windows only), or NSAPI (Windows only)
applications. Each CGI application handles only a single request message.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!