- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
3#
发表于 2013-3-7 10:43:28
请仔细看以下 演示;
SQL> oradebug setmypid
Statement processed.
SQL> oradebug dump heapdump 536870914;
Statement processed.
SQL> oradebug tracefile_name
/u01/app/oracle/diag/rdbms/cdb1/cdb1/trace/cdb1_ora_5287.trc
SQL>
HEAP DUMP heap name="KSFD SGA I/O b" desc=0x6000dd98
extent sz=0x4258 alt=32767 het=32767 rec=9 flg=2 opc=0
parent=0x60001130 owner=(nil) nex=(nil) xsz=0x3cafc0 heap=(nil)
fl2=0x28, nex=(nil), dsxvers=1, dsxflg=0x0
dsx first ext=0x7e835010
pdb id=1
例如 parent=0x60001130 owner=(nil) nex=(nil) xsz=0x3cafc0 heap=(nil)
HEAP DUMP heap name="sga heap" desc=0x60001130
extent sz=0x42308 alt=248 het=32767 rec=9 flg=-126 opc=0
parent=(nil) owner=(nil) nex=(nil) xsz=0x0 heap=(nil)
fl2=0x60, nex=(nil)
pdb id=1
ds for latch 1: 0x60054700 0x60055f58 0x600577b0 0x60059008
reserved granule count 11 (granule size 4194304)
RESERVED EXTENTS
0x78400000 0x78000000 0x77c00000 0x77800000
0x77400000 0x77000000 0x76c00000 0x76800000
0x76400000 0x76000000 0x75c00000
Counted elements on list: 11
KSFD SGA I/O b是 "sga heap"的 子堆 subheap , 则 "sga heap" 是KSFD SGA I/O b的 父堆 ,
KSFD SGA I/O b的 parent=0x60001130 ==》指向 "sga heap"的 地址
536870914 level heapdump 也会列出 父子堆关系, 如下 sga heap(1,1) 有5个最大的 sub heaps 包括 KSFD SGA I/O b
KSFD是ASM 相关的subeap
FIVE LARGEST SUB HEAPS for heap name="sga heap(1,1)" desc=0x60055f58
Subheap ds=0x6000dd98 heap name= KSFD SGA I/O b size= 3977200
owner=(nil) latch=(nil)
Subheap ds=0x7ec7a4c8 heap name= OFS SGA pool h size= 3867880
owner=(nil) latch=(nil)
Subheap ds=0x7e529828 heap name= PDB Heap size= 1347472
owner=(nil) latch=(nil)
Subheap ds=0x7d949730 heap name= PDB Heap size= 1347432
owner=(nil) latch=(nil)
Subheap ds=0x7e527fd0 heap name= PDB Heap size= 1346528
owner=(nil) latch=(nil)
SUBHEAP 1: desc=0x6000dd98
SUBHEAP 4: desc=0x796ce448
******************************************************
HEAP DUMP heap name="PLDIA^2d801e1c" desc=0x796ce448
extent sz=0xfe8 alt=32767 het=56 rec=0 flg=2 opc=2
parent=0x60001130 owner=0x796ce2b8 nex=(nil) xsz=0xfe8 heap=(nil)
fl2=0x26, nex=(nil), dsxvers=1, dsxflg=0x0
dsx first ext=0x792dc030
pdb id=1
|
|