- WMI Library -
WMI Libraly > Win32_NamedJobObjectLimitSetting Class

Win32_NamedJobObjectLimitSetting Class

The Win32_NamedJobObjectLimitSetting class represents the limit settings for a job object. The limit settings specify the resources available to the job in accord with how the limit setting flags are set.
Namespace value is root/CIMV2.
WMI Provider value is NamedJobObjectLimitSettingProv.


Properties

  • ActiveProcessLimit
  • Specifies the active process limit for the job. If you try to associate a process with a job, and this causes the active process count to exceed this limit, the process is terminated and the association fails. Ignored unless LimitFlags specifies Active Process Limit.

  • Affinity
  • Specifies the processor affinity for all processes associated with the job. The affinity of each thread is set to this value, but threads are free to subsequently set their affinity, as long as it is a subset of the specified affinity mask. Processes cannot set their own affinity mask. Ignored unless LimitFlags specifies Limit Affinity.

  • Caption
  • A short textual description (one-line string) of the CIM_Setting object.

  • Description
  • A textual description of the CIM_Setting object.

  • JobMemoryLimit
  • Specifies the per-job memory limit in kilobytes. It is ignored unless the LimitFlags specifies the Limit Job Memory value.

  • LimitFlags
  • The LimitFlags property indicates the limits that are in effect. One or more of the following limits can be in effect:
    Limit Working Set - Causes all processes associated with the job to use the same minimum and maximum working set sizes.
    Limit Process Time - Establishes a user-mode execution time limit for each currently active process and for all future processes associated with the job.
    Limit Job Time - Establishes a user-mode execution time limit for the job. This flag cannot be used with Limit Preserve Job Time.
    Active Process Limit - Establishes a maximum number of simultaneously active processes associated with the job.
    Limit Affinity - Causes all processes associated with the job to use the same processor affinity.
    Limit Priority Class - Causes all processes associated with the job to use the same priority class.
    Limit Preserve Job Time - Preserves any job time limits you previously set. As long as this flag is set, you can establish a per-job time limit once, then alter other limits in subsequent calls. This flag cannot be used with Limit Job Time.
    Limit Scheduling Class - Causes all processes in the job to use the same scheduling class.
    Limit Process Memory - Causes all processes associated with the job to limit their committed memory. When a process attempts to commit memory that would exceed the per-process limit, it fails. If the job object is associated with a completion port, a JOB_OBJECT_MSG_PROCESS_MEMORY_LIMIT message is sent to the completion port.
    Limit Job Memory - Causes all processes associated with the job to limit the job-wide sum of their committed memory. When a process attempts to commit memory that would exceed the job-wide limit, it fails. If the job object is associated with a completion port, a JOB_OBJECT_MSG_JOB_MEMORY_LIMIT message is sent to the completion port.
    Limit Die On Unhandled Exception - Forces a call to the SetErrorMode function with the SEM_NOGPFAULTERRORBOX flag for each process associated with the job.
    Limit Breakaway OK - If any process associated with the job creates a child process using the CREATE_BREAKAWAY_FROM_JOB flag while this limit is in effect, the child process is not associated with the job.
    Silent Breakaway OK - Allows any process associated with the job to create child processes that are not associated with the job.

  • MaximumWorkingSetSize
  • Specifies the maximum working set size for all processes associated with the job. Ignored unless LimitFlags specifies Limit Working Set

  • MinimumWorkingSetSize
  • Specifies the minimum working set size for all processes associated with the job. Ignored unless LimitFlags specifies Limit Working Set

  • PerJobUserTimeLimit
  • Specifies the per-job user-mode execution time limit, in 100 nanoseconds. The system adds the current time of the processes associated with the job to this limit. For example, if you set this limit to 1 minute, and the job has a process that has accumulated 5 minutes of user-mode time, the limit actually enforced is 6 minutes.

  • PerProcessUserTimeLimit
  • Specifies the per-process user-mode execution time limit, in 100 nanoseconds. It is ignored unless LimitFlags specifies Limit Process Time.The system periodically checks to determine whether each process associated with the job has accumulated more user-mode time than the set limit. If it has, the process is terminated.

  • PriorityClass
  • Specifies the priority class for all processes associated with the job. Processes and threads cannot modify their priority class. Ignored unless LimitFlags specifies Limit Priority.

  • ProcessMemoryLimit
  • Specifies the per-process memory limit in kilobytes. It is ignored unless the LimitFlags specifies the Limit Process Memory.

  • SchedulingClass
  • Specifies the scheduling class for all processes associated with the job. The valid values are 0 to 9. Use 0 for the least favorable scheduling class relative to other threads, and 9 for the most favorable scheduling class relative to other threads. Ignored unless LimitFlags specifies Limit Scheduling Class.

  • SettingID
  • The identifier by which the job object limit setting instance is known.
    As a Kernel object job object names are case sensitive. Because WMI keys are case insensitive, the name of the named job object must be decorated as follows: a capital letter should be preceded by a backslash. As a consequence of this convention, 'A' and 'a' are lower case and '\A' and '\a' are upper case.


    Methods

    Method not found.

    Example WQL

    SELECT * FROM Win32_NamedJobObjectLimitSetting
    About this site information

    This contents is created by WMI having class information.
    WMI Environment is Windows Server 2008 R2 Enterprise Edition.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -
    http://library.wmifun.net/

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...