Heap used by process reported through pmap

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erik Hendrix

    Heap used by process reported through pmap

    Hi,

    I was wondering if someone maybe knew what is stored in the following memory
    array and maybe give a clue as in why it is not released anymore:

    I have 1 agent which reports the following using pmap:
    # "pmap -x 9659
    9659: db2sysc
    Address Kbytes Resident Shared Private Permissions Mapped
    File
    000000010000000 0 26312 10072 9696 376 read/exec db2sysc
    0000000101AB000 0 3024 648 512 136 read/write/exec db2sysc
    0000000101DA400 0 115992 76872 8 76864 read/write/exec [
    heap ]
    000000020000000 0 13152 13152 - 13152 read/write/exec [
    anon ]
    000000021000000 0 5434368 5434368 - 5434368 read/write/exec [
    anon ]
    FFFFFFEF0000000 0 512 512 - 512 read/write/exec [
    anon ]
    ....
    FFFFFFFF7FFDE00 0 136 112 - 112 read/write [
    stack ]

    And then another agent which after the application connected has not been
    used has the following:
    # "pmap -x 3066
    3066: db2sysc
    000000010000000 0 26312 10368 9992 376 read/exec db2sysc
    0000000101AB000 0 3024 592 528 64 read/write/exec db2sysc
    0000000101DA400 0 1560 16 8 8 read/write/exec [
    heap ]
    000000020000000 0 13152 13152 - 13152 read/write/exec [
    anon ]
    000000021000000 0 5434368 5434368 - 5434368 read/write/exec [
    anon ]
    FFFFFFEF0000000 0 512 512 - 512 read/write/exec [
    anon ]
    ....
    FFFFFFFF7FFEE00 0 72 16 - 16 read/write [
    stack ]

    What I'm wondering about is the portion in the heap and stack.
    The agent (3066) that has not been used (after application connected) has a
    stack of 72KB and a heap of 1560KB. So I consider this to be the minimum
    needed.
    But then the other agent (9659) has a stack of 136KB and a heap of
    115992KB(= 113MB). Clearly, both the stack and the heap have grown. This
    agent is currently in a committed status thus no open UOW or anything
    actively running.
    So my question is, what is stored in the stack and heap and how come it is
    not being freed? What DBM and/or DB configuration parameters (if any)
    control this?

    Thank you.


Working...