|
如图:,custom下的选择项为空,
下面是我的\LoadRunner\dat\monitors\vmon.cfg里的东西:
[V$ Monitor]
Counters=150
;CustomCounters=12
;How many seconds for each data sample?
SamplingRate=10
[Custom0]
;Name must be unique
Name=库快存命中率
Description=该计数器返回当前库快存命中率
Query=SELECT 100*((sum(pins-reloads))/sum(pins)) from v$librarycache
IsRate=1
[Custom1]
;Name must be unique
Name=共享区库缓存区命中率
Description=命中率应大于0.99
Query=Select round(sum(pins-reloads)/sum(pins) * 100, 2) from v$librarycache
IsRate=0
[Custom2]
;Name must be unique
Name=监控内存和硬盘的排序比率
Description=最好使它小于 10%
Query=select round(sum(case when name='sorts (disk)' then value else 0 end) / sum(case when name='sorts (memory)' then value else 0 end)*100,2) from (SELECT name, value FROM v$sysstatWHERE name IN ('sorts (memory)', 'sorts (disk)'))
IsRate=0 |
|