Similar to connection pooling, statement pooling provides performance gains for applications that execute the same SQL statements multiple times in the life of the application. The DataDirect Statement Pool Monitor provides the following functionality to help you troubleshoot problems that may occur with statement pooling:
See Chapter 10 “Statement Pool Monitor” for more information about using the Statement Pool Monitor.
You can generate an export file by calling the exportStatements() method of the ExtStatementPoolMonitorMBean interface. For example, the following code exports the contents of the statement pool associated with the connection to a file named stmt_export:
The following example shows a sample export file. Notes provide explanations for the referenced text to help you understand the content of your own statement pool export files.