IBM BPM, V8.0.1, All platforms > Administer the IT infrastructure > Manage events > Maintaining and monitoring IBM BPM Event Manager

Allocating asynchronous and synchronous threads

You can use separate thread pools to run undercover agents, event subscriptions, and processes in designated queues in Event Manager.

You can run undercover agents and processes in both asynchronous and synchronous queues, but you can only run event subscriptions in asynchronous queues.

If the 100Custom.xml does not yet exist in the PROFILE_HOME\config\cells\ cell_name\nodes\ node_name\servers\ server_name\process-server\config directory, create it as described in The 99Local.xml and 100Custom.xml configuration files.

The 80EventManager.xml file contains the default thread allocation. To control the number of threads assigned to run processes, event subscriptions, and undercover agents, modify the 100Custom.xml file. If that if you increase the number of threads, system performance can be affected.


Procedure

  1. Stop the IBM Process Server.
  2. Open the Event Manager system configuration file and your local configuration file in text editors.

    • PROFILE_HOME\config\cells\ cell_name\nodes\ node_name\servers\ server_name\process-server\config\system\80EventManager.xml
    • PROFILE_HOME\config\cells\ cell_name\nodes\ node_name\servers\ server_name\process-server\config\100Custom.xml

  3. Copy the following section from the 80EventManager.xml file to the 100Custom.xml file.
    <!-- Number of tasks that can be loaded at one time for a sync queue -->
    <sync-queue-capacity>10</sync-queue-capacity>
    
    <! -- Number of simultaneous tasks that can execute on the async queue -->
    <async-queue-capacity>10</async-queue-capacity> 
    
    <!-- Number of simultaneous tasks that can execute on the BPD queue -->
    <bpd-queue-capacity>20</bpd-queue-capacity>   
    
    <!-- Number of simultaneous tasks that can execute on the system queue -->
    <system-queue-capacity>10</system-queue-capacity>   

  4. In the 100Custom.xml file, edit the element. In the following example, the number of threads is increased for each queue.
    <event-manager merge="mergeChildren">
    	<scheduler merge="mergeChildren">
    
    		<!-- Number of tasks that can be loaded at one time for a sync queue -->
    		<sync-queue-capacity>20</sync-queue-capacity>
    
    		<! -- Number of simultaneous tasks that can execute on the async queue -->
    		<async-queue-capacity>20</async-queue-capacity> 
    
    		<!-- Number of simultaneous tasks that can execute on the BPD queue -->
    		<bpd-queue-capacity>30</bpd-queue-capacity>   
    
    		<!-- Number of simultaneous tasks that can execute on the system queue -->
    		<system-queue-capacity>20</system-queue-capacity>   
    
    	</scheduler>
    </event-manager>
  5. Save your changes, and then close both the 100Custom.xml file and the 80EventManager.xml file.

  6. Start the IBM Process Server.

Maintaining and monitoring IBM BPM Event Manager