什么是“其他内存”是db2mtrk

时间:2018-10-10 16:12:31

标签: db2 database-administration db2-luw

例如,如果我运行db2mtrk -a -v,它会给出类似的内容

Memory for application 1234

    Application Heap is of size 131072 bytes
    Other Memory is of size 262144 bytes
    Total: 393216 bytes

从物理大小运行db2pd -db foo -mempools时,我可以看到应用程序堆的大小,但是我无法弄清楚它们从何处获得其他内存的总和。

我做了一个google搜索,什么也没想出来。有什么想法吗?

2 个答案:

答案 0 :(得分:0)

请参阅db2mtrk的文档,其中指出:

  

报告的“其他内存”是与使用情况相关联的内存   数据库管理系统的操作。”

memory-allocation页上有更多详细信息,显示了其组成。

答案 1 :(得分:0)

使用以下内容更方便。

select 
  p.member
, coalesce(a.application_handle, p.application_handle) application_handle
, p.memory_pool_type
, p.edu_id
, p.memory_pool_used, p.memory_pool_used_hwm 
, c.application_id, c.coord_member
from table(mon_get_memory_pool(null, current server, -2)) p
left join table(wlm_get_service_class_agents(null, null, null, -2)) a on a.dbpartitionnum=p.member and a.agent_tid=p.edu_id
left join table(mon_get_connection(null, -2)) c on c.application_handle=coalesce(a.application_handle, p.application_handle) and c.member=p.member
where 1234 in (a.application_handle, p.application_handle)
;