JDBC Type 4 Driver 2.0 Programmer's Reference (SQL/MX 2.x)
Configuring MFC
For information on configuring MFC, see the HP NonStop SQL/MX Connectivity Service Manual.
MFC Usage Scenarios
The benefits of lower processor and memory utilization mentioned below are applicable on the NonStop
Server.
JDBC T4 applications using java.sql.Connection.prepareStatement() have the
benefit of lower processor utilization, lower memory consumption, and better response time.
●
JDBC T4 applications using complex queries through prepare calls, have higher benefit of lower
processor utilization, lower memory consumption, and better response time. For example,
Hibernate generated queries.
●
JDBC T4 applications with higher driver side cache size can benefit from lower memory
utilization by using the combination of MFC and driver side MFU cache.
For example, an application with t4sqlmx.maxStatements=1000 can benefit by changing
to t4sqlmx.maxStatements=600 and MFC.
In this example, all statements are cached in MFC and the most frequently used statements are
cached in the driver side MFU cache.
●
JDBC T4 applications, which have large number of statements that are SQL compiled at the
startup, can benefit from reduced (re-) startup time by using the MFC feature. In situations, where
servers are configured for automatic restart, the startup time is reduced.
●
JDBC T4 applications experiencing high memory swapping can benefit from reducing the driver
side cache and enabling MFC. Reduce the driver side cache and enable MFC in the scenarios,
where the MXOSRVR process exceeds 1 GB in size frequently.
●
For JDBC T4 applications where the large number of MXOSRVR processes is configured per
processor, enable MFC to reduce swapping. The other option is to increase the physical memory
per processor to reduce swapping.
●
MFC combined with limited driver side cache is recommended for JDBC T4 applications, where
the number of distinct queries is not known or not fixed.
●
MFC Tuning Recommendations
When the number of connections required to be configured per processor is high in number (for example,
more than 20 connections per processor), use MFC for less memory utilization.
If an application has a small number of OLTP queries (such as, JOE) where there is no memory pressure
and memory pressure is heavy in execute() and fetch(), the MFC performance result will be close










