DB2: memory

 db2 list db directory

db2 get dbm cfg | grep -i instance

exit

db2 update dbm cfg using INSTANCE_MEMORY 1572864 immediate

db2 terminate; db2 force applications all; db2stop force; db2start

free -m

db2 get dbm cfg | grep instance



Configuring memory and memory heaps - IBM Documentation

https://www.ibm.com/docs/en/db2/11.5.x?topic=overview-configuring-memory-memory-heaps


a single parameter, instance_memory, to specify all of the memory that the database manager is allowed to allocate from its private and shared


the db2mtrk command to monitor heap usage and the ADMIN_GET_MEM_USAGE table function to query overall memory consumption

>db2mtrk  -a




Note: The DBMCFG and DBCFG administrative views retrieve database manager configuration parameter information for the currently connected database for all database partitions. For the mon_heap_sz, stmtheap, and stat_heap_sz configuration parameters, the DEFERRED_VALUE column on this view does not persist across database activations. That is, when you issue the get dbm cfg show detail or get db cfg show detail command, the output from the query shows updated (in memory) values.



As part of the move to simplified memory configuration, the following elements have been deprecated:

  • Configuration parameters appgroup_mem_szgroupheap_ratio, and app_ctl_heap_sz. These configuration parameters are replaced with the new appl_memory configuration parameter.
  • The -p parameter of the db2mtrk memory tracker command. This option, which lists private agent memory heaps, is replaced with the -a parameter, which lists all application memory consumption.






Comments

Popular posts from this blog

Oracle: To clean up WRI$_ADV_OBJECTS