Environmental Characteristics (API Guide)

From InterBase
Jump to: navigation, search

Go Up to Request Buffer Items and Result Buffer Values (API Guide)


Several items are provided for determining environmental characteristics, such as
the amount of memory currently in use, or the number of database cache buffers currently allocated. These items are described in the following table:

Database Information Items for Environmental Characteristics
Request buffer item Result buffer contents

current_memory

Amount of server memory (in bytes) currently in use

forced_writes

Number specifying the mode in which database writes are performed (0 for asynchronous, 1 for synchronous)

max_memory

Maximum amount of memory (in bytes) used at one time since the first process attached to the database

num_buffers

Number of memory buffers currently allocated

sweep_interval

Number of transactions that are committed between “sweeps” to remove database record versions that are no longer needed

user_names

Names of all the users currently attached to the database; for each such user, the result buffer contains an isc_info_user_names byte followed by a 1-byte length specifying the number of bytes in the user name, followed by the user name

Note: Not all environmental information items are available on all platforms.

Advance To: