【问题标题】:What is the the "Other Memory" is db2mtrk什么是“其他内存”是 db2mtrk
【发布时间】:2026-02-11 14:50:01
【问题描述】:

例如,如果我运行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 时,我可以看到应用程序堆大小,但我不知道他们从哪里得到其他内存总量。

我进行了谷歌搜索,但找不到任何结果。有什么想法吗?

【问题讨论】:

    标签: db2 database-administration db2-luw


    【解决方案1】:

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

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

    memory-allocation 页面上有更多详细信息,展示了它是如何组成的。

    【讨论】:

    • 谢谢你,我完全错过了那个文档。是否有任何其他命令可以获取有关其他内存的更多详细信息,或者是这样吗?
    【解决方案2】:

    使用下面的更方便。

    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)
    ;
    

    【讨论】: