Редагувати

Поділитися через


__ProviderHostQuotaConfiguration class

The __ProviderHostQuotaConfiguration system class is a configuration class for host provider processes. This class resides in the root namespace and allows limits to be set on host process usage of system resources.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

class __ProviderHostQuotaConfiguration : __SystemClass
{
  uint32 ThreadsPerHost;
  uint32 HandlesPerHost;
  uint32 ProcessLimitAllHosts;
  uint64 MemoryPerHost;
  uint64 MemoryAllHosts;
};

Members

The __ProviderHostQuotaConfiguration class has these types of members:

Properties

The __ProviderHostQuotaConfiguration class has these properties.

HandlesPerHost

Data type: uint32

Access type: Read/write

Number of kernel object handles each host can have.

MemoryAllHosts

Data type: uint64

Access type: Read/write

Combined amount of private memory in bytes that can be held by all hosts.

For more information about using uint64 values in scripts, see Scripting in WMI.

MemoryPerHost

Data type: uint64

Access type: Read/write

Amount of private memory that can be held by each host.

For more information about using uint64 values in scripts, see Scripting in WMI.

ProcessLimitAllHosts

Data type: uint32

Access type: Read/write

Total number of host processes that can be executing concurrently.

ThreadsPerHost

Data type: uint32

Access type: Read/write

Number of threads owned by any one host.

Remarks

The properties that represent limits can be changed but because the class is a singleton, all the provider hosts share the same limits.

The following parameters are used when configuring the job object limits for the host job object:

  • MemoryAllHosts
  • MemoryPerHost
  • ProcessLimitAllHosts
  • ThreadsPerHost

The host process polls handle usage and exits the process if the HandlesPerHost quota is violated. Changes to these values take effect after the computer is restarted.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
All WMI namespaces

See also

__SystemClass

WMI System Classes