The configuration of the Threadpool Swiftlet is defined within the element
<swiftlet name="sys$threadpool" .../>
of the router's configuration file. One can use the SwiftMQ Exlorer or CLI for configuration as well. They both save into that file.
Attributes of Element "swiftlet"
Definition
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| collect-interval | java.lang.Long | No | Interval for collecting the Thread Counts per Pool |
Values
| Attribute | Values |
|---|---|
| collect-interval | Default: 1000 |
Element List "pools", Parent Element: "swiftlet"
Threadpool Definitions. This element list contains zero or more "pool" elements with this template definition:
Definition
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| name | java.lang.String | Yes | Name of this Pool |
| kernel-pool | java.lang.Boolean | No | Marked as a Kernel Pool or not |
| min-threads | java.lang.Integer | No | Minimum Threads in this Pool |
| max-threads | java.lang.Integer | No | Maximum Threads in this Pool |
| queue-length-threshold | java.lang.Integer | No | Starts new Threads when the Queue Length reaches this Threshold |
| additional-threads | java.lang.Integer | No | Number Threads to Startup after reaching Threshold |
| priority | java.lang.Integer | No | Priority for Threads in this Pool |
| idle-timeout | java.lang.Long | No | Timeout for idling Threads in this Pool |
Values
| Attribute | Values |
|---|---|
| kernel-pool | Default: false |
| min-threads | Min: 0 Default: 0 |
| max-threads | Default: -1 |
| queue-length-threshold | Min: 1 Default: 1 |
| additional-threads | Min: 1 Default: 1 |
| priority | Min: 1 Max: 10 Default: 5 |
| idle-timeout | Default: 120000 |
Element List "threads", Parent Element: "pool"
Thread Assignment Definitions. This element list contains zero or more "thread" elements with this template definition:
Definition
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| name | java.lang.String | Yes | Name of this Thread |