Web.WebReq.TWebRequestHandler.ActiveCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ActiveCount: Integer read GetActiveCount;

C++

__property int ActiveCount = {read=GetActiveCount, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Web.WebReq.pas
Web.WebReq.hpp
Web.WebReq TWebRequestHandler

Description

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

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 (multi-device), 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 (multi-device), ISAPI (Windows only), or NSAPI (Windows only) applications. Each CGI application handles only a single request message.

See Also