Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Location
    Tuticorin, India
    Posts
    103

    Unanswered: Best way to calculate memory utilization

    Which is the reliable/trusted/suggested method to calculate the memory utilization by a DB2 Instance (assuming there is just one instance of DB2 on a server) ?

    Env : DB2 V8.2 / AIX 5.3

    Option 1: Using db2mtrk
    MEMORY=`db2mtrk -i -d -p -v | grep Total | awk '{ print $2 }'`

    TOTAL_MEMORY=0
    for i in `echo $MEMORY`
    do
    TOTAL_MEMORY=`expr $TOTAL_MEMORY + $i`
    done

    Option 2: Using ps as instance owner.
    DB2_MEM_LIST=$( ps gux | grep db2 | awk '{ print $6 }' | tr '\012' ' ' )

    DB2MEM=0
    for db2_mem in $DB2_MEM_LIST
    do
    (( DB2MEM=DB2MEM + $db2_mem ))
    done

    Pls advice. Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    2,514
    Provided Answers: 11
    Best Regards, Guy Przytula
    Database Software Consultant
    Good DBAs are not formed in a week or a month. They are created little by little, day by day. Protracted and patient effort is needed to develop good DBAs.
    Spoon feeding : To treat (another) in a way that discourages independent thought or action, as by overindulgence.
    DB2 UDB LUW Certified V7-V8-V9-V9.7-V10.1-V10.5 DB Admin - Advanced DBA -Dprop..
    Information Server Datastage Certified
    http://www.infocura.be

  3. #3
    Join Date
    Mar 2006
    Location
    Tuticorin, India
    Posts
    103
    I try to use db2pd on a test environment but I have the following questions
    [1] What is Memory Pools and Memory sets ?
    [2] What is the difference between mempool & memsets ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •