- 论坛徽章:
- 11
|
原帖由 antyison 于 2010-1-7 17:30 发表 ![]()
是cpu类的vp占用的,请问我能否从这个pid具体找到时哪个session消耗了CPU吗?
- 在onstat -g glo中,记下较忙VP CLASS,如下,1cpu,3cpu
- vp pid class usercpu syscpu total
- 1 32440 cpu 249667.07 7407.37 257074.44 --THIS
- 2 32914 adm 10.40 17.29 27.69
- 3 30830 cpu 192338.19 7340.19 199678.38
复制代码
- 在onstat -g act 或者 ath 查找对应的线程tid rstcb
- Running threads:
- tid tcb rstcb prty status vp-class name
- 35 7000000a22b4028 0 4 running 3cpu kaio
- 52 7000000a2710028 0 4 running 4cpu kaio
- 56 7000000a2802028 0 4 running 6cpu kaio
- 382844 7000000d81cee18 7000000a16e14b0 2 running 5cpu sqlexec
- 386225 7000000c8730190 7000000a16c7650 2 running 1cpu sqlexec --THIS
复制代码
- 在onstat -g ses 0 里查找 tid rstcb
- session #RSAM total used
- id user tty pid hostname threads memory memory
- 377298 cics - 65720 S1SDYY 1 3284992 3156424 --THIS id is session id,and the sql follow.
-
- tid name rstcb flags curstk status
- 386225 sqlexec 7000000a16c7650 Y--P--- 2816 7000000a16e14b0cond wait(netnorm)
- ..........
- Current ....
- Last parsed SQL statement :
- ...........
复制代码 |
|