- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
4#
发表于 2013-3-26 18:56:40
Wait Class Waits %Time -outs Total Wait Time (s) Avg wait (ms) Waits /txn
System I/O 584,140 0.00 7,077 12 1.17
Commit 333,595 3.06 2,720 8 0.67
User I/O 585,238 0.00 2,137 4 1.17
Cluster 3,762,094 0.00 2,114 1 7.52
Network 2,252,230 0.00 318 0 4.50
Other 253,610 63.02 283 1 0.51
Configuration 4,223 0.21 134 32 0.01
Concurrency 37,403 0.20 25 1 0.07
Application 228 0.00 0 1 0.00
==> Log archive I/O、log file parallel write 的系统Io等待较多,这说明IO写的能力不是非常好 是瓶颈之一
CPU Time (s) Elapsed Time (s) Executions CPU per Exec (s) % Total DB Time SQL Id SQL Module SQL Text
8,694 10,455 4,634 1.88 19.29 0a427kdru2y2z select upper(trim(Contra...
8,610 10,526 4,635 1.86 19.43 7qfa96rjvwpn7 select upper(trim(Contra...
8,376 10,306 4,662 1.80 19.02 9fkdpsxmxuuuc select sum(tradeFee) as ...
5,535 6,796 4,604 1.20 12.54 cufhzatnw3p2q select trim(c1.contractid)...
这4个语句消费了大约70%的DB TIME 单次运行 约为2s- select upper(trim(ContractID)) as ContractID,
- trim(exchangeid) as exchangeid,
- min(trim(TradeSeq)) as TradeSeq,
- upper(trim(BSTag)) as BSTag,
- upper(trim(VHFlag)) as VHFlag,
- Price,
- sum(Volumn) as Volumn,
- sum(Amount) as Amount,
- upper(trim(OCTag)) as OCTag,
- sum(TradeFee) as TradeFee,
- sum(CloseProfitByTrade) as CloseProfitByTrade,
- sum(CloseProfit) as CloseProfit
- from H_CompClientTrade
- where clientid = :1
- and TradeDate = :2
- group by ContractID, exchangeid, BSTag, VHFlag, Price, OCTag
- order by upper(trim(ContractID))
复制代码 |
|