- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
3#
发表于 2011-12-20 16:02:03
分析:
LCK0进程 的近期等待事件是ksxr poll remote instances, 进程号 PID= 65 SPID 22479184 状态是DEAD
SO: 700001ae7555ae0, type: 2, owner: 0, flag: INIT/-/-/0x00
(process) Oracle pid=65, calls cur/top: 7000019d7f0e428/7000019d7f0e428, flag: (6) SYSTEM
int error: 0, call error: 0, sess error: 0, txn error 0
(post info) last post received: 0 0 21
last post received-location: ksbria
last process to post me: 700001ae7555ae0 1 6
last post sent: 0 0 167
last post sent-location: kqrbtm
last process posted by me: 700001ae6581b50 31 0
(latch info) wait_event=0 bits=0
Process Group: DEFAULT, pseudo proc: 700001ae561ca38
O/S info: user: oracle, term: UNKNOWN, ospid: 22479184 (DEAD)
OSD pid info: Unix process pid: 22479184, image: oracle@pmscpdba (LCK0)
SO: 700001ae48bac70, type: 4, owner: 700001ae7555ae0, flag: INIT/-/-/0x00
(session) sid: 3211 trans: 0, creator: 700001ae7555ae0, flag: (51) USR/- BSY/-/-/-/-/-
DID: 0000-0041-00000002, short-term DID: 0000-0000-00000000
txn branch: 0
oct: 0, prv: 0, sql: 0, psql: 0, user: 0/SYS
service name: SYS$BACKGROUND
waiting for 'rdbms ipc message' wait_time=0, seconds since wait started=3
timeout=129, =0, =0
blocking sess=0x0 seq=17047
Dumping Session Wait History
for 'ksxr poll remote instances' count=1 wait_time=0.000005 sec
=0, =0, =0
for 'rdbms ipc message' count=1 wait_time=0.000358 sec
timeout=129, =0, =0
for 'ksxr poll remote instances' count=1 wait_time=0.000006 sec
=0, =0, =0
for 'rdbms ipc message' count=1 wait_time=0.000137 sec
timeout=129, =0, =0
for 'ksxr poll remote instances' count=1 wait_time=0.000007 sec
=0, =0, =0
for 'rdbms ipc message' count=1 wait_time=0.000260 sec
timeout=129, =0, =0
for 'ksxr poll remote instances' count=1 wait_time=0.000007 sec
=0, =0, =0
for 'rdbms ipc message' count=1 wait_time=0.000323 sec
timeout=129, =0, =0
for 'ksxr poll remote instances' count=1 wait_time=0.000005 sec
=0, =0, =0
for 'rdbms ipc message' count=1 wait_time=0.000145 sec
最后post LCK0的 是 700001ae7555ae0 其自身 LCK0 post LCK0
LCK0最后post 的是 700001ae6581b50
LCK0当时持有 大量的 enqueue lock 资源 ,几百个,其中有十几个类型为CI Cross Instance Enqueue CI:Cross Instance Call Invocation
猜测LCK 进程一直在高负载工作,占用大量的CPU
------------process 0x700001ae9aff608--------------------
proc version : 0
Local node : 0
pid : 22479184
lkp_node : 0
svr_mode : 0
proc state : KJP_NORMAL
Last drm hb acked : 0
Total accesses : 7592925
Imm. accesses : 7592506
Locks on ASTQ : 0
Locks Pending AST : 0
Granted locks : 59683
AST_Q:
PENDING_Q:
GRANTED_Q:
lp 700001ae9e902a0 gl KJUSERPR rp 7000019bb8b9f78 [0x6][0x2],[CI]
0x6 => Test call
master 0 pid 22479184 bast 1 rseq 20 mseq 0 history 0x9a5
open opt KJUSERPROCESS_OWNED
lp 700001ae9e90540 gl KJUSERPR rp 7000019bb8b9d68 [0x1a][0x2],[CI]
1a=> 26 Purge dictionary Object number Cache
master 0 pid 22479184 bast 1 rseq 19 mseq 0 history 0x9a5
open opt KJUSERPROCESS_OWNED
lp 700001ae9e90a80 gl KJUSERPR rp 7000019bb8b9b58 [0x1e][0x2],[CI]
这里 1e => 30 process waiters after row cache requeue
0x2 => Used to invoke the function in backgroud process
master 0 pid 22479184 bast 1 rseq 19 mseq 0 history 0x9a5
open opt KJUSERPROCESS_OWNED
lp 700001ae9e90fd8 gl KJUSERPR rp 7000019b96217e8 [0x31][0x2],[CI]
master 1 pid 22479184 bast 1 rseq 16 mseq 0 history 0x95
open opt KJUSERPROCESS_OWNED
lp 700001ae9e91518 gl KJUSERPR rp 7000019b6357810 [0x35][0x2],[CI]
master 1 pid 22479184 bast 1 rseq 17 mseq 0 history 0x95
open opt KJUSERPROCESS_OWNED
lp 700001ae9e917d0 gl KJUSERPR rp 7000019cacf75f8 [0x39][0x2],[CI]
master 1 pid 22479184 bast 1 rseq 22 mseq 0 history 0x95
open opt KJUSERPROCESS_OWNED
lp 700001ae9e91a70 gl KJUSERPR rp 7000019becd45b8 [0x41][0x2],[CI]
......................
SO: 700001ae58922c0, type: 4, owner: 700001ae75552f0, flag: INIT/-/-/0x00
(session) sid: 3245 trans: 0, creator: 700001ae75552f0, flag: (100051) USR/- BSY/-/-/-/-/-
DID: 0001-003A-00000002, short-term DID: 0001-003A-00000003
txn branch: 0
oct: 0, prv: 0, sql: 0, psql: 0, user: 0/SYS
service name: SYS$BACKGROUND
waiting for 'smon timer' wait_time=0, seconds since wait started=1
sleep time=12c, failed=0, =0
blocking sess=0x0 seq=64966
Dumping Session Wait History
for 'DFS lock handle' count=1 wait_time=0.000950 sec
type|mode=43490005, id1=1, id2=2
for 'DFS lock handle' count=1 wait_time=0.000376 sec
type|mode=43490005, id1=1, id2=1
for 'enq: TT - contention' count=1 wait_time=0.000296 sec
name|mode=54540004, tablespace ID=1, operation=10
for 'enq: US - contention' count=1 wait_time=0.000428 sec
name|mode=55530006, undo segment #=29, 0=0
for 'smon timer' count=1 wait_time=3.119856 sec
sleep time=12c, failed=0, =0
for 'smon timer' count=1 wait_time=4.882208 sec
sleep time=12c, failed=0, =0
for 'smon timer' count=1 wait_time=2.254375 sec
sleep time=12c, failed=0, =0
for 'DFS lock handle' count=1 wait_time=0.001051 sec
type|mode=43490005, id1=1, id2=2
for 'DFS lock handle' count=1 wait_time=0.000274 sec
type|mode=43490005, id1=1, id2=1
for 'enq: US - contention' count=1 wait_time=0.000496 sec
name|mode=55530006, undo segment #=3, 0=0
Sampled Session History of session 3245 serial 1
SMON 进程之前在等待'DFS lock handle
id1 => 43490005 CI
id2= > 1 Reuse (checkpoint and invalidate) block range
id3 => 2,1 Used to invoke the function in backgroud process |
|