Setting up parallel processing configurations in a managed container

You must set up the parallel processing configurations prior to using parallel processing.

To set up parallel processing in a managed environment, configure the following:

  • EJB asynchronous method invocation thread pools for application servers
  • Internal thread pools for agents

Configuring EJB asynchronous method invocation thread pools

You need to configure EJB asynchronous method invocation thread pools for application servers. The configuration of these thread pools is application-server specific, and you need to configure the thread pools from the application server’s management console.

Notes:

  • Disable ’stuck thread reporting’ and ’hung thread reporting’ in the newly configured thread pool, because some of the threads used by your application will run for the lifetime of the server and will result in the thread being reported as stuck or hung. If you do not want to disable such reporting, you can ignore any stuck thread or hung thread exceptions in the log file if the exception trace contains references to the PeriodicBatchIndexer class.
  • You must be using the latest version of the application server to use this method. Refer to the IBM® Support Portal for the latest system requirements. If you are using an older version of the application server and therefore do not have access to EJB 3.1 spec, you can use the internal thread pool for parallel processing.

For additional information about configuring EJB-based thread pools:

  • For WebSphere®: Refer to the WebSphere documentation for details about how to configure the EJB asynchronous method invocation settings.
  • For JBoss: Refer to the JBoss documentation for details about how to configure the ’Async Service’ thread pool and the ’Stateless Session Bean’ pool sizes.
  • For WebLogic: Create and configure a Work Manager named asyncejbwm. Note that you must use this name exactly as specified. For information about configuring a Work Manager and its constraints, refer to the WebLogic documentation.

Configuring internal thread pools

You need to configure the following internal thread pools for agents:

  • threadPool.worker.maxPoolSize
  • threadPool.main.workQueueSize