Tune your WebSphere® MQ activation specifications to enable effective workload management (WLM) by calculating the optimal value for the Maximum server sessions property.
When there is a backlog of messages on the WebSphere MQ queue for your message-driven bean (MDB), you want some messages to be processed before other message based on transaction class.
The workload management (WLM) feature of WebSphere Application Server for z/OS® allows messages to be processed in a certain order based on transaction class. Workload management prioritization occurs when message IDs have been placed on the WLM queue. To allow effective WLM prioritization you must, therefore, make sure that the WLM queue is sufficiently loaded with message IDs, so that the MDB has a selection of messages, with different transaction classes, to choose from. If there are not enough messages on the WLM queue, the MDB will take the first available message on the WLM queue and transaction class will not be considered.
To ensure that the WLM queue is loaded sufficiently to allow WLM prioritization, set the Maximum server sessions property on the activation specification to a value higher than the baseline recommendation of "twice the combined number of worker threads in all the servants for the server ."
These values can be estimated by using Performance Monitoring Information (PMI), other monitoring tools, or perhaps by a high-level understanding of how the message-driven bean fits into the general application flow of a specific server.
Too low a setting for Maximum server sessions causes idle worker threads. Too high a setting can cause extra messages to build up on the WLM queue, but the extra messages should not be sufficient to overload the WLM queue and cause the server to fail.