All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.util.Dictionary | +----java.util.Hashtable | +----java.util.Properties | +----interbase.interclient.ServerProperties
This class is used to tailor server properties before starting the InterBase service.
public ServerProperties()
public void setDefaultPageSize(int pageSize) throws SQLException
public void setDefaultCacheBuffers(int num) throws SQLException
Database cache is the number of memory pages reserved for each attached database. If the figure is set high enough to accommodate the page requirements for all attached databases, overall performance is maximized because all database activity can be handled in physical RAM rather than having it swapped to disk. If too many pages are reserved, however, and you have many databases running simultaneously, your request may exceed the amount of physical RAM available to the system. If that happens, some of your operations would be swapped to disk as the operating system tries to manage the excessive demands of your databases and the needs of other running applications (including itself).
To calculate the amount of memory required by a database, multiply the number of pages by the page size (these figures are defined when a database is created).
On Classic, the default page allocation is 75 for each connection. Minimum is 50 pages. There is no maximum, but the total allocation must not exceed system resources (see discussion above). Changes take effect in all calls made after the DBA presses either OK or Apply.
On Superserver, a single page buffer cache is allocated per database, and shared between connections. The default allocation is 256.
There are 3 ways to programmatically specify the number of cache buffers:
Cache buffers may also be set manually in the server's isc_config file by assigning the configuration parameter DATABASE_CACHE_PAGES. This manual server-wide setting takes precedence over any programmatic server-wide setting, but is overriden by the database-wide and connection-wide programmatic settings.
All Packages Class Hierarchy This Package Previous Next Index