08.06.2014 Views

Download PDF (1.3 MB) - IBM Redbooks

Download PDF (1.3 MB) - IBM Redbooks

Download PDF (1.3 MB) - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

esources (for example, a DB2 database). After the thread pool limit is reached, the requester<br />

cannot create new physical connections and must wait until a physical connection that is<br />

currently in use is returned to the pool, or a ConnectionWaitTimeout exception is issued.<br />

For example, if you set the Maximum Connections value to 5, and there are five physical<br />

connections in use, the pool manager waits for the amount of time that is specified in<br />

Connection Timeout for a physical connection to become free. The threads waiting for<br />

connections to the underlying resource are blocked until the connections are freed and<br />

allocated to them by the pool manager. If no connection is freed in the specified interval, a<br />

ConnectionWaitTimeout exception is issued.<br />

If you set Maximum Connections property to 0 (zero), the connection pool is allowed to grow<br />

infinitely. This setting has the side effect of causing the Connection Timeout value to be<br />

ignored.<br />

The general guideline for tuning connection factories is that their maximum connection pool<br />

size must match the number of concurrent threads multiplied by the number of simultaneous<br />

connections per thread.<br />

For each JMS, WebSphere MQ, or MQJMS Import, a connection factory exists that was<br />

created during application deployment. Make the Maximum Connections property of the<br />

connection pool, associated with the JMS connection factory, large enough to provide<br />

connections for all threads concurrently running in the import component. For example, if 100<br />

threads are expected to run in a given module, set the Maximum Connections property to 100.<br />

The default is 10.<br />

From the connection factory configuration panel, click Additional Properties Connection<br />

pool properties. Set the Maximum Connections property to the maximum size of the<br />

connection pool.<br />

Configuring data source options<br />

Make the Maximum Connections property of data sources large enough to allow concurrent<br />

access to the databases from all threads. Typically, a number of data sources are configured<br />

in Business Process Manager servers (for example, the BPEDB data source, the TWPROC<br />

data sources, the TWPERFDB data sources, the WPSDB data source, and the messaging<br />

engine database data sources). Set the Maximum Connections property of each data source<br />

to match the maximum concurrency of other system resources as described in 4.7.3, “Tuning<br />

for maximum concurrency” on page 64.<br />

Setting data source prepared statement cache size<br />

The BPC container uses prepared statements extensively. Set the statement cache sizes<br />

large enough to avoid repeatedly preparing statements for accessing the databases.<br />

Set the prepared statement cache for the BPEDB to at least 300.<br />

66 <strong>IBM</strong> Business Process Manager V8.0 Performance Tuning and Best Practices

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!