JBoss IO Worker threads Test

WildFly/JBoss uses I/O worker threads to handle network communication between clients and the application server. These threads are responsible for accepting client connections, reading incoming requests, writing responses, and delegating application processing to worker task threads. Every configured I/O worker maintains its own thread pool, allowing the server to efficiently process multiple concurrent client requests.

If an I/O worker becomes overloaded due to a sudden increase in client traffic, slow request processing, or an undersized thread pool, the available threads can become fully occupied. As a result, incoming requests may remain queued until a thread becomes available, leading to increased response times, reduced throughput, connection delays, and, in extreme cases, request timeouts or service degradation. Administrators can prevent such issues by monitoring the utilization and capacity of each I/O worker thread pool, identifying workers that are consistently operating near their limits, and tuning the thread pool configuration by increasing the number of I/O or task threads where appropriate. Investigating applications that perform long-running or blocking operations can also help reduce thread occupancy and improve request processing efficiency.

This test reports key runtime metrics for every configured I/O worker, including thread counts, queue size, thread utilization, and shutdown status. By continuously monitoring these metrics, administrators can detect thread pool saturation, identify workload imbalances across workers, and take corrective action before application responsiveness and user experience are affected.

Target of the test : A WildFly JBoss server

Agent deploying the test : An internal agent

Outputs of the test : One set of results for each I/O worker configured on the target WildFly JBoss that is to be monitored.

Configurable parameters for the test
Parameters Description

Test period

How often should the test be executed

Host

The host for which the test is to be configured.

Port

The port at which the specified HOST listens. By default, this is 9990.

SSL

If the WildFly JBoss server being monitored is an SSL-enabled server, then set the SSL flag to Yes. If not, then set the SSL flag to No.

Is JBoss Running In Domain Mode?

Specify whether the server to be monitored is currently running in Domain Mode or not. By default, this flag is set to No which implies that the server is currently running in Standalone Mode. If you have started the target JBoss server using the default web profile configuration in domain mode i.e, if you have executed the ./domain.sh command from the <JBoss_INSTALL_DIR>/bin directory, then specify Yes against this flag.

JBoss Host Name

Specify whether the target server to be monitored is a master or a slave in a JBoss cluster. By default, none will be specified here which implies that the target JBoss server is a standalone server. Refer to Identifying the host name and server instance name of the WildFly JBoss server running in Domain mode to know how to identify whether the target server is a master or slave in your environment.

JBoss Server Instance Name

Specify the name of the server instance that is to be monitored. By default, none will be specified here. Refer to Identifying the host name and server instance name of the WildFly JBoss server running in Domain mode to identify the name of the server instance that is to be monitored. 

Management User and Management Password

Specify the credentials of the user who is authorized to access the management console of the target JBoss server. To create a new user, refer to Creating a new Management/Application user in the WildFly JBoss server of this document.

Confirm Password

Confirm the Management Password by retyping it here.

Measurements made by the test

Measurement

Description

Measurement Unit

Interpretation

Busy task threads

Indicates the number of busy task threads for this I/O worker.

Number

A high value indicates that more task threads are actively processing requests. If this value remains close to the configured thread count for extended periods, the worker may be approaching saturation.

Core pool size

Indicates the core pool size configured for this I/O worker.

Number

This is the minimum number of task threads maintained by the worker. A consistently high workload beyond this size may require tuning the thread pool configuration.

Runtime I/O thread count

Indicates the number of I/O threads configured for this I/O worker.

Number

This represents the threads responsible for handling network I/O. Too few I/O threads can limit the worker's ability to process concurrent client connections efficiently.

Max pool size

Indicates the maximum number of task threads allowed for this I/O worker.

Number

This defines the upper limit to which the task thread pool can grow to handle increased workloads.

Tasks in the worker queue

Indicates the number of tasks waiting in the queue for this I/O worker.

Number

A continuously increasing queue size indicates that incoming tasks are arriving faster than they can be processed, which may lead to increased response times.

Stack size allocated for worker threads

Indicates the stack size configured for the threads of this I/O worker.

Bytes

This determines the memory allocated for each thread's stack. It should be sized appropriately to avoid excessive memory consumption or stack overflow errors.

Core task thread count

Indicates the core task thread count configured for this I/O worker.

Number

This is the minimum number of task threads maintained by the worker to process submitted tasks.

Task keepalive

Indicates the duration for which excess task threads of this I/O worker remain idle before being terminated.

Milliseconds

A higher keepalive value allows additional threads to remain available longer, reducing thread creation overhead during intermittent workload spikes.

Max task thread count

Indicates the maximum number of task threads that this I/O worker can create.

Number

If this limit is frequently reached while the queue size continues to grow, the worker thread pool may require tuning.

Configured I/O thread count

Indicates the configured number of I/O threads for this I/O worker.

Number

These threads handle network read/write operations and distribute requests to task threads. The value should be adequate to support the expected connection load.

Shutdown requested

Indicates whether shutdown has been requested for this I/O worker.

 

The numeric values that correspond to these measure values are discussed in the table below:

Measure Value Numeric Value
False 0
True 1

Note:

This measure reports the Measure Values listed in the table above to indicate whether shutdown is requested.However, in the graph, this measure is indicated using the Numeric Values listed in the table above.

Utilization

Indicates the percentage of I/O worker thread utilization for this I/O worker.

Percent

A consistently high utilization (typically above 80–90%) indicates that the worker is heavily loaded and may become a bottleneck, resulting in request queuing and increased response times.