Data access tuning parameters
Overview
For better application performance, you can tune some data access resources through the WAS console.
Tune these properties of data sources and connection pools to optimize the performance of transactions between your application and datastore.
Data source tuning
From the console, go to...
Resources | JDBC Providers | JDBC_provider | Data sources | datasource | WebSphere Application Server connection properties
- Enable JMS one phase optimization support
- If your application does not use JMS messaging, do not select this option.
Enabling...
- Optimizes connections to the data source
- Prevents JDBC applications from obtaining connections from the data source
In general, the more statements your application has, the larger the cache should be. Be aware, however, that specifying a larger statement cache size than needed wastes application memory and does not improve performance.
Determine the value for your cache size by adding the number of uniquely prepared statements and callable statements (as determined by the SQL string, concurrency, and the scroll type) for each application that uses this data source on a particular server. This value is the maximum number of possible statements that can be cached on a given connection over the life of the server.
Default: For most databases the default is 10. Zero means there is no cache statement.
Resources | JDBC Providers | JDBC_provider | Data sources | data_source | Connection pool settings
For optimal performance, set the value for the connection pool lower than the value for the Web container threadpool size. Lower settings, such as 10 to 30 connections, might perform better than higher settings, such as 100.
Default: 10
If you set this property for a higher number of connections than your application ultimately uses at run time, you do not waste application resources. WAS does not create additional connections to achieve your minimum setting. Of course, if your application requires more connections than the value you set for this property, application performance diminishes as connection requests wait for fulfillment.
Default: 1