Memory allocation
Memory allocation and deallocation occurs at various times. Memory might be allocated to a particular memory area when a specific event occurs (for example, when an application connects), or it might be reallocated in response to a configuration change.
Below figure shows the different memory areas that the database manager allocates for various uses and the configuration parameters that enable you to control the size of these memory areas. Note that in a partitioned database environment, each database partition has its own database manager shared memory set.
The following configuration parameters limit the amount of memory that is allocated for each type of memory area. Note that in a partitioned database environment, this memory is allocated on each database partition.
numdb This database manager configuration parameter specifies the maximum number of concurrent active databases that different applications can use. Because each database has its own global memory area, the amount of memory that can be allocated increases if you increase the value of this parameter.
maxappls
This database configuration parameter specifies the maximum number of applications that can simultaneously connect to a specific database. The value of this parameter affects the amount of memory that can be allocated for both agent private memory and application global memory for that database.
max_connections
This database manager configuration parameter limits the number of database connections or instance attachments that can access the data server at any one time.
max_coordagents
This database manager configuration parameter limits the number of database manager coordinating agents that can exist simultaneously across all active databases in an instance (and per database partition in a partitioned database environment). Together with maxappls and max_connections, this parameter limits the amount of memory that is allocated for agent private memory and application global memory.
You can use the memory tracker, invoked by the db2mtrk command, to view the current allocation of memory within the instance. You can also use the ADMIN_GET_MEM_USAGE table function to determine the total memory consumption for the entire instance or for just a single database partition. Use the MON_GET_MEMORY_SET and MON_GET_MEMORY_POOL table functions to examine the current memory usage at the instance, database, or application level.
On UNIX and Linux operating systems, although the ipcs command can be used to list all the shared memory segments, it does not accurately reflect the amount of resources consumed. You can use the db2mtrk command as an alternative to ipcs.
Remaining will be updated in next posts....Please follow my blog..
0 comments:
Post a Comment