JDBC Settings

The JDBC Settings page lets you modify various elements relating to JDBC. The page has the following items:

 

SQL Statement Recording (Request Detail Page):

 

Record SQL

Specifies how SQL is stored along with each request. You can either store queries in slowest first order (Slowest:default) or in the order that they are run (In Order). Alternatively you can just get a summary of run queries (Summary Only).

Record up to (queries)

This limits the number of queries stored for each request. If you are storing them in order then you will see the first queries which are run. The number of SQL statements recorded on the request affects the amount of memory that FusionReactor could use. It is recommended that you increase this value in stages and check the memory usage after each increase once the server has run at least the number of request that are kept in the Request History. Each query recorded only uses a very small amount of memory but this may become significant if you store hundreds or thousands of queries per request when multiplied by the number of requests maintained in your request history setting.

When queries are recorded in Slowest Order and the number of queries to record has been reached, a slower query will be correctly inserted into the list of recorded queries according to the time it has taken to run, and the last entry in the list will removed and added to the Summary Information.

Only queries slower than (ms)

This threshold value lets you record only SQL statements that run slower than the amount of time you specify here.  If the SQL statement runs faster than the time you specify it's data will still be added to the Summary information.

 

Additional Information:

Query Location

When this feature is enabled and a JDBC request is executed, FusionReactor will store a Java Stack Trace which can be used to find out the location of each query that ran. You change the amount of information which gets stored in this stack trace by going to the JDBC Stack Trace Filter page. The resulting stack traces are visible from the Request Detail page and within the JDBC log files.

 

JDBC Logging (Log Files):

 

JDBC Logging

If JDBC Logging is enabled then JDBC information will be written to the JDBC Log.

View Size (KB)

This value indicates how much of the log file should be displayed when you view the JDBC Log from inside FusionReactor.

File Size (KB)

Specifies the size of each file in the JDBC Log rotating file set.

File Count

Specifies the number of files in the JDBC Log rotating file set.

Only queries slower than: (ms)

Only log queries that run longer than this time will be written to the log files. (Optional)

 

NOTE: These settings pertain only to DSNs wrapped with the FusionReactor JDBC Driver Wrapper. For more information, please see the JDBC Driver Wrapper: User Guide and JDBC Tutorial PDF files (from the www.fusion-reactor.com website.)