Creating a Thread Pool

Group Adaptive Server engines into thread pools.

Prerequisites
The kernel mode must be set to threaded to create a thread pool. You can change the kernel mode on the Server Configuration screen, or by executing the SQL command sp_configure at the server level from the Administration Console.

sp_configure "kernel mode", 0, threaded

You must restart Adaptive Server for the change to take affect.
Task

Thread pools are groups of resources, such as engines, that execute user tasks, run specific jobs such as signal handling, and process requests from a work queue. Adaptive Server supports both system-defined and user-defined thread pools.

Note: Thread pools can only be configured in Adaptive Server 15.7 and later.
  1. In the left pane of the Administration Console, expand ASE Servers > Performance, then select Thread Pools.
  2. Select New.
    You see the Add Thread Pools wizard.
  3. Select an Adaptive Server that is configured to run in threaded mode.
  4. (Optional) For a cluster environment, click Create this as local thread pool, then select the cluster instance on which the thread pool will be created.
  5. Specify the name of the thread pool you want to create.
    Note: You cannot name thread pools starting with a syb_ prefix since that is reserved for system thread pools.
  6. Specify the number of threads. The maximum number of threads you can configure cannot exceed the value of max online engines.
  7. Specify the thread pool idle time out in microseconds.
  8. (Optional) Provide a description for the thread pool.
  9. (Optional) Click Preview to see the SQL statements for your command.
  10. (Optional) Click Summary to verify your selected options.
Related tasks
Creating Execution Classes
Creating Engine Groups
Related reference
Thread Pool Properties
Execution Classes Properties
Engine Groups Properties
Thread Statistics and Details