Library Version 12.1.6.2

DbEnv::get_memory_max()
Prev | Chapter 5. The DbEnv Handle | Next

## DbEnv::get_memory_max()

    #include <db_cxx.h>

    int
    DbEnv::get_memory_max(u_int32_t *gbytesp, u_int32_t *bytesp);

The `DbEnv::get_memory_max()` method returns the maximum amount of memory to be used by shared structures other than mutexes and the page cache (memory pool). This value is set using the DbEnv::set_memory_max() method.

The `DbEnv::get_memory_max()` method may be called at any time during the life of the application.

The `DbEnv::get_memory_max()` method either returns a non-zero error value or throws an exception that encapsulates a non-zero error value on failure, and returns 0 on success.

### Parameters

#### gbytesp

The gbytesp parameter references memory into which is copied the maximum number of gigabytes of memory that can be allocated.

#### bytesp

The bytesp parameter references memory into which is copied the additional bytes of memory that can be allocated.

#### sizep

The sizep parameter references memory into which is copied the maximum number of bytes to be allocated.

### Class

DbEnv

### See Also

Database Environments and Related Methods

Prev | Up | Next
DbEnv::get_memory_init() | Home | DbEnv::get_metadata_dir()