- 論壇徽章:
- 0
|
銀行系統(tǒng),用戶投訴說(shuō)有時(shí)做一個(gè)簡(jiǎn)單的查看交易信息的動(dòng)作(其實(shí)就是打開一個(gè)窗口) 響應(yīng)時(shí)間很慢,
平時(shí)最多1秒內(nèi),出問(wèn)題的時(shí)候要5-10秒窗口才彈出來(lái), 于是我看了一下sysmon, 有一些發(fā)現(xiàn):
1. 出問(wèn)題的時(shí)間段, tempdb log device 有非常頻繁的寫操作;
Device:
/syb_devices9/foo_tempdb02_log
foo_tempdb02_log per sec per xact count % of total
------------------------- ------------ ------------ ---------- ----------
Reads
APF 0.0 0.0 0 0.0 %
Non-APF 0.0 0.0 0 0.0 %
Writes 23.5 2.1 2818 100.0 %
------------------------- ------------ ------------ ---------- ----------
Total I/Os 23.5 2.1 2818 50.7 %
2. 頻繁的"insert"APL Heap Table;
Transaction Detail per sec per xact count % of total
------------------------- ------------ ------------ ---------- ----------
Inserts
APL Heap Table 1726.0 154.8 207122 64.6 %
APL Clustered Table 0.8 0.1 98 0.0 %
Data Only Lock Table 946.7 84.9 113598 35.4 %
------------------------- ------------ ------------ ---------- ----------
Total Rows Inserted 2673.5 239.8 320818 99.8 %
3. Full ULC 非常高;
ULC Flushes to Xact Log per sec per xact count % of total
------------------------- ------------ ------------ ---------- ----------
by Full ULC 10.8 1.0 1299 31.2 %
by End Transaction 10.8 1.0 1296 31.1 %
by Change of Database 0.1 0.0 6 0.1 %
by Single Log Record 10.3 0.9 1240 29.8 %
by Unpin 0.2 0.0 27 0.6 %
by Other 2.5 0.2 295 7.1 %
------------------------- ------------ ------------ ----------
Total ULC Flushes 34.7 3.1 4163
"user log cache size" 已經(jīng)由4096改變8K, 無(wú)效;
使用了兩個(gè)tempdb目的減少contention, 無(wú)效;
這個(gè)系統(tǒng)高峰時(shí)有50-100個(gè)并發(fā)用戶同時(shí)訪問(wèn), 請(qǐng)問(wèn)該如何調(diào)優(yōu)?
ASE版本:
Adaptive Server Enterprise/12.5.4/EBF 14065 ESD#3/P/Sun_svr4/OS 5.8/ase1254/2030/64-bit/FBO/Sat Oct 14 07:19:31 2006
[ 本帖最后由 taker2001 于 2009-11-4 17:44 編輯 ] |
|