Set the CPU limit attribute using the CREATE SERVICE CLASS statement to create a new service class and CPU limit, and use the ALTER SERVICE CLASS statement to alter the CPU limit setting for an existing service class. You set the CPU limit to cap CPU utilization by a service class under all circumstances during workload management dispatcher control.
You must enable the workload management dispatcher by configuring the wlm_dispatcher database manager configuration parameter, if not already done. By enabling the workload management dispatcher, CPU resource control using the CPU limit attribute becomes available by default. See: Enabling workload management dispatcher.
The CPU limit is set for a service class in this task using the CREATE SERVICE CLASS or ALTER SERVICE CLASS statement using the command line processor.
Restrictions
You can assign CPU limits only to service classes that the workload management dispatcher can control, which are user and maintenance service classes. The CPU resource allocations for system service classes cannot be controlled by the workload management dispatcher.
To create a new service class and set the CPU limit (skip to step 2 if an existing service class CPU limit setting is to be altered):
To alter the CPU limit setting for an existing service class:
You have set or altered the CPU limit setting for the specified service class. The workload management dispatcher cannot allocate CPU resources to this service class beyond the set limit.